Week 9
Mar 13. Embedded Programming
Group Assignment
Compare the performance and development workflows for other architectures.
Instructions
- We reviewed Arduino and Atmel Studio Platforms
- Advantages of Arduino
- Ready to use
- Easier to program
- Lots of off the shelf libraries
- Advantages of Atmel
- Smaller program
- Program the exact bit you need
- More control over the code
Instructions
- Based on our group assignment and time frame I decided to use arduino as it is the easiest way to do it for me.
- Define what you want your OCB to do (I wanted my led to blink)
- Design the PCB
- Cut the PCB
- Solder the components
- Program the algorithm
- Arduino Programming
int ledPin =4;
void setup() {
// put your setup code here, to run once:
pinMode(ledPin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i=0; i <10; i++){
digitalWrite(ledPin, HIGH);
delay(i*100);
digitalWrite(ledPin, LOW);
delay(i*100);
}
} - Compile
- Test