AVR Programmer
From Null Space Labs
Contents |
The Kraken
Schematic is in 032.SVN, Board layout is finished. (built and tested).
It has been programmed but USB doesn't ,say hello, is it me you're looking for ? one of the LED's on the test board was faulty and may have caused problems for the CPU since it was basically shorting GND to 5v via a resistor. Swapped cpu to atmega48a, changed zener diodes to 3.6V 500mW usb D+ voltage is good at 3.6V still no go... two resistors were swapped during build... oops....
Useful manual for similar version http://www.protostack.com/download/Users%20Guide%20(AC-PG-USBASP-UG-V1.0).pdf
J3 = B = slow clock
When this jumper is selected, the slow clock mode is enabled. If the target clock is lower than 1.5 MHz, you have to set this jumper. Then SCK is scaled down from 375 kHz to about 8 kHz.
J2 = A = supply target
If this jumper is bridged, then +5V supply from the USB port will go tho the target device via the ISP VCC connector. Disable this jumper if the target device has its own power source.
J1 = C = self program
This jumper is used to update the firmware of the Kraken programmer. In order to update the firmware you will need 2 programmers. One to be programmed and the other to do the programming
Testing
Tested with layer one prototype board, newest prototype built and tested.
this info is for the first rev of the board i already rev'd it to a 6 pin header and dropped the txd/rxd
200 Boards have been ordered, theres really no need to add yourself to a buy list , we got you.
[C:\WinAVR-20100110\bin]avrdude -c usbasp -p atmega64 -U flash:w:meeblip.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9602
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "meeblip.hex"
avrdude: input file meeblip.hex auto detected as Intel Hex
avrdude: writing flash (1228 bytes):
Writing | ################################################## | 100% 0.73s
avrdude: 1228 bytes of flash written
avrdude: verifying flash memory against meeblip.hex:
avrdude: load data flash data from input file meeblip.hex:
avrdude: input file meeblip.hex auto detected as Intel Hex
avrdude: input file meeblip.hex contains 1228 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.44s
avrdude: verifying ...
avrdude: 1228 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
Wiring
Kraken V1 10 PIN Wiring is ( V2 is standard 6 PIN)
Standard ISP Headers
KRAKEN 1 2 3 4 5 6 7 8 9 10 ISP 1 2 3 4 5 6 K I 1 - 4 7 - 3 9 - 1 VCC - 5V 10 - 6
First Time Programming
Set the 5V jumper (connected to VTG pin on 6 pin ) Set JP2 underneath the CPU ( remove both after programming! Plug into USB
Program as ATMega8(A) with this firmware File:Usbasp.atmega8.2009-02-28.rar
ATMega8 Fuses
HFUSE=0xC9 LFUSE=0xEF
For ATMEGA48(A) use this firmware File:Usbasp.atmega48.2009-02-28.hex.7z and these fuses
ATMega48 Fuses
HFUSE=0xdd LFUSE=0xff
Plug into USB
Build tips
MELF Diode
Orientation of the diode.
== Build Instructions ==
1)Add the 18pF capacitors
2)Add the 12MHz crystal
3) Add the 2.2KOhm resistor
4) Add the two 68Ohhm resistors
5) Add the 100nF (or 0.1uF) capacitor
6) Add the 10KOhm resistor
7) Add the ATMega48 chip. The dot on the chip denotes orientation. Make sure to line up the dot on the chip with the dot on the board. The dot should be pointing toward the usb connector.
8) Add the USB Mini B connector. Make sure to solder down all of the pins in the back of the connector.
9) Add the 2 MELF diodes. The cathode marks on the diode (as shown in the build tips above) should face each other.
10) Add the 4.7uF capacitor. The stripe on the cathode denotes orientation and should be facing the inside of the board.
11) Add the two 1KOhm resistors
12) Next add the LEDs. Before placing the LEDs it's important to test the polarity since orientation matters for this part. You can test it using a multimeter. Turn the mulitmeter on to the diode setting, as shown below. Take the two leads and place them on the ends of the LED. The purpose of this is to figure out which way the current will flow through the LED, since, like regular diodes, current can only flow in one direction. Once the LED lights up, you will have figured out which side of the LED is the anode (the + side) and which is the cathode (the - side).



13) You'll want the cathode of the LEDs to face toward the inside of the board (away from the two resistors next to them). The cathode is usually marked with a little green speck. It's important to always check at least 1 LED from a batch since the marking on the LED does change depending on the manufacturer.
14) Lastly, add the 2x3 pin header
Make sure to clean of the board with Flux Remover, rinse off under very hot water and dry it thoroughly. Now you have your own AVR Programmer!
Links
- USBASP Basis for design
- Khazama Programming software
- Windows Driver
- AVRDude Programming software
- 10 Pin IDC Cable
- AVR Doper (STK500 compatible)
- Extreme AVR GUI
I recommend either Extreme AVR GUI or Khazama for programming, its a lot easier than AVRDude..
Test Sign drivers
Use this to put windows into test mode if you get a yellow exclamation mark on the driver
http://www.ngohq.com/home.php?page=dseo![[NSL Kraken]](http://farm6.static.flickr.com/5264/5739991113_7eef2c8570.jpg)





