For this week I wanted to use the DC motor to program a microcontroller and design a
I started with learning how a DC motor is connected to a circuit. Luckily, Micky provided us with a good tutorial on how to hook it up!
The DC motor tutorial: https://learn.adafruit.com/adafruit-arduino-lesson-13-dc-motors
I simply recreated this circuit and copied the code from this tutorial into Arduino, exported it to the NodeMCU and voila: it worked!
The next step would be to connect the DC motor to the velostat sensor I created in week 6. I ran into an issue, however. I noticed that, if I removed the resistor and the wire that connects the D1 pin to the resistor, the DC motor would still run when connected. I thought this was strange, considering how I followed the tutorial. NOT FINISHED