Embedded Programming

 

Phase 01 > Board Design

I have no previous background in boards design, so I kept it simple and just added a button and  a LED.

 

Phase 02 > Milling The Board

I decided that if I’m not doing any fancy board design, at least I would add some sort of graphic icon to it.So I add at Photoshop a light bulb icon.  
In order to allow the Fab Modules to read the PNG file needs to be saved at RGB mode 8 Bits/Channel.

 

Phase 03 > Stuffing and Debugging The Board

With the help of Shahar Ronen I checked the board with and it worked!

 

 

Phase 05 > Programing in C

Except of 3 lectures in JAVA this semester I have no background in programming.
So I took the opportunity of the section with David Mellis and with his help I compiled the board and the upload the following program which turn on and off the LED by pushing the switch.

We wrote the code in Word Pad and ran it in Windows Command Line.

Phase 06 > Programing in Adriano > Blinking

The first attempt was to make the LED blink, which meant to insert the right pin for the LED which is 7.

I also lower the blinking speed.

 

 

Phase 06 > Programing in Adriano > Using The Button to Turn on The LED

Again, I used an exciting example, change the pins number to 7 for the LED, and 3 for the button.
Because of the fact that in Eagle I designed that the button will be HIGH by default, I also had to change in Adriano the “buttonState==LOW” instead of   “buttonState==HIGH”.

 

Phase 06 > Programing in Adriano > Using The Button to Make The LED Blink 3 Times

This time I wanted to combine between the “Blink” and the “Button” sequences , and make the LED blink 3 times every time that I push the button .

The problem was that I had to keep the bottom pushed in order for the LED to blink 3 times. I couldn’t find a way to push the button one time (without keeping my finger on it) at to make the LED blink 3 times.