ATtiny85 Digispark How to Blink an LED Using Visuino

Learn how to program a Digispark ATtiny85 board to blink the built-in LED using Visuino.

STEP 1
What You Will Need

Ā 

What You Will Need

What You Will Need photo 2

What You Will Need photo 3

STEP 2
Start Visuino, and Select the Digispark Board Type

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Digispark (Model A)" or "Digispark (Model B)" as shown on Picture 2

Ā 

Start Visuino, and Select the Digispark Board Type

Start Visuino, and Select the Digispark Board Type photo 2

STEP 3
In Visuino Add & Connect Components
  • Add "Pulse Generator" component
  • Connect "PulseGenerator1" pin [Out] toĀ DigisparkĀ board >Ā LEDĀ >Digital pin [In]

Optionally: You can set the speed of the LED blinking by selecting the "PulseGenerator1" component and in the property set the "Frequency" to a higher or lower number.

In Visuino Add & Connect Components

In Visuino Add & Connect Components photo 2

In Visuino Add & Connect Components photo 3

In Visuino Add & Connect Components photo 4

STEP 4
Generate, Compile, and Upload the Project
  • In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.
  • Connect the board to the USB only after you click the ""Compile/Build and Upload" button" and when you see in the window a message:

"Plug in device now... (will timeout in 60 seconds)"
Ā "Please plug in the device ..."
Ā 

Ā 

  • You don't need to select any port or anything else, Visuino will do all the work and Upload the project.

Ā 

Generate, Compile, and Upload the Project

STEP 5
Play

After uploading the project to theĀ Digispark boardĀ the internal LED will blink.

Congratulations! You have completed your LED project with Visuino. Also attached is the Visuino project, that I created for this Tutorial. You can download and open it in Visuino:Ā https://www.visuino.com

For more simple Ideas that you can add to this project check out this tutorials:

Visuino How to Use Pulse Width Modulation (PWM) to Change Brightness

Visuino RAMPS for Pulse Width Modulation (PWM) Using LED

icon Digispark.zip 2KB Download(0)
License
All Rights
Reserved
licensBg
0