ATtiny85 Digispark How to Blink an LED Using Visuino

by RonFrtek in Circuits > Arduino

171 Views, 1 Favorites, 0 Comments

ATtiny85 Digispark How to Blink an LED Using Visuino

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.

What You Will Need

ATtiny85-.jpg
ATtiny85.jpg
VisuinoAdvrtisemenNeuroShield-small (1).jpg


Start Visuino, and Select the Digispark Board Type

2023-10-08_11-00-04.png
select-board-uno.jpg

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


In Visuino Add & Connect Components

2023-10-07_13-28-22.png
2023-10-07_13-29-48.png
2023-10-07_14-02-54.png
digispark-led.png
  • 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.

Generate, Compile, and Upload the Project

2023-10-08_11-04-26.png
  • 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.


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

Downloads