-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with sound and drive commands #2
Comments
Thanks for reaching out, been awhile since I touched this code but I can review the technical document again. Thats interesting that it works with normal serial but the software based serial seems to drop commands now and again. I will try to get to this some time this month :) |
Hey, I finished the roomba-project I was working on. I found out, that the weird behavior (not driving straight, taking different amounts of time for full turns) is not related to your code. It occurs also without your libary. I think it`s something in the basic programming or hardware of the roomba. |
Thanks for the library. It was a good start for me. As for the code to play songs: The definition of notes is not correct. The octave number for the notes is wrong. That makes songs play like the poor roomba is pretty drunk. enum notes{ And so on. I know, musicians don't seem to know how to count. See for example: https://www.inspiredacoustics.com/en/MIDI_note_numbers_and_center_frequencies If the constant delay of 100ms used to calculate the length of the song is changed it seems to solve some songs not to be played. It's especially apparant when using a few long notes. Maybe the length of the notes isn't exact enough? Resulting in a mismatch in timing between Roomba and Microcontroller? It all depends on timers and dividers used in hardware I presume? |
I was using your libary for create2 and found it very usefull. Thanks!
But I was having some errors and after sending commands via Arduino to the robot directly, they disappeared. So I assume it's a bug in the libary code, even though I couldn't locate it.
The problems occur only sometimes. Without changing anything in the code or the setup, they just happen.
Until now I didn't ran into these problems when sending the commands directly.
(I was using serial with your libary now I'm using soft serial, maybe this could be part of the problem as well?)
I posted the problem together with my code and a video on stackexchange:
https://robotics.stackexchange.com/questions/21128/irobot-create-2-random-changes-in-driving-speed
I hope this is the right place to post comments and field reports - I'm new to github.
Best
Sebastian
The text was updated successfully, but these errors were encountered: