Digispark ATtiny85 DevKit | Getting Started & Programming | Tutorial & Project

Digispark ATtiny85 DevKit | Getting Started & Programming | Tutorial & Project

Digispark ATtiny85 DevKit is a microcontroller-based development board developed by Digistump LLC. It contains Atmel ATtiny85, 8-bit Microcontroller, which has a 8KB of Flash Memory, out of which 2KB used by the bootloader. It also has 0.5KB of SRAM and 0.5KB of EEPROM, which can be read and written with the EEPROM library. It runs on the clock speed of 20MHz.

Digispark ATtiny85 DevKit can be programmed with the Arduino IDE software. It allows you to write programs and upload them to your board. The board can be powered with an USB connection of 5V, via Type-Micro B USB Connector.

Digispark ATtiny85 DevKit has several different kinds of pins, each of which is labeled on the board. Now, let’s see the function of each pins:

- Digispark ATtiny85 DevKit has 6 digital input/output pins, which are labeled P0 through P5. These pins are used for general purpose input/output and can be configured by using the pinMode(), digitalRead() and digitalWrite() functions.

- Digispark ATtiny85 DevKit also has 4 analog input pins, which are labeled P2 through P5. These pins are connected to on-board 4-Channel 10-Bit Analog-to-Digital Converter (ADC) and are used to read the analog voltages by using the analogRead() function.

Both digital and analog pins can tolerate a maximum voltage of 5V and can provide or receive a maximum current of 40mA. Each of these pins has an internal pull-up resistor, which can be enabled by using the INPUT_PULLUP command.

- VIN Pin is used to power the board with an external power supply of 5V to 12V.

- 5V Pin provides a regulated 5V output from the board.

- GND Pin is the Ground pin.

- Digital Pin P0, P1 and P4 are the PWM pins, which can provide 8-bit PWM output by using the analogWrite() function.

- Digital Pin P0, P1 and P2 are MOSI, MISO and SCK respectively are the SPI pins, which support SPI communication by using the SPI library.

- Digital Pin P0 and P2 are SDA, SCL respectively are the Two Wire Interface pins, which support Two Wire Interface or I2C communication by using the Wire library.

- Digital Pin P0 is the analog reference pin, which is used to provide the reference voltage for the analog inputs and used with the analogReference() function.

- Digital Pin P3 and P4 are Data+ and Data- respectively are the USB Data pins, which can be used for USB communication.

- There is a built-in LED which is connected to the Digital Pin P1.

In this tutorial, we will upload a simple Blink sketch, which will turn a LED on and off depending upon the pin value. When the pin value is HIGH, the LED turns on, and when the pin value is LOW, the LED turns off.


Components that are required:

- Digispark ATtiny85 DevKit: http://s.click.aliexpress.com/e/cirVQtVQ

- 400 Tie-Points Breadboard: http://s.click.aliexpress.com/e/b9Q3KNu8

- Type-A to Type-Micro B USB Cable: http://s.click.aliexpress.com/e/cjMhrDOo


Digispark ATtiny85 DevKit | Getting Started & Programming | Tutorial & Project | Connections

Now, let’s see the connections.

- Connect the anode of LED to the Digital Pin P1 of Digispark ATtiny85 DevKit, via a 220 Ohm Resistor.

- Connect the cathode of LED to the GND Pin of Digispark ATtiny85 DevKit.

- Connect the one end of USB cable to the Digispark ATtiny85 DevKit, and another end to the Computer.


In this tutorial, we will use Arduino IDE to program the board. Software and Source Code that are required:

Now, let’s program the board.

- Open the sketch in the Arduino IDE.

- Open Preferences dialog from the File menu of Arduino IDE.

- Enter the URL of the Board Package into the Additional Board Manager URLs field. We can add multiple URLs by separating them with commas.

- Open the Boards Manager from Tools menu of Arduino IDE.

- Find the “Digistump AVR Boards” platform and click on the Install button.

- Select the proper Board from the Tools menu of Arduino IDE.

- Click on the Upload button to upload the sketch to the board.

- The status box of Arduino IDE will now ask you to “Plug in the device” and will timeout in 60 seconds, at this point you need to plug-in the Digispark ATtiny85 DevKit or unplug and replug it.

If the upload is successful, the message "Done uploading" will appear in the status bar of Arduino IDE. After a few seconds, you should see the LED starts blinking.


Popular posts from this blog

DOIT ESP8285 DevKit | Getting Started & Programming | Tutorial & Project

Heltec ESP32 LoRa DevKit | LoRa Controlled Robot Car | Tutorial & Project