Week 6: Embedded Programming

Arduino IDE


Programming the Programmer

1. Introduction

This week we were supposed to program the board that we had made in Week 4 to have the LED in it turn on whenever I pressed the button. Before I could start however, I had to check to see if all of my PCBs worked correctly since I was unsure if it did.

2. Programming

I checked to see if the programmer USB worked first. I started by soldering on a USB header onto the programmer so I could plug it into the PC easily since it seemed like better practice than putting a paper behind it.

Then I programmed the echo board with this programmer to have it echo back whatever I inputted it into the terminal.

Next, my goal was to have the LED in the board turn on when I pressed a button so I programmed it in Arduino and after multiple errors I finally got it to work!

Adding USB Header
Figure 1. Adding the USB Header onto the Programmer.
Programmer Board
Figure 2. After the Programmer Board has been programmed.
Hello Echo Programming
Figure 3. Connecting the Hello Echo Board to program it.
Checking Connections
Figure 4. Checking to see if computer recognized USBTiny and Echo Board.
Programming Hello Echo Board
Figure 5. Programming the Hello Echo Board.
Hello Echo Works!
Figure 6. The Echo Board works as it is echoing what I type!
Arduino Error
Figure 7. Arduino error as it doesn't upload the file onto the board.
It Turns On!
Figure 8. It turns on when I press the button!