Author Topic: programmer problem  (Read 3581 times)

0 Members and 1 Guest are viewing this topic.

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 952
  • Helpful? 5
  • cooll
programmer problem
« on: February 23, 2008, 12:00:28 PM »
ii have got this problem about making the programmer
there are cheap circuits availabe there by which we can make our programmer very easily but there are also many programmer circuits available to buy which are costly but both of tem do the same thing so for a newcomer like me what should i do

1.go with the cheap programmer circuits?
2.buy the costly ones?
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
    • izua electronics
Re: programmer problem
« Reply #1 on: February 23, 2008, 12:22:06 PM »
cheap ones offer something very simple, like downloading a hex into the chip.
advanced ones have facilities as holding in reset, debugging, emulation, flashing the chip etc.

i'd say, start cheap, make one, and if you like it and need something better, look for a commercial product.
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline speccyget

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Re: programmer problem
« Reply #2 on: February 23, 2008, 06:39:16 PM »
I have just bought this programmer from ebay

http://cgi.ebay.co.uk/Serial-Atmel-ISP-programmer-works-with-AVR-Studio-4_W0QQitemZ120225910414QQihZ002QQcategoryZ36323QQssPageNameZWDVWQQrdZ1QQcmdZViewItem

I cant get it to work on the $50 robot circuit using Ponyprog. I am about to give up and tell my kids that it's impossible to make a robot in the kitchen.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: programmer problem
« Reply #3 on: February 23, 2008, 09:01:49 PM »
Quote
I cant get it to work on the $50 robot circuit using Ponyprog
On the page you link to, it says 'This programmer works with AVR Studio 4 - AVRprog.' Not Ponyprog :P

it even has a pic:

Offline speccyget

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Re: programmer problem
« Reply #4 on: February 24, 2008, 12:48:12 PM »
Sorry. I was just blindly following your tutorial. lol. Thanks. I have used AVRprog to program my robot and it sort of worked. The trouble now is that my robot just spins around and the sensors have no effect. Any ideas? I am a complete idiot at all this robotics stuff.

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: programmer problem
« Reply #5 on: February 24, 2008, 01:18:46 PM »
Sorry. I was just blindly following your tutorial. lol. Thanks. I have used AVRprog to program my robot and it sort of worked. The trouble now is that my robot just spins around and the sensors have no effect. Any ideas? I am a complete idiot at all this robotics stuff.

does one wheel go forward and one go backward?
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline speccyget

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Re: programmer problem
« Reply #6 on: February 24, 2008, 01:19:24 PM »
yes

Offline speccyget

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Re: programmer problem
« Reply #7 on: February 24, 2008, 01:23:15 PM »
Now for some reason it isn't doing a thing. The led is constantly lit aswell. Even when I erase the chip the led still stays on. It didn't do that earlier.

Offline speccyget

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Re: programmer problem
« Reply #8 on: February 25, 2008, 05:28:45 PM »
OK. It is doing something. When I cover the photoresistors the led glows brighter and when I uncover them they glow dimmer, but the servo's are not turning at all. The sensors when covered read 1.2 M ohm and 7.3 Kohm uncovered.Can somebody please help?

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: programmer problem
« Reply #9 on: February 27, 2008, 07:46:50 AM »
to properly debug it do the following step


see if you can get the servos to go the right way with ONLY the code for the servos, no photovore code yet

then we'll work our way from that

did you check your board for any shorting wires or wires going to the wrong places?
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline speccyget

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Re: programmer problem
« Reply #10 on: February 28, 2008, 03:28:00 PM »
I programmed it with the servo centering hex and nothing happens. I assume thats because I have already centered them. I have checked all my connections and have not got any shorts. As far as I can tell everything is wired up as it should be. Is there any way of changing the direct of the servo by programming?

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
    • izua electronics
Re: programmer problem
« Reply #11 on: February 28, 2008, 05:49:43 PM »
just slowly spin the servo horn by hand :P
if the servo is receiving the signal, it should try to push back with some force.
if it's not powered, when you'll power it, it will go to the correct heading.
« Last Edit: February 28, 2008, 05:50:32 PM by izua »
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: programmer problem
« Reply #12 on: March 09, 2008, 09:20:45 AM »
Quote
When I cover the photoresistors the led glows brighter and when I uncover them they glow dimmer, but the servo's are not turning at all.
Whoa thats not supposed to happen . . .

Check your batteries, perhaps the charge is low? And of course look for shorts . . .

You are using my code without changes, right?

 


Get Your Ad Here