View Full Version : AeroBeeper
Ok, I'm sick, I'm bored, got no working propellers.
10-01-2010, 03:54 PM
Do not despair, props was mailed yesterday ;-)
Hehe, well actually I have been waiting very intensely for them to come, I thought definitely today, but nothing :( I hope they have not got stuck in some customs or something...
someone seems to be really bored :)
By the way Mr. Timer-man, when I use the tone API function to generate these frequencies, what timer of the Arduino Mega (1280) do I use? I have tried and I can put the speaker on every digital/PWM/analog pin I want, so it's not bound to any specific PWM hardware, but still, after doing these beeps, 2 of my motors won't run at all. And at the end of the tone functions done in the setup (done once) I have noTone(BUZPIN); but still 2 of the ESC's won't run. Why do you think?
10-04-2010, 01:55 AM
I noticed in the Arduino release notes for 019 they said something about fixing a bug in the tone() function where it fogot to reenable interrupts.
* Re-enabling PWM after tone() ends.
I had the same problem with two of my motors not working when I used tone() so I gave up on it, but that was before I upgraded to 019. (now its up to 021). I don't know if this would have fixed the problem or not, haven't had time to try it out. Now that it looks like I may have a cold I might have some time :-)
However, if tone() is going to mess with the same timers as PWM for the motors I am going to avoid it. Between the ESCs, the servo jitter problems with the camera mount, and using tone() and pwm for LED bars, I am afraid I am finally going to have to dig in and learn how all the timers and interrupts are used.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.