Week 3 - Embedded Programming

This is my first time ever doing any electronics. First off: Hello world.

Next on, a little farther: The core idea here was to build on my little flying angel/ornithopter from week 1. If I could motorize the wings flapping, that'd be very cool. It would be a babystep to an ornithopter drone as a final project.

Flapping Mechanism

So what I did is sketch out a little flapping mechanism:

#include <ESP32Servo.h>
int servoPin1 = 14;
Servo servo1;
int servoPin2 = 19;
Servo servo2;

void setup() {
servo1.attach(servoPin1);
servo2.attach(servoPin2);
}

void loop() {
servo1.write(90); servo2.write(90);
delay(500);
servo1.write(0); servo2.write(0);
delay(500);
}

After a little troubleshooting, this worked out pretty well!

Flapper Mechanism

Group Assignment

The group assignment was interesting. We mostly listened to explanations of different microprocessors. Halfway through, our instructor mentioned how some microprocessors can be used in simply measuring the speed of light based on the clock speed and an in/out signal. I got a little obsessed with that and spent the rest of the hour trying to estimate the rough minimum length of cable needed.