Embedded Programming

Topics Covered

Library Installation

Before we can program our ATtiny412 hello-world board in Arduino, we need to first install a library that can read the board.
We will be using the ATTinyCore by Spence Konde. The link to the library can be found here.

To install the library follow these steps.
Step 1: Copy the boards manager url and paste it ibto the "Additional Boards Manager URLs"

library-url hello-url

Step 2: Open the board manager. (Tools > Boards > Boards Manager)
Step 3: Find and install "ATTinyCore by Spence Konde". Ensure it is the latest version.

board-manager

Step 4: Select ATtiny412 without Optiboot

hello-select

And now we are ready to start programming our board!

Programming Demo

We are going to do a simple demo to make sure that our hello-world board works! Run a simple code like the following. Before you start, do check the chart below to check which pins you are using

ATtiny-pins hello-demo

To run the code to our board we would need to use "upload Using Programmer" (found under "Sketch").

Problems I Faced

My board was faulty and Mr Steven Chew kindly helped me to figure out the issues as I didnt know what was wrong. After replacing both the MCU and the led I finally had a working board!