Embedded Programming
This week assignment is to program the ATtiny44 microcontroller on the Hello Button + LED board that we made during the Electronics Design week using the Arduino software.
Here are the steps I followed to programm the board:1/ Installing ATtiny in Arduino
2/ Power and connect the boards
3/ Configuring the ATtiny to run at 20MHZ
4/ Select the programmer
The programmer I used is the FabISP we made during the Electronics Production week and once it is connected to the computer it will appear in the Arduino software as the following. We should select the following to be able to program the hello Button + LED board.
5/ Burn the Bootloader
Once the boards are connected and powered, the last step is to burn the bootloader.6/ Programmed the board
To program the board, after doing all the steps mentionned above, we should select one of the program examples in Arduino. I have selected the button example for changing the code. It is very important to change the pin numbers to correspond to the pins used for the LED and the button on the Hello Button + LED board. The pinouts on the microcontroller ATtiny are different from the arduino code, which is important to verify and understand before programming and connecting the two boards together. In my case, the number of the pushbutton pin is 3 and the number of the LED pin is 7, which we have to change in the Arduino settings as the following and press upload:Embedded programming from Pamela C. on Vimeo.
Download the file here : Arduino - button
Fabacademy.org | Copyright © pamelachami | Design by pch