go_away

Author Topic: Fixes for cheap AVR programmers  (Read 15336 times)

0 Members and 1 Guest are viewing this topic.

Offline triggerTopic starter

  • Full Member
  • ***
  • Posts: 115
  • Helpful? 0
  • It's an op amp, not a gun part.
Fixes for cheap AVR programmers
« on: March 12, 2007, 11:24:18 PM »
Since Admin had a hard time with his bit-banger (aka, cheap dongle programmer), I dug around and found this very informative post on the topic:

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=36591

It appears that the problem with most bit-bangers is oscillations in the SCK line, and adding a low-pass filter on this SCK line reduces those pesky oscillations.  I'm just getting started with AVRs, so I don't have a programmer to try it out yet, but I'd be interested to hear if this solves the problem.

There are 10 kinds of people in this world: those who can read binary, and those who can't.

Offline knightimer

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
Re: Fixes for cheap AVR programmers
« Reply #1 on: August 23, 2007, 05:03:17 AM »
hi, um no1 posted here for a while, i was wondering if people can actually post their results about this link if it really works to stop the lagging-ness of the programming?! thanks!

Offline ed1380

  • Supreme Robot
  • *****
  • Posts: 1,478
  • Helpful? 3
Re: Fixes for cheap AVR programmers
« Reply #2 on: August 23, 2007, 01:45:22 PM »
just get teh $30 programmer. much better decision.
I learned teh hard way
Problems making the $50 robot circuit board?
click here. http://www.societyofrobots.com/robotforum/index.php?topic=3292.msg25198#msg25198

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: Fixes for cheap AVR programmers
« Reply #3 on: August 23, 2007, 10:19:56 PM »
Yes knightimer, you can post your success(or failure or other thoughts) in this thread if you like about the topic.
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline chyoo

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Re: Fixes for cheap AVR programmers
« Reply #4 on: November 30, 2007, 06:09:11 PM »
YO MAN HOW IS TI GOING! I NEED TO KNOW IF YOU COULD HELP ME OUT WITH THIS THING HERE, I HAVE BUILD THE CIRCUIT OK I REALY DONT KNOW IF THE LED SHOULD LIGHT AFTER YOU POWER IT OR AFTER YOU PROG IT I HAVE GOTTEN THIS FAR AND NEED SOME HELP TO COMPLEAT IT
THANS MAN

Offline ed1380

  • Supreme Robot
  • *****
  • Posts: 1,478
  • Helpful? 3
Re: Fixes for cheap AVR programmers
« Reply #5 on: November 30, 2007, 09:15:47 PM »
no double posting

led will blink after you program it and turn it on
Problems making the $50 robot circuit board?
click here. http://www.societyofrobots.com/robotforum/index.php?topic=3292.msg25198#msg25198

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: Fixes for cheap AVR programmers
« Reply #6 on: November 30, 2007, 10:42:48 PM »
no double posting

led will blink after you program it and turn it on
Mine doesnt :P


Yeah I dont know why but mine doesnt light up. I checked the LED and the resistor but got nothing but good results. I think there just isnt enough mA sinking though the MCU to power my LED or something... its a low watt LED too (1/4 watt I think?) Ill have to fiddle around with it some more.... I need more perf boards... and maybe a big bread board.... I have some internet shopping to do :P



Oh, and yes, everything else is working as it should on the robot.
« Last Edit: November 30, 2007, 10:43:34 PM by HDL_CinC_Dragon »
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
Re: Fixes for cheap AVR programmers
« Reply #7 on: December 01, 2007, 03:45:20 AM »
Quote
YO MAN HOW IS TI GOING! I NEED TO KNOW IF YOU COULD HELP ME OUT WITH THIS THING HERE, I HAVE BUILD THE CIRCUIT OK I REALY DONT KNOW IF THE LED SHOULD LIGHT AFTER YOU POWER IT OR AFTER YOU PROG IT I HAVE GOTTEN THIS FAR AND NEED SOME HELP TO COMPLEAT IT
THANS MAN
it's been asked before on the forum if you search.
the LED does not light untill after you program the AVR.

Quote
Yeah I dont know why but mine doesnt light up.
you got the polarity of the LED round the right way?
what voltage do you measure across the LED with a multimeter?

dunk.

Offline cooldog

  • Supreme Robot
  • *****
  • Posts: 751
  • Helpful? 4
  • be nice to nerds, one day they will be your boss
Re: Fixes for cheap AVR programmers
« Reply #8 on: December 01, 2007, 07:28:29 AM »
did you accidentally buy a in-fared LED ::) :o ;D :D :o
robot will rule the world and i will be building them
-admin

favorite web sites
http://www.societyofrobots.com/
http://www.instructables.com/

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: Fixes for cheap AVR programmers
« Reply #9 on: December 01, 2007, 11:13:35 AM »
did you accidentally buy a in-fared LED ::) :o ;D :D :o
Id be pissed lol but no

you got the polarity of the LED round the right way?
what voltage do you measure across the LED with a multimeter?

Im pretty sure ive got the polarities right. The Positive terminal should be the one that runs to the resistor then to the MCU right? Since the current is supposed to be sinking to the MCU?
Im not too sure what voltage I used to test it but im assuming it was very very low voltage. I used my DMM on one of its resistance settings and touched the corresponding poles on the LED and it lit up red a little bit. Ill quadruple check again just to make sure.
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline paulstreats

  • Supreme Robot
  • *****
  • Posts: 1,381
  • Helpful? 21
Re: Fixes for cheap AVR programmers
« Reply #10 on: December 01, 2007, 11:35:44 AM »
its the other way around, the resistor should be connected to the cathode of the led, and then to the mcu by the looks of it.

An easy way to test, and also way for people to test the circuit for shorts who dont have a multimeter is to remove the mcu, attach the batteries then touch a spare piece of wire between an gnd terminal and the mcu pin that the resistor goes to. If the led lights up, then there arent any shorts on the basic power circuits.

Offline Ro-Bot-X

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
Re: Fixes for cheap AVR programmers
« Reply #11 on: December 01, 2007, 11:46:13 AM »
Has any one of you worked with this programmer? Is it reliable, or not worth building?

Check out the uBotino robot controller!

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: Fixes for cheap AVR programmers
« Reply #12 on: December 01, 2007, 11:52:06 AM »
I did your idea with a half dead 9v :P

I put the positive wire in DIP pin 6 and then the negative wire in DIP pin 8(GND)... then I accidentally put it in pin 7(VCC) and it lit up with that too O_O... same for pins 21(AREF) and 22(GND)... im assuming thats a bad thing... Do I have a short? or is there another component on the board linking them? the vreg perhaps?... oh wait, i think its the ceramic capacitor... it also lights up whenever I touch it to a data pin that has a sensor or servo hooked up to it... hmm. peculiar....


Oh crap, I have to lave for work like right now lo
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,430
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
Re: Fixes for cheap AVR programmers
« Reply #13 on: July 14, 2008, 07:26:37 PM »
since I like to dig up old posts.....


I found that when using the cheap bit-banger programmer on an old laptop with a serial port directly connected to the programming pins on the $50 robot mcu that it programs and verifies instantly.

When I try to program on my newer laptop using an usb to serial converter with long serial cables then it takes hours!!

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: Fixes for cheap AVR programmers
« Reply #14 on: July 15, 2008, 01:48:40 PM »
When I try to program on my newer laptop using an usb to serial converter with long serial cables then it takes hours!!
apparently its the USB to Serial that causes this problem. Personally I havnt used that method and dont ever plan to :P
United States Marine Corps
Infantry
Returns to society: 2014JAN11

 


Get Your Ad Here

data_list