|Lab #0 - Install Atmel Studio 7 using link above (using web installer). |
Next add "Terminal for Atmel Studio" by going Help | Atmel Gallery | Extensions | Terminal for Atmel Studio. You will have to close and reopen Atmel Studio and then it will apear in the VIEW menu.
Next we will set up Atmel Studio to send code to arduino boards using avrdude (see below for strings).
Next we will start a project, copy the blink code from here into the project, modify the code (to blink the LED on the arduino), compile it and send it to the arduino board to verify it works.
|Aug 30||Intro to Atmel328P||Class Notes|
|Sep 4||General Purpose IO||Chp 4|
|Sep 6||GPIO (Cont)||In Class Assignment #1 - Write a program that will use PORTD as an input port and display the port value to the terminal (in Hex). Add statements to the program to MASK PORTD Pin 4 so that it prints "Depressed" when ONLY THAT BUTTON is pressed.|
|Sep 11||Analog to Digital (ADC)||Chp 13||Setup printf for Floating Point values||Lab #2 - due via electronic submission at start of lab next week (including demo).|
|Sep 13||Interrupts||Chp 10.3||In Class Assignment #2 - write a program that will interrupt when a switch goes from a low to a high and toggle an LED when it occures.|
|Sep 18||Interrupts (cont)||Lab #3 - due in one week (electronic submission and hand written work).|
|Sep 20||Finish Lab #3|
|Sep 25||No Class or Lab (Instructor Out)|
|Sep 27||Commenting Code|
|Creating and Debugging Programs|
NASA C Style Guide
|Oct 2||Timers (cont)||Chp 15||Lab #4 - Read a light to frequency sensor and display timer tics and frequency to terminal. Due by end of lab. (Don't forget to comment!)|
|Oct 4||Work on Lab #5||Lab #5|
Excel for Notes vs Freq
|Oct 9||Work on Lab #5|
|Oct 11||No Class - Instructor out of town (Work on Lab)|
|Oct 16||No Class - Fall break|
|Oct 18||Work on Lab #5|
|Oct 23||Work and complete Lab #5|
|Oct 25||I2C||Chp 18||Intro|
|Oct 30||LCD (Lab #6)||Lab #6 - due Nov ??.|
Note: DO NOT start project with I2C selected....manually set up I2C using sample code as instructed in handout.
LCD Data Sheet
Chp 18 code (select 18_3.c from pulldown)
|Nov 1||Finish Lab #6|
|Nov 6||I2C Read||Lab #7 - display the output from a ADXL345 accelerometer to the terminal.|
|Nov 8||Finish Lab #7|
|Nov 13||SPI||Chp 17||In Class Assignment #3 - Use sample programs 17_3.C and 17_4.C to communicate between two arduino boards.|
Lab #8 - Repeat Lab #7 using SPI instead of I2C.
|Nov 15||Continue working on Lab #8||Sample SPI code|
|Nov 20||Work on Lab #8 on your own|
|Nov 22||Thanksgiving Break|
|Nov 27||Final Project||Lab #9 (Final Project) - Using the robot bases in ET 227 modified for Arduino (see pic) and using the onboard H-Bridge and your assigned sensor (see below) write the program that will have the robot go forward until it encounters an object within 2 ft. If within that range, generate a random number and turn left 30 deg or right 45 deg based on the random number, then continue to go straight (program should run indefinitely).|
Amber will use a Sonar modual (Mode 1 - SRF04 Compatible Mode) trigger via the main loop and the echo should use a TC1 interrupt.
Jimmy will use a Lidar-Lite. You can choose PWM or I2C mode for the device.
Due by Dec 13 at 10am along with demo.