week8-embedded programing

This weeks assignment  was to program the board we built 2 weeks ago.

I downloaded and installed Arduino.

1

I downloaded the FTDI drivers

2.

I connected the FTDI cable and installed it with its drivers.

In the Arduino software i go to the preferences and find where is the sketchbook folder.I navigated to that folder   and opened a sub folder in it called “hardware”.

I downloaded the ATtiny Board files and  unziped them to the hardware folder.This is for Aerduino recognize the ATtiny.

When i restarted Arduino i saw the ATtiny family in the tools>board menu.

I conected the fabisp and the button board.

IMG_5223

I selected the ATtiny44(external 20 MHz clock)

IMG_5217

. Then in the tool>programmer menu i selected USBtinyISP.

IMG_5215

then the serial port.

IMG_5216

From the tools menu i selected “Burn Bootloader”.

IMG_5214

 

 

Go to File > Examples > 02. Digital > Button Provides a code example for programming the LED+BUTTON.

I changed the constant intager of the button pin to 3 and the led pin to 7.

IMG_5220

 

Then i change the result of the led when the button state is high.

IMG_5218 IMG_5219

after uploading i got this massage.

IMG_5221

I also added delay to the code.

IMG_5225