Author Topic: Hexapod Problem  (Read 3425 times)

0 Members and 1 Guest are viewing this topic.

Offline BlackJackTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Hexapod Problem
« 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 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 . Maybe the code isn't good.

This is the circuit diagram I made and used:



This is the result :



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:(

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Hexapod Problem
« Reply #1 on: June 01, 2011, 07:14:23 AM »
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.

Offline BlackJackTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: Hexapod Problem
« Reply #2 on: June 02, 2011, 07:05:42 AM »
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.

Offline adanvasco

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 6
  • Necessity is the mother of invention.
Re: Hexapod Problem
« Reply #3 on: June 02, 2011, 09:34:25 AM »
I don't see the gamepad header file included anywhere.
Knowledge does not weigh.

Offline BlackJackTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: Hexapod Problem
« Reply #4 on: June 02, 2011, 03:00:15 PM »

Offline adanvasco

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 6
  • Necessity is the mother of invention.
Re: Hexapod Problem
« Reply #5 on: June 02, 2011, 10:41:42 PM »
I'm sorry, I meant included in the code like
Code: [Select]
#include "delays.h"
Knowledge does not weigh.

 

SMF spam blocked by CleanTalk