Week 9

Mar 13. Embedded Programming



Group Assignment

Compare the performance and development workflows for other architectures.

Arduino

Arduino software to program microcontrollers.

Atmel

Atmel Studio to program microcontrollers.

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


Individual Assignment

Read a microcontroller data sheet, program your board to do something, with as many different programming languages and programming environments as possible.

Data Sheet

Pin configuration.

Board

PCB to program PCBs.

It Works!

The program works.

Instructions

  1. Based on our group assignment and time frame I decided to use arduino as it is the easiest way to do it for me.
  2. Define what you want your OCB to do (I wanted my led to blink)
  3. Design the PCB
  4. Cut the PCB
  5. Solder the components
  6. Program the algorithm
  7. 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);
    }
    }
  8. Compile
  9. Test