getsurreal / xv_lidar_controller Goto Github PK
View Code? Open in Web Editor NEWArduino code for controlling the Neato XV Lidar
License: Apache License 2.0
Arduino code for controlling the Neato XV Lidar
License: Apache License 2.0
Just thought I would let you know that your code (at least the branch with 3.1 in it already) will work with a Teensy 3.5. The only problem I had was on initialization of the eeprom - would always default to pwm pin of 14 even after the ifdefs. If you hard code it in the setup it works fine.
THought you would like to know. Still have more work to do on it.
Mike
Hi, I tried to run it on mega2560 by modifing all the defined(AVR_ATmega32U4) to defined(AVR_ATmega2560). The compling looks good but once I open the serial monitor, the Arduino IDE just be no response. I think the only difference in this case is Mega2560 need a USB chip but Mega32u4 can Connect usb directly. But I don't think it is matter in this code. Could you please help me with that?
Getting back into this with the advent of the Teensy 4 and decided to retest with the T3.2. Ran into one problem since I originally tested is that TImerThree no longer drives the pwm signal for the motor of the XV-11. I am using v1.2 of your breakout though - it did use to work back in 2016.
I replaced Timer2.pwm with analogWrite's and it started working without a problem. Once I did this it even worked on the new T4.
Only other problem I am getting a bunch of errors mostly "I" - invalid data if too close - like a couple hundred mm's and some "S" signal strength. Any suggestions
Hi,
I modified your code to use the Tx pin 8 to transmit data to another device. When I do this the data transmits inconsistently. For example, normally when I print to the serial monitor it give consistent 0-359 angle readings, however when I try to serial1.print(angle) the angle reports are inconsistent (sometimes it is 0-291 and sometimes it is 0-512 and so forth). I was wondering if anyone has any ideas of what is going on, because I am at a lost.
thanks,
JB
Hi
I just finished hooking everything up - no brainer. But when I first loaded the sketch I received a series of .pid.cpp errors (a lot of different stray characters). If I delete those files the sketch loads fine but prints out gibberish. There are no errors messages printed from the setup (no I didn't miss it, I added a delay just in case). I did see one clear message about 3 ESCs or Break. That was about it before the gibberish started - its like what you see if the baudrate is set wrong. By the way yes the baud was at 115200.
I am running IDE 1.6.7 on a windows 10 x64 laptop by the way.
thanks for your help
Mike
UPDATE: I tried a second unit and it still has the same issues. By the way I tried 1.3.0 as a test.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.