Posts

Showing posts from December, 2022

Week 7: Personal Retrospective

 Thinking back over the course of this class I can't help but think about how it took me out of my comfort zone. While I like learning new things I usually keep it in the realm of things that stem from what I already know. Aside from robotics in high school (many MANY years ago) I have very little experience with using wires, making connections, and figuring out how to write a code to get something to do a command. I will say that I had a "hey! I know what that is!" moment while watching The Great Christmas Light Fight last night though. A guy was talking about servo motor and I actually understood it's purpose. So that is a good thing I suppose.  In all of this I am most proud that I simply got several of the builds working in the most basic fashion. For me that was the initial challenge so I'm pretty proud of myself in getting that part figured out. But that also brings me to my biggest challenge. My biggest challenge was code. I just could NOT wrap my brain aro...

Week 6: Build using sensors and motors

Image
 This week's challenge was to create a build of our own but to include sensors and motors. While I am still too unskilled to go off on my own, I did look up a few builds to try using an ultrasonic sensor and a servo motor. This build was found on the Arduino Project Hub site, so not an original creation.  The purpose of this was to get the servo motor blade to move based on how close my hand was to the sensor. Unfortunately, as you will see in the video, I could not get it to move. I did try to scale back and just get the motor moving and was able to do that. Both are captured below.  Servo Motor & Ultrasonic Sensor:  Diagram My board Video Code #include   <Servo.h> Servo servo1; int  trigPin = 9 ; int  echoPin = 8 ; long  distance; long  duration;   void   setup () { servo1 . attach ( 7 );   pinMode (trigPin, OUTPUT);   pinMode (echoPin, INPUT); // put your setup code here, to run once: ...