Week 07: Embedded Programming
Embedded Programming
This week, we progammed our boards from Week 5 with the FAB ISP programmer.
To get started, I found a few things very helpful:
- ATTiny44 - the datasheet for the microcontroller used, the ATTiny44. I definitely didn’t understand everything in the datasheet, but this was a really good reference for when I was programming my circuit.
- Programming an ATTiny with Arduino
Work flow:
I connected the my ISP to my Button-LED board, and then connected them both to my computer.
Next using my Arduino: ATTiny44 - 20 MHz -> programmer - USB ISP -> burn bootloader
Here’s my Arduino sketch:
I tried some examples provided in the Arduino IDE. I found this to be an easy way to jump into trying coding and becoming familiar with the Arduino library. I tried the blink example, which just blinks the LED using the delay function. The button example turns on the LED when the button is pressed. I combined the programs to make the LED blink when the button is pressed. I also tried the fade example.