The assignment for this week is to read a microcontroller data sheet and program your board to do something, with as many different programming languages and programming environments as possible.
This is the week that I have been dreading. I have no computer background whatsoever. I've taken computer classes to help me become more proficient in educational technology. I do use technology in the classroom but in no way have I ever had to understand the languages and commands that go into writing code. Just about everything that I've done up to this point in my life has been template dependent. This is one of the reasons why it has taken me so long to get my web pages together and up on the server. Anyway, my partners in crime and I returned to the Lorain lab on Friday night after our "real" jobs were over to begin the adventure of programming.
So my goal for this week is to be able to understand how to read a microcontroller data sheet. I know that the assignment says to program in as many languages and environments as possible, but I would be thrilled to be able to complete this assignment in ANY language! I know that Scott will push us to do more and I am happy that he challenges us.
To program in C I have to downloaded the hello.ftdi.44.echo.c and
hello.ftdi.44.echo.c.make files.
First, the software for AVR Programing must be found on the device you are using. I needed:
- Avrdude for programming
- GCC to compile the new C code.
To get the program I need to use the following commands:
- sudo apt-get install flex byacc bison gcc libusb-dev avrdude
- sudo apt-get install avr-libc
- sudo apt-get install libc6-dev
Connecting the Hello Echo and Programmer
The ATtiny fuses need to be set to run at 20mhz. This is done using sudo make -f hello.ftdi.44.echonew.c.make program-usbtiny-fuses
Finally, the board is programmed in the open terminal by sudo make -f hello.ftdi.44.echonew.c.make program-usbtiny.
Project Files: