🎁📬❄️📦 Holiday Shipping Deadlines are approaching! International customers and domestic ground - get your orders in 12/9/2020 📦❄️📬🎁
0

Use MiniPOV 3 as a programmer for other AVR chips?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Use MiniPOV 3 as a programmer for other AVR chips?

by darus67 on Mon Jan 28, 2008 6:49 pm

Will it work?

If I pull the ATTiny out of my MiniPOV3, and run jumpers to the appropriate
pins on a different flavor AVR in a breadboard, could I use AVRDude to program the new chip?
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by adafruit on Mon Jan 28, 2008 11:11 pm

yes!

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by darus67 on Tue Jan 29, 2008 12:48 am

Cool!
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by magician13134 on Wed Jan 30, 2008 4:15 pm

I found for most (all?) AVRs that are smaller than the 2313, you can simply put it in the socket all the way to the left and attach a jumper from pin 10 in the socket to the bottom right pin of the microcontroller you're programming (ground). That eliminates needing the bread board
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

by darus67 on Wed Jan 30, 2008 4:36 pm

I was thinking more about larger chips. Specifically, the Atmega168 thats
in the Arduino. If I buy some blank chips and need to burn the bootloader,
I can just grab my minpov.
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by darus67 on Wed Jan 30, 2008 4:42 pm

I was also looking at the Arduino schematic the other day, pondering if it would be possible to hack the board so the bootloader could be programmed
in situ, using the usb to serial chip thats already on the board.

Does AVRDude work with the FTDI chip thats used on the Arduino?
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by magician13134 on Wed Jan 30, 2008 7:02 pm

Burning the Bootloader

To burn the bootloader, you'll need to buy an AVR-ISP (in-system programmer), USBtinyISP or build a ParallelProgrammer. The programmer should be connected to the ICSP pins (the 2 by 3 pin header) - make sure you plug it in the right way. The board must be powered by an external power supply or the USB port.

Make sure you have the right item selected in the Tools | Board menu. Then, just launch the appropriate command from the Tools > Burn Bootloader menu of the Arduino environment. Burning the bootloader may take 15 seconds or more, so be patient.


http://www.arduino.cc/en/Hacking/Bootloader

You can pick that up here.

That's where my usefulness ends. Sorry
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

by adafruit on Thu Jan 31, 2008 3:16 pm

darus67 wrote:I was also looking at the Arduino schematic the other day, pondering if it would be possible to hack the board so the bootloader could be programmed
in situ, using the usb to serial chip thats already on the board.

Does AVRDude work with the FTDI chip thats used on the Arduino?


http://ladyada.net/learn/avr/programming.html

FTDI chip == bootloader
AVRdude == in circuit programming

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by darus67 on Fri Feb 01, 2008 3:19 pm

ladyada wrote:
FTDI chip == bootloader
AVRdude == in circuit programming



I understand how it works stock.

I don't think I stated my ponderings clearly.

I was wondering if it would be possible to hack an Arduino board so
that the on-board USB-to-Serial chip could double as a built-in
in-circuit programmer

Here was my train of thought...

If I have an arduino board and a BLANK ATMega168 chip, I need an external
programmer to burn the bootloader onto the ATM168.

The programming circuitry on the MiniPOV3 can be used as an external
programmer, to program the ATM168.

In my case, I use a USB to serial dongle with my MiniPOV3.

The Arduino board already has a USB to Serial chip on board.

Could I hack an Arduino board so that the on-board usb-to-serial chip
could be used to program a BLANK ATM168 chip in situ, rather than
hooking up an external programmer?

Then, once the (formerly blank) ATM168 has the Arduino bootloader
burned on it, I can go ahead and use the regular Arduino software
to load sketches via the bootloader.
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by adafruit on Sat Feb 02, 2008 1:54 pm

in theory, yes
in actuality, its very hard, because youd have to solder to some of the little pins on the ftdi chip

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by darus67 on Sat Feb 02, 2008 3:22 pm

Actually not.
On the diecimila, anyway.
They have the unused flow control signals brought out from the FTDI chip to thru-hole pads.
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by adafruit on Sat Feb 02, 2008 8:19 pm

ah, then you are in luck! it seems you know more about this than me :)
you'll just need to jumper the wires as necessary. note that the polarity may be different. search google "FTDI bitbang avr" and im sure the right thing will majikaly appear

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by darus67 on Mon Feb 04, 2008 11:44 pm

I was nosy and had to know what the 4 pads next to the FTDI, labeled "X3",
were for.

I looked up the schematic and found that they are the remaining flow control pins that aren't used elsewhere.
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by adafruit on Tue Feb 05, 2008 12:25 am

sweet so did you get it working? INQUIRING MINDS WANT TO KNOW!

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by darus67 on Tue Feb 05, 2008 11:12 am

I haven't had a chance to hack at it, yet.
This is second on my list of projects, anyway. (#1 is a race timer
for my Son's Cub Scout Pinewood Derby)

I was thinking, it will likely need some hacking of AVRdude, too.
Won't the signals be inverted, compared to what they would be
coming out of a regular serial port dongle?
I suppose I should start by reading the FTDI data sheets.
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

Please be positive and constructive with your questions and comments.