SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By spartan228
#111675
Hey

I just bought a pocket AVR programmer and I'm trying to figure out how to wire it to the Serial Controlled Motor Driver

http://www.sparkfun.com/commerce/produc ... ts_id=9825

http://www.sparkfun.com/commerce/produc ... ts_id=9571

using the broken out pins of the Atmega 328P chip so that I can make changes to the firmware.

The broken out pins on the motor driver are GND, 5V, ADC 7, ADC 6 PC 5, PC 4. Which pins correspond to the Programmer?

Any ideas?

Thanks.
User avatar
By thebecwar
#111679
From the atmega328 datasheet on page 2:

Pin 29 RST
Pin 15 MOSI
Pin 16 MISO
Pin 17 SCLK

You will also need to tie your programmer to VCC and GND, but you can do that anywhere in your circuit, they just have to be the same source. The 6 holes on the board in a 2x3 are an ISP header.
By spartan228
#111695
The six broken out pins are the only ones I can use to modify the chip, maybe the Rx and Tx lines too? I don't know which pins on the avr programmer correspond to the ones on the motor driver. I know what they are labeled but I don't know which ones go to which
By n1ist
#111715
You need to solder a 6 pin (2 rows of 3) header in the empty holes in the middle bottom of picture 2 on the product page. Then plug the 6-pin connector from the programmer onto the header. Pin one has the extra line on the silkscreen; it is next to the diodes, closest to the L298 chip.
/mike