Digispark made at home
Digispark is an ATtiny85 based microcontroller development board come with USB interface. Coding is similar to Arduino, and it use the familiar Arduino IDE for development. My digispark will be powered by USB only.Specification:
-Support for the Arduino IDE 1.0+ (OSX/Win/Linux)
-Power via USB
-6 I/O Pins (2 are used for USB)
-6K Flash Memory after upload bootloader
-I2C and SPI
-PWM on 3 pins (more possible with Software PWM)
-ADC on 4 pins
Video tutorial step by step:
Schema:



Upload bootloader and driver installation
Connect Digispark with programmer
1. Download files
2. Extract Digispark.zip
3. You can find the bootloader file at micronucleus-t85-master\firmware\releases\t85_default.hex
4. Upload file t85_default.hex to ATTINY85
5. Set fuse:
Extended: 0xFE
High: 0xDD
Low: 0xE1
6. Install drivers Digistump.Drivers\DPinst64.exe

Configure Arduino IDE:
- Add link in Preferences to “Additional Boards Manager URL”
http://digistump.com/package_digistump_index.json
2. Install library “Digistamp AVR Boards by digistump”
3. Set Board: Digispark (Default – 16.5mhz)
4. Set Programmer :Micronucleus
Copy code or open in arduino Examples\Digispark_Examples\Start
Unplug Digispark before upload sketch and click upload.
If you see the sentence “plug in device now” plug now your DIGISPARK.
Now connect diode LED with pin number 5.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
void setup() { // initialize the digital pin as an output. pinMode(0, OUTPUT); //LED on Model B pinMode(1, OUTPUT); //LED on Model A } // the loop routine runs over and over again forever: void loop() { digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(1, HIGH); delay(1000); // wait for a second digitalWrite(0, LOW); // turn the LED off by making the voltage LOW digitalWrite(1, LOW); delay(1000); // wait for a second } |