interrupt issues: Adafruit motor shield + servo + timer interrupt + arduino


i need arduino genius, groks way down bare metal.
i have robot giving me issues.  i'll describe hardware, software, , symptoms i'm seeing.

hardware:
i have open source wall-hanging drawbot http://github.com/i-make-robots/drawbot build on arduino adafruit motor shield connected 2 nema17 steppers (for xy motion) , hobby servo (for z).

software:
i use frequencytimer2 control timer interrupt on timer2.  communicate java app on serial, i'm told uses timer0.  servo pwm done on timer1.  tell steppers move @ constant speed , do, emitting hum. 

symptoms:
1. frequencytimer2 ruins pwm on pins 9 , 10 on mega http://www.pjrc.com/teensy/td_libs_frequencytimer2.html 2 pins used servo on shield.  i'm looking lib make easy create timer interrupts (takes care of board-specific issues) , doesn't screw pins 9 & 10.  i'm willing use servotimer2 if can switch frequencytimer use timer1.  know of one?
2. if if arduino receives serial data while happening can hear breaks in hum, tells me losing steps on time.
3. if try send serial data arduino program hang.

i want work on duemilanove 328s, mega 2560s, , unos.  unfortunately timer stuff getting way past level of expertise.  please, geniuses of arduino!  can tell me how make work?

thank you!


2. if if arduino receives serial data while happening can hear breaks in hum, tells me losing steps on time.


perhaps might try 1.0.1-rc2, or 1.0.1 if see message after it's officially released.  until then, here's can it:

http://arduino.cc/forum/index.php/topic,100503.0.html

one of many bugs fixed terrible inefficiency in serial interrupt.


Arduino Forum > Topics > Robotics (Moderator: fabioc84) > interrupt issues: Adafruit motor shield + servo + timer interrupt + arduino


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial