Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: SgtToad on February 02, 2008, 03:07:41 PM

Title: Question about 50$ robot ( my first electronic projet at life )
Post by: SgtToad on February 02, 2008, 03:07:41 PM
Hello,

I'm a totally newbie of making eletronic circuit. But i want to learn and with this great site i learn already lot of thing. I'm from Québec city, Canada and my english is not very well. I understand very well but i did'nt write or speak very well.

I do all the electronic things. Test and re-test conectivity before plugin-in battery pack. No smoke or spark when i plug the battery power pack.
I add the ATMEGA8-16PU to the socket and power it without any problem. The VCC pin receive +5V.

I installed avr studio and plugin the AVRISP MKII. I get the blinky orange led bug. The help file talk about a reverse wiring problem or a pull resistance problem.

I got 3.8v at the reset pin of the connector it is enough ?
It's my wiring are reversed ( i did'nt tink so ) ?

Thanks for your help.

http://public.fotki.com/danielpoirier/bug-50-robot/ (http://public.fotki.com/danielpoirier/bug-50-robot/)



Daniel
Title: Re: Question about 50$ robot ( my first electronic projet at life )
Post by: gamefreak on February 02, 2008, 06:16:36 PM
it is hard to tell but looking at the pic it looks like your capacitors negative lead is connected to the far right of the volltage reg, it should be in the middle
Title: Re: Question about 50$ robot ( my first electronic projet at life )
Post by: SgtToad on February 02, 2008, 10:06:26 PM
I test and retest the connectivity.

The image show how things are connected. I do a connectivity test on each of the colored link and test the voltage all around. I redo a schema of how i wiring that... i think all its ok, maybe someone can look and tell me if i make a mistake.

http://public.fotki.com/danielpoirier/bug-50-robot/debug.html (http://public.fotki.com/danielpoirier/bug-50-robot/debug.html)

thanks for help
Title: Re: Question about 50$ robot ( my first electronic projet at life )
Post by: paulstreats on February 03, 2008, 08:49:21 AM
Hi,

 Did you actually program the board or not?
If not then the led will blink about randomly anyway. You need to program it to make it work
Title: Re: Question about 50$ robot ( my first electronic projet at life )
Post by: SgtToad on February 03, 2008, 10:31:53 AM
i'm trying to program the board with the hold_servo.hex file.

I get an error message in avr studio ( see attached file )
Title: Re: Question about 50$ robot ( my first electronic projet at life )
Post by: SgtToad on February 06, 2008, 08:35:47 PM
Ok...

I have completely rebuild my ISP head, re-verify all connectivity to be conform with the 50$ bot schema, all was ok.

But i get the flashing orange led with avr studio.
Reading the AVRISP MKII userguide i see i can use the stk500.exe command line it's what i do... surprise green led appears.

I have an other problem now...
Code: [Select]
C:\Program Files\Atmel\AVR Tools\STK500>STK500.EXE -cUSB -dATmega8 -e -iehold_se
rvo.hex -pe -ve
STK500 command line programmer, v 2.2 Atmel Corp (C) 2004-2005.

Connected to STK500 V2 on port USB:0000B0024075
Device parameters loaded
Programming mode entered
Device erased
EEPROM input file  read
EEPROM input file does not fit in device
Programming mode left
Connection to STK500 V2 closed

WARNING! One or more operations failed! Please examine the output log above!


C:\Program Files\Atmel\AVR Tools\STK500>STK500.EXE -cUSB -dATmega8 -e -ifhold_se
rvo.hex -pf -vf
STK500 command line programmer, v 2.2 Atmel Corp (C) 2004-2005.

Connected to STK500 V2 on port USB:0000B0024075
Device parameters loaded
Programming mode entered
Device erased
FLASH input file  read
Programming FLASH... Could not program FLASH
Programming mode left
Connection to STK500 V2 closed

WARNING! One or more operations failed! Please examine the output log above!

The program hold_servo.hex did't fit in EEPROM and I Could not program FLASH...

Any suggestion are welcome
Title: Re: Question about 50$ robot ( my first electronic projet at life )
Post by: Admin on February 17, 2008, 11:17:10 AM
There was a problem with the programmer firmware:
http://www.societyofrobots.com/robotforum/index.php?topic=3013.msg24470#msg24470

Just upgrade it and it should work.