Society of Robots - Robot Forum
Software => Software => Topic started by: BlackJack on June 01, 2011, 03:29:34 AM
-
Hi guys. I had to make an hexapod for a school project, and I've decided to try this one http://www.webx.dk/robot-crawler/robot-crawler.htm (http://www.webx.dk/robot-crawler/robot-crawler.htm) because it meets all requirement. On his website it presents only the mechanical part, some description about components used and the code. Now I finished the PCB and test it out, but it doesn't work. When I press any button from ps1 gamepad, nothing happens. I checked the PCB and it seems to be allright, so I think it should be from gamepad or from the program code..more probably. This is the code I used: http://www.webx.dk/robot-crawler/ps-joy-source.zip (http://www.webx.dk/robot-crawler/ps-joy-source.zip) . Maybe the code isn't good.
This is the circuit diagram I made and used:
(http://s2.postimage.org/bz5s5nufc/Hexapod.jpg)
This is the result :
(http://www.freeimagehosting.net/uploads/1b6c93f2a1.jpg)
Can anyone please verify the code and tell if it is ok ? I use ATmega8515L (8Mhz external quartz)
Or can you make a new code to control the hexapod from ps1 gamepad?(c code and .hex file)
Please help me somehow, I'll be greatful. It has to be ready in 3 weeks:(
-
You need to install the processor in the socket on your board. lol
When using a new processor or building a new board start with a simple 'blink the LED' code. This can ensure that the processor is actually running.
Do you have a by-pass cap across Vdd to Vss close to the pins?
The schematic is too small to read but seems to look ok.
-
When I made the test, the microcontroller was there, only the picture was done without microcontroller.
To see the circuit diagram, right click on it -> View Image.
I made a test and the microcontroller works. I think its something wrong on the code.
-
I don't see the gamepad header file included anywhere.
-
I think it's here:
http://www.webx.dk/robot-crawler/ps-joy-source.zip (http://www.webx.dk/robot-crawler/ps-joy-source.zip)
-
I'm sorry, I meant included in the code like
#include "delays.h"