Embedded Programming

This week, we progammed our boards from Week 5 with the FAB ISP programmer. program

To get started, I found a few things very helpful:

  1. 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.
  2. 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 program

Here’s my Arduino sketch: program

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.

program