Posts

Showing posts from November, 2022

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

Week 3: RGB and Multi LEDs

Image
Just another week of me pretending like I have this discovery thing down and I definitely do not. I will say that this blog is a good record of progress though. And how one has to learn through a lot of errors. What was it, like nearly 20 inventors and six plus decades before Edison finally got a successful light bulb down? So week three and this kind of progress isn't too bad.  In this week's challenges we wer to complete two tasks: get an RGB LED light working and changing and to get multiple LEDs lit.  1. RGB LED - get the light flashing, change the speed, change the colors, change brightness, etc.  Below are my boards: My sketch: Video of my board "working": Code I used (note: THIS is the area I have come to realize I am messing up in. So the likelihood of this being wrong is nearly guaranteed) : // Define Pins #define   BLUE   11 #define   GREEN   10 #define   RED   9   void   setup () { pinMode ( RED, OUTPUT ) ; ...