Week 8: Embedded Programming

this weeks task, we had to use our programmer to program a circuit with an LED. As this class was in the same time frame as design dialogue preparation, I decided to simple circuit that applies what I learnt during the local class

From Ideas to code

In the Local class, we learnt that flow charts help ideate ideas into a working circuit. Here we learnt in Arduino, statments manage how the program reacts

Some notes on Microcontrollers:

  • Mircocontroller -> mostly single-purpose, programmable
  • Microprocessors -> able to run OS, more multi-pupose, programmable
  • Input Outpu programmins: The microcontroller will interface with the outter world with its PINs. Pins can serve to receive information, i.e. inputs, or actuate, i.e. outputs
  • We can use control flow statements to manage how our program reacts to different inputs and actuates on the outputs.
  • Blink an LED project

    For my project, I used an Arduino UNO ( As I do not own an ESP32) to blink an LED. On a breadboard I compiled a circuit where the LED should turn on for a second and off for a second in a loop.

    Parts Needed:

  • (1) Arduino Uno
  • (1) USB A-to-B Cable
  • (1) Breadboard – Half Size
  • (1) LED 5mm
  • (1) 220 Ω Resistor
  • (2) Jumper Wires
  • Project Code:

    this is the diagram of the circuit I wanted to make

    This is a screenshot of the arduino circuit code for the LED

    Image of components needed for the circuit

    Explanation of the code:

  • void setup() {
  • pinMode(13, OUTPUT); } -This is the pin connected to the Arduino
  • void loop()
  • {
  • digitalWrite(13, HIGH); - Turn on the LED
  • delay(1000); -Wait for one second
  • digitalWrite(13, LOW); -Turn off the LED
  • delay(1000); -Wait for one second }
  • Download the Arduino file here