#define ON_OFF 0x827D58A7 //brakes engaged/disengaged If anyone has some suggestion please answer I read that the Ir receiving of the shirriff library works by interrupts, so while the Ir isn't receiving it should leave Arduino free of using the method analogWrite() on the PWM channels of the motors. I cannot really understand what could cause this problem! in theory there shouldn't be any. i checked every single component to make sure everything works. But when I wrote the sketch, i found out that I couldn't control in any way the speed of the motor it also doesn't work with a speed setup in the setup method different from 255. I can decode without problems the IR it sends, using the IRremote library of 'shirrif', which I think you all know ( ) so the problems aren't caused by a not proper use of the IR receiver. I want to control direction of the spin, speed and brakes of the motors by sending IR with a remote i had at home. I'm using two DC bipolar motors, bought on the Arduino store, the Arduino Uno, the Arduino Motor Shield and for now only an IR receiver sensor, also bought on the store. My project is to build a simple little robot, two wheels and a few sensors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |