c6jones720
Member
Hi Guys,
I though I would share my latest robotics project. Im building a robot tank. I was planning to be able to remotely control the tank either using a normal radio control handset or with a wireless network.
I built a pair of Electronic speed controls for the tank tracks using Picaxe 18 Microcontrollers. The speed controllers take in standard 1-2ms PWM signals and convert them into output PWM drive signals for the motors lasting between 0-18ms. The ESCs turned out better than I was expecting and so I thought I would share the source code with the community in case anyone else wants to do something similar. Next time I would probably use 8-pin picaxes because they are just smaller. i would definatly use picaxes to do PWM motor control again, even though the BASIC interpreter is a bit slow the chips are more than fast enough to do motor control.
I have a picaxe.net server and I was planning to use that as an onboard computer but Im afraid it just isnt man enough for the job. I was planning to use the I2C output from the board to control extra I/O by sending the Picaxe.net server TCP/IP commands but it just didnt work out. - Not a problem Im goign to use a SheevaPlug server to do that job instead..
Heres the source for the motor controllers. This should work with standard radio gear etc:
I though I would share my latest robotics project. Im building a robot tank. I was planning to be able to remotely control the tank either using a normal radio control handset or with a wireless network.
I built a pair of Electronic speed controls for the tank tracks using Picaxe 18 Microcontrollers. The speed controllers take in standard 1-2ms PWM signals and convert them into output PWM drive signals for the motors lasting between 0-18ms. The ESCs turned out better than I was expecting and so I thought I would share the source code with the community in case anyone else wants to do something similar. Next time I would probably use 8-pin picaxes because they are just smaller. i would definatly use picaxes to do PWM motor control again, even though the BASIC interpreter is a bit slow the chips are more than fast enough to do motor control.
I have a picaxe.net server and I was planning to use that as an onboard computer but Im afraid it just isnt man enough for the job. I was planning to use the I2C output from the board to control extra I/O by sending the Picaxe.net server TCP/IP commands but it just didnt work out. - Not a problem Im goign to use a SheevaPlug server to do that job instead..
Heres the source for the motor controllers. This should work with standard radio gear etc:
Attachments
-
1.6 KB Views: 214