4. Embedded Programming

For this week, I worked with both Arduino and ESP32 microcontrollers. This activity helped me understand how microcontrollers interact with hardware components, especially how digital signals can be used to control motor direction.

Arduino Programming

I used the Arduino to control a DC motor, programming it to rotate clockwise and counterclockwise.By adjusting the digital output signals sent to the motor driver, I was able to control the motor’s direction and movement.

Fusion 360 Design

ESP32 Programming

Useful links

Code Example

  // the setup function runs once when you press reset or power the board
  void setup() {
    // initialize digital pin LED_BUILTIN as an output.
    pinMode(LED_BUILTIN, OUTPUT);
  }

  // the loop function runs over and over again forever
  void loop() {
    digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(1000);                       // wait for a second
    digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
    delay(1000);                       // wait for a second
  }
        

Gallery

Description of image

Video

From Vimeo

Sound Waves from George Gally (Radarboy) on Vimeo.


From Youtube

3D Models

← Week 1 Back to Assignments