Posts

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: ...

Week 5: Solo Practice

Image
 This week was a bit tougher than I thought. First, I will start by saying that I am gone for most of the week so I was trying to get things done early. I believe this is part of my issue as my "creative juices" seem at their peak when I have less pressure. I decided to continue with the lessons included in my manual. I went with the active buzzer and the motor with fan because that is one I wanted to get going as soon as I opened the kit. The buzzer was a cinch. The motor... well, not so much. Which kinda hurt the pride seeing as though I've been pretty successful lately.  Part of this week's goal was to extend off the basic activity and begin to progress. To change code or base an activity off one we've already done and see what we come up with. That was where this week stopped for me. Below is how far I got, which, unfortunately, wasn't much. 1. Active buzzer - the most basic part of this would be to get the buzzer sounded. This I got working as you can see...

Week 4: Electronic Dice & LCD Screen

Image
 This week I am on Fall Break where I teach. Since I felt a bit overwhelmed last week I thought with having some extra time, I'd really try and dive in and understand my challenge this week. I decided to try two different things - electronic dice and an LCD screen. FOR ONCE THEY BOTH WORKED 100%!! 1. Electronic Dice - to get 6 LEDs to like up in a random sequence each time a button is pushed between 1 and 6.  Here is the sketch: Here are my boards: Here is the code:  void setup () { // set all LED pins to OUTPUT for ( int i = first ; i <= sixth ; i ++ ) { pinMode ( i , OUTPUT ); } // set buttin pin to INPUT pinMode ( button , INPUT ); // initialize random seed by noise from analog pin 0 (should be unconnected) randomSeed ( analogRead ( 0 )); // if we're debugging, connect to serial #ifdef DEBUG Serial . begin ( 9600 ); #endif } void buildUpTension () { // light LEDs from left to right and back to build up te...