WELCOME TO BOOTCAMP JOURNEY / Task 2 / 4. Programming

4. Programming

A- Arduino

photo

  • To install it navigate to tools menu and then click on boards manager in boards drop down menu.

photo

  • Search for attiny and click on install on the first package visible.

photo

  • Now to set up the controller and programming settings, Go to the tools menu, choose from Boards, ATtiny microcontrollers and then select Attiny25/45/85.

Another settings in tools menu, in processor and then select ATtiny45

Change also in clock to internal 8 MHz.

  • Last but not the least, in the programmers drop down menu select Atmel ICE (AVR).

Do not select the com port

photo

  • Note make sure the driver for attiny is installed , by checking in the device manager. (driver) if not installed clickhere to install it.

photo

  • Now upload the code by upload using programmer in the sketch menu.

photo

Enjoy the victory!

B - Interface (processing)

  • To activate the interface between the laptop and the pcb, comment and uncomment the lines shown.

photo

  • Upload as previously described by using programmer option.

  • Now remove the programmer cable, open the processing application and open the file given led_pattern processing file.

  • Change the port serial 0/1/2/3 according to each laptop configuration. 2 was working for me.

photo

  • Now click on Run.

photo

  • This is some description from the codeā€¦.. Create an integer called w store in it 100.

photo

  • Also Implement the if else condition for the 2nd button.

photo

Have fun!

About Me Task1 Task2 Home