Embedded Programming (Week 8)
The assignment for this week was to learn how to program a board with a chosen language. The board at hand was produced in the previous assignment - Electronics Design (Week 6). Here’s the link to my production exercise.
I used AVRISP2 to program my board as I was unsuccessful in making the fabISP which was an assignment part of week 4 of Fab Academy (Electronics Production).
I downloaded Arduino IDE, FTDI Software and ATtiny board files for further steps.
First up, I tried programming using Arduino IDE. I changed the board to reflect ATtiny44(external 20 MHz clock) and selected AVRISP2 as my programmer. We need to do an extra step and change the speed of the microcontroller to 20 MHz as we have used the 20 MHz resonator.
Next up, was hitting the “Burn Bootloader” command from tools menu.
Then I opened the sample “Button” program from File tab and changed the pin numbers as per what we had soldered. I plugged the board into FTDI cable and connected it with AVRISP2 and also ensured correct selection of programmer under tools menu, before hitting the “upload” button.
I was successful in programming the board using Arduino IDE.
Next, I tried programming my board using Neil’s C - Code and was successful at that too !
I downloaded relevant files - hello.ftdi.44.echo.c and hello.ftdi.44.echo.c.make
And made sure the connections with FTDI cable and AVRISP2 are intact. On Terminal, I ran the following command :
sudo make -f hello.ftdi.44.echo.c.make program-avrisp2
And tested the circuit on Arduino IDE’s Serial Monitor.
Here’s the link to video !