Attiny85 Digispark kickstarter Mini USB Development Board
Attiny85 Digispark kickstarter Mini USB Development Board – Description
Tired of leaving valuable Arduino’s in projects or even having to rip the project apart to retrieve the Arduino?
Sometimes you only need a few pins for a project and then the rest of the Arduino goes to waste.
The DigiSpark Kickstarter is the little brother to the Arduino family, small in size but even capable of powering an LCD screen with easy.
– Power via USB or External Source – 5v or 7-16v (automatic selection)
– On-board 150ma 5V Regulator
– Built-in USB (and serial debugging)
– 6 I/O Pins (2 are used for USB only if your program actively communicates over USB, otherwise you can use all 6 even if you are programming via USB)
– 8k Flash Memory (about 6k after bootloader)
– I2C and SPI (vis USI)
– PWM on 3 pins (more possible with Software PWM)
– ADC on 4 pins
– Power LED and Test/Status LEDe Diet Duino
Step 1: Pin Designations
To begin with Physical pins on Microcontrollers are numbered anticlockwise starting at the notch or dot on the back of the chip.
Then, for example, physical pin 7 on the ATtiny85 is designated as digital 2 or Analog 1.
Step 2: Open Source Arduino IDE Setup
It is now assumed that the Open Source Arduino IDE has been downloaded and installed along with the ATtiny 85 board manager files.
If not, it is all detailed here: https://github.com/damellis/attiny/zipball/Arduino1
Step 3: Setup the Arduino as a Programmer
The Arduino Uno first needs to be setup as a Programmer or ISP (In System Programmer).
Select “Arduino Uno/Genuino” as the board.
Verify (Compile) & Upload the Sketch “ArduinoISP”, found under Examples.
It should complete successfully with message done Uploading.
This will confirm that correct Port is being used and communication between PC and the Arduino Uno is working.
Step 4: Connect the Arduino Uno to the ATtiny 85 Digispark.
Also, a 10uF capacitor from Reset to GND on the Arduino Uno.
IMPORTANT: This prevents an auto reset when uploading the program to the ATtiny85.
It should only be connected in this step when using “Arduino as ISP” to program the ATtiny85.
Step 5: Burn Bootloader onto ATtiny85.
To do this the Arduino must be setup as In System Programmer.
From Tools Menu,
Change Programmer to “Arduino as ISP”
From Tools, Board Select “ATtiny85” as the Board to be programmed:
Recheck that the correct ATtiny is selected, otherwise there will be errors.
From the IDE Tools, Menu, Clock. Select: 8MHz Clock speed.
The IDE should confirm with ‘Done burning bootloader’
Step 6: Upload a Sketch Program
This can be confirmed by hooking up LED tp pin P0 and Uploading Blink from examples list.
Note: Change pin number from 13 to 0. It appears in 3 places. Then, compile and upload.
Step 7: Test to Confirm
Hook up an LED to terminal 0 and power up the ATtiny85 via the mini USB or a battery.
Step 8: Check Programmer Heartbeat
Instead of blindly following steps, it helps in troubleshooting if one understands the process better.
It begins with “this sketch turns the arduino into an AVRISP”.
What is an AVRISP?
Again after much searching AVR, are simply the initials of the guys that developed small processors like the ATtiny 85?
And RISC= Reduced Instruction Set Computing.
And ISP = In System Programmer
For those who want visual confirmation that download was successful.
And that the Programmer is running try this:
Put an LED (with resistor) on the following pins:
9: Heartbeat – shows the programmer is running
8: Error – Lights up if something goes wrong (use red if that makes sense)
7: Programming – In communication with the slave
View our Newsfeed on Facebook
Additionally see our accessories – Click to view