Mini Arduino(digispark)

Intro: Mini Arduino(digispark)

This project is the successful clone of the DigitSpark(Attiny85 based Mini Arduino). In this Instructables, i will show you how to create this cool project by you own. For finding this project is working, you have to follow the following steps carefully.

Step 1: Components Required

The following Components are Required for this Project

1. Attiny85 Microcontroller with base 1Nos

2. Zener Diode 3.6v 2Nos

3. Resistor 68ohm 2 Nos

4. Resistor 1.5K 1Nos

5. Red Led with current limiting resistor 330ohm 1Nos

6. Green Led with current limiting resistor 100ohm 1Nos

7. LM7805 Voltage Regulator

8. Capacitor 47microfarad and 0.1 microfarad 1Nos

9. Male and Female Headers Pins

10. Perf Board(General Purpose Board)

11. Multicolour Strip Wires

12. MBR0520LT or any Commom Schottky Diode 1Nos

Step 2: Make the Circuit on Breadboard

Make the Circuit as according to the schematic on the Breadboard or you can directly solder on perf board.

Step 3: Burning the Bootloader to Attiny Chip

For burning the bootloader to the chip, there is two methods 1. By using Avr programmer and 2. By using Arduino as a ISP programmer. I am using Second method, Arduino as ISP programmer. You can learn more about this method from given link: https://www.arduino.cc/en/Tutorial/ArduinoISP

For using Arduino as ISP programmer for uploading bootloader, You need following process

1. Arduino Programmer Shield, this you can build this by own. for detail about this follow the given link :

https://www.instructables.com/id/ATtiny-Programmin...

Attiny BoardManager link : http://drazzy.com/package_drazzy.com_index.json

Copy the Link and the Open the Arduino IDE > File>preferences> and paste the boardmanager link to Additional board Urls >Ok.

Now open tools>board>boardmanager>Select Contributed and then Select Respective Board (AttinyCore) and then install it.

(Note if you know About it then you can directly jump for bootloader uploading process.)

2. Upload the Arduino as ISP program to the Arduino Uno.

3. Plug the Attiny chip to the programmer and connect with Arduino.

4. Download the bootloader for Attiny85 from given link: https://github.com/micronucleus/micronucleus

and expand it to a local Windows directory. At the time of writing, the latest bootloader is Micronucleus V2.03; its file is /firmware/releases/t85_default.hex

5. Copy the bootloader t85_default.hex file to the arduino Folder.

6. You can burn the bootloader either using AVR programmer or through Arduino. I am using arduino for burning the bootloader. Just open the arduino folder from where your arduino installed or placed.

7. Now Press shift button and Right Click of mouse and find Power Shell Window. and just copy the link in the Power shell :

D:\arduino-1.6.9\hardware\tools\avr/bin/avrdude -C D:\arduino-1.6.9\hardware\tools\avr/etc/avrdude.conf -v -pattiny85 -cstk500v1 -PCOM6 -b19200 -Uflash:w:t85_default.hex -U lfuse:w:0xE1:m -U hfuse:w:0xDD:m -U efuse:w:0xFE:m

and change the PCOM as according to your arduino COM port , for my case it is 6.

If every thing is Alright then Bootloader will easily flash.

Step 4: Driver and Board Manager Installtion

1. Download the Driver for digistump, If using Arduino 1.6.6 or higher and windows - you will need to download
and install the drivers manually. Download, unzip and run “Install Drivers” (on 32bit systems) or “DPInst64” (on 64bit systems). If you get stuck, try following the steps shown in this YouTube video.

The driver files are located here: https://github.com/digistump/DigistumpArduino/rel...

2. Now Download the BoardManager For digistump, Link is given below:

http://digistump.com/package_digistump_index.json

If you dont't Know how to install additional boards in Arduino IDE then see the given link below:

https://www.arduino.cc/en/Guide/Cores

Step 5: Programming

1. Copy the Given Program to the Arduino IDE

// Blinking Code for Digitstump
// Blink the builtin led int buitIn_led = 1;

void setup() {

// put your setup code here, to run once:

pinMode(buitIn_led,OUTPUT);

}

void loop() {

// put your main code here, to run repeatedly:

digitalWrite(buitIn_led,HIGH);

delay(1000);

digitalWrite(buitIn_led,LOW);

delay(2000);

}

For My case LED attached on digitalPin 1.

2. Before Compilation change the Board , Tools>Board>Digitatump(Default 16.5mhz) and programmer to micronucleus

3. Now Compile and Upload . Make sure the Digitstump should not connected to the PC when ever it not ask for connect "Running Digistump Uploader Connect Digistump with in 60 second " Something Like that

Done!!!!!!!!

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Furniture Contest 2018

      Furniture Contest 2018
    • Audio Contest 2018

      Audio Contest 2018

    Discussions

    0
    None

    Welcome to Instructables. Thanks for sharing with the community.