Electronics

Digispark ATtiny85 Blue

AED 19.95

1

Description

The Digispark is an Arduino-like ATtiny85-based microcontroller development board, however, it is less expensive, smaller, and slightly less powerful. The USB connectivity on the Digispark development board is dependent on a bootloader built into the chip. 

Package Includes:

  • 1 x Digispark 85 Blue

Features:

  • Microcontroller AVR ATtiny85 (8bit)

  • Power Supply 7-12V 

  • Digital I/O Pins 6

  • Analog I/O Pins 4

  • Total Digital I/O 6 (Digital + Analog)

  • Clock Speed 16.5 MHz 

  • Contains 512 bytes of SRAM

  • Contains 512 bytes of EEPROM

  • Flash Memory 8KB bootloader will occupy 2KB flash memory, leaving us with 6KB

  • I2C and SPI
  • Power LED and Status LED

  • 5v Regulators

Description:

The Digispark is an Arduino-like ATtiny85-based microcontroller development board, however, it is less expensive, smaller, and slightly less powerful. The USB connectivity on the Digispark development board is dependent on a bootloader built into the chip. In flash memory, the bootloader takes up 2KB, leaving us with 6KB for programming. The well-known Arduino IDE can be used to program in C. as with

Principle of Work:

Digispark is Free hardware, anything whose blueprints and specs are available for anybody to copy. This means that Arduino IDEs are the framework so that any other individual or business can design their own boards, each of which can be unique yet function well when built upon the same framework. Free software is a computer program whose source code is available to anybody, allowing them to use and alter it as they see fit. In order to allow anyone to create apps for boards and Arduino IDE with a variety of utilities, Arduino IDEs the Arduino IDE (Integrated Development Environment) platform. which you can use to program and upload your code (sketch) and do this using an embedded software USB Functionality using the V-BUS library with the help of an embedded bootloader, the uses libraries that can be downloaded online and gives you the ability to program a significant number of sensors and module without even knowing how they really work.

Pinout of the Module:

 

Interfaces PIN
GPIO P0, P1, P2, P3, P4, P5 – (6 GPIO)
SPI MOSI (P0), MISO (P1), SCK (P2)
PWM P0, P1, 3p,P4 – (4 PWM)
ADC A1, A3 ,A4,A5– (4 ADC)
I2C SDA (P0), SCL (P2)

Digital I/O

Digispark has 6 digital input/output pins (of which 4 can be used as PWM outputs). These pins can be configured as digital input pins to read the logic value (0 or 1). Or used as a digital output pin to drive different modules like LED, relay, etc.

Using pinMode(), digitalWrite(), and digitalRead() functions.

Analog Pins

The Onboard has 4 analog inputs

GND

Ground pins

AREF

The reference voltage (0-5V) for analog inputs. Used with analogReference(). Configures the reference voltage used for analog input (i.e. the value used as the top of the input range).

SDA

IIC communication pin

SCL

IIC communication pin

USB Connection

The board has a USB interface with software USB functionality based on the V-BUS library which emulates the USB Port even though there is no Serial converter on the board. For connecting to the PC, you need to install the driver

OnBoard LED

There is a built-in LED driven by digital pin 1. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.

Voltage Regulator

Convert an external input DC7-12V voltage into DC 5V, then switch DC 5V to the processor and other components.

Power Pin 5V

ProvArduino IDEs 5V output voltage

Vin

You can supply an external power input DC7-12V through this pin to the board.

Power LED Indicator

Powering the LED on means that your circuit board is correctly powered on. If LED is off, the connection is wrong.

Applications:

  • Industrial machinery controlling systems
  • Solar applications
  • IOT based applications
  • Power supply and charger-based applications
  • Weather sensor systems
  • Wireless communication applications
  • Security based applications
  • Medical & health equipment
  • Automobile related applications

Circuit:

We will not need any circuit, in this testing code, we will rely on the built-in LED on the 1 pin.

Connecting with First Time

1. Open Arduino IDE

If you haven’t done so already, download Arduino IDE from the software page. 

2. Connect the board to your computer

Adding Additional Boards Manager URLs

  • From the top menu of the Arduino IDE application, select File → Preferences to open the Preferences dialog box.
  • Paste the following in the Additional Boards Manager URLs: box of the Preferences dialog box. If you have multiple URLs then separate them with commas.
http://digistump.com/package_digistump_index.json
  • Click the OK button.

 Installing Digispark Board Support Package

  • In the Arduino IDE, navigate to Tools → Board → Boards Manager… to open the Boards Manager window.
  • Type Digispark into the search field at the top of the Boards Manager dialog box window.
  • After filtering, Digistump AVR Boards is displayed in the Boards Manager then click on the Install button of the Digistump item in the dialog box, as shown in the image below.
  • After clicking the Install button, the package will start installing.
  • When the installation completes, click the Close button.

Install the Digispark Windows 10 Drivers

  • Download the Digispark Digistump Drivers for Windows.
  • Extract the Digistump.Drivers.zip which we just downloaded.
  • Double-click either DPinst64.exe on a 64-bit Windows computer or DPinst.exe on a 32-bit Windows computer to install the Digispark drivers.
  • Click on the install button when prompted.
  • If a dialog box pops up that displays Windows can’t verify the publisher of this driver software, click the Install this driver software anyway button.

 

3. Select Board

The Digispark works a bit differently than some Arduino-compatible products. The Digispark programs with a different procedure.

First, from the Tools menu select Board→Digispark (Default – 16.5Mhz)

(The Tools→Programmer & Tools→Port selection does not matter)

 

4. Upload a sketch

  • Now write some code or open a Digispark example. Then click on the upload button (do not connect the Digspark attiny85 to your PC)
  • Hit the upload button. The bottom status box will now ask you to plug in your Digispark – at this point, you need to plug it in, or if already plugged then unplug and replug it.
  • You’ll see the upload progress and then it will immediately run your code on Digispark.

If you unplug the Digispark and plug it back in or attach it to another power source there will be a delay of 5 seconds before the code you programmed will run. This 5-second delay is the Digispark checking to see if you are trying to program it.

Code:

void setup() {
 pinMode(1, OUTPUT); // On board LED terhubung dengan port 1 attiny85
}
void loop() {
 digitalWrite(1, HIGH);
 delay(200);
 digitalWrite(1, LOW);
 delay(200);
}

Technical Details:

  • Microcontroller: ATtyny 85
  • Microcontroller Clock Speed 16.5MHz
  • Operating Voltage +5V
  • DC Current for 5V Pin 500mA
  • Input Voltage(recommended) +7~+12V
  • Output Voltage +5V
  • Digital I/O Pins 6
  • Rated Current per Pin 20mA/Pin
  • High-performance design
  • Low power consumption in operating mode on 1.8 volts current consumption is only 300uA & on power down mode current consumption is only 0.1uA on 1.8V.
  • Minimum & maximum temperature -40 degree centigrade to 105-degree centigrade
  • Size: 23 x 17.5mm

Resources:

Comparisons:

Despite nearly often being inferior to the Uno board, the Digispark board can function as a USB device. The hardware USB module is not available in the ATtiny85. However, practically any AVR microcontroller with at least 2 kB of Flash memory and 128 bytes of RAM may imitate the USB1.1 protocol thanks to a specialized library called V-USB. So you may build USB-applied devices like a keyboard, mouse, joystick, virtual COM port, etc. utilizing this Digispark board. Additionally, the Digispark contains an LDO regulator that enables power to the board with a voltage applied to the VIN pin ranging from 7 to 12 V. As you can see, this LDO takes up a substantial portion of the board space. The Arduino compatibility of Digispark is another factor in its popularity. so if you have a small project which doesn't need lots of pins you can use this board but still we can not recommend this board for begginers.