I use the motor shield to control 4 dc motors with no problem. Howver when I started using an IR receiver I started having problem with one of the dc motors. It is always dc motor 0. If i disable motor 0 then I can control other 3 motors with the ir receiver no problem. If i enable motor 0 with any value other than m[0]->setSpeed(0) it will lock the program. First i thought it was a hardware problem like shorted pin etc. but tried different pins and same issue. I think some interrupt or timer used by ir receiver is corrupting only m[0] or vice versa. Any help will be really appreciated. Please see the code for ir receiver here
↧