Posts

Week 8- End of the road

  My first successful build which was the second post was the one I was most proud of in the class. In the first post, I was so lost and frustrated on what to do, so I completed the assignment incorrectly.   When I started looking at the videos after I completed the assignment, I realized the purpose and components of the board.   I felt accomplished when my first board for the second assignment started working.   As I started working with more boards, I became more comfortable. My blogs also improved because I was able to explain more aspects of my creations.   I learned that small aspects of a code can change the functions of a board.   I learned this by playing with the codes and watching the videos of my peers. I learned about myself that I work better in a class with more guidance.   When I have free will, I do not know where and how to start. That was a difficult aspect of the last post.   I was clueless where to start.   The chal...

Week 7 -Buzzer Motor

Image
 The purpose of the project is to create a board to operate a buzzer motor.  I was able to use a resistor and a three prong transistor, but I was unable to incorporate the use of a light sensor.  I tried make the buzzer go louder, but it only changed the tune as I adjusted the code.  The use of a buzzer is apparent in sporting events.  

Week 6 Light sensor and a motor

Image
 The purpose of the project is to use the light sensor to control the fan motor.  As the sensor receives light, it controls the spin of the fan.  I first worked with the sensor with an LED, but it did not work. Then, I used the fan with the sensor.  I was successful with the sensor and the motor, but not the LED.  I left the LED on the board as I worked with the motor.  The use of ChatGPT was helpful in helping me write a code and wiring the board.   In real life, I see this being used with solar items.  As the sensor detects light or the lack of light, the item can be programed to perform certain functions.   Without use of light sensor   With the use of the light sensor

Playing with a Piezo buzzer!

Image
The purpose of the project is to use a piezo buzzer and have it make different sounds.  I feel like I failed with the potentiometer and the button for the dice.  I figured that I would try something more simple with building and focus on the code.  I was able to create three codes to have the buzzer make three different sounds.  The most difficult part of the project was altering the code.  I had to determine what to add and where to change the original code to make the buzzer play a different sounds.  This reminds me of the different sounds in a sports or board game that requires different buzzer sounds.    Original buzzer sound Code: Siren Sound Change of the code: void loop() {   // Rising tone   for (int f = 400; f <= 1200; f += 10) {     tone(buzzerPin, f, 20);     delay(20);   }   // Falling tone   for (int f = 1200; f >= 400; f -= 10) {     tone(buzzerPin, f, 20);     de...
Image
 The purpose of the project is to mimic the random role of a dice.  The button activates the LED lights and it randomly stops to mimic the roll of the dice.   I used two codes to mimic a dice. The first code had the LED lights constantly flashing.   This code worked correctly because the LED lights would flash and stop like a dice.  The following are pictures of the boards.   This project was more difficult because I had issues wiring the boards to make it connect and run properly. It took me several tries to get the connections right. I could not figure out how to place the middle LED, so I left it off.  Another difficulty was the LED lights that did not turn off. For some reason, some of the LED lights remained on, but would flash.   As for the code, it took several tries to get the correct code.  One code had the lights constantly flashing. Then, after some modifications, the code allowed me to use the dice as a random ...

Week 3: Circuit boards 3 and 4

Image
 Circuit Board 3: RGB LED The purpose of the circuit board is to use jumpers and resistors to power a LED that changes colors.  The LED has 4 different prongs, but changes to red, green, and blue.   Code:  Circuit Board 4: Multiple LEDs The purpose of the board is to use multiple resistors and LED lights.  This board also lights the LED up lights in order back and forth.   Challenge: Combining the circuits This circuit combined the RGB LED and Driving multiple LEDs.  The RGB LED had to be moved over a row due to the use of board #4 holes.  Since the same holes could not be used, the RGB LED only blinked blue.   Final Reflection: Now, with the use of the diagrams and videos, it is becoming easier to build the boards.  I am starting to understand the use of the resistors and jumper cables.  The cables and jumpers have to align for the lights to illuminate.  It is very tedious to build the circuit as more items are ...

Week 2 Maker spacer challenge

Image
 1. Explanation of the project:  The purpose of this week’s challenge is to use the potentiometer as a means to control the blinking of the LED light.   As the potentiometer is turned, the blinking speeds up or slows down.   2. The following is the code that was used The following is the code that was used.  /* SparkFun Inventor's Kit Example sketch 02   POTENTIOMETER void setup() // this function runs once when the sketch starts up {   // We'll be using pin 13 to light a LED, so we must configure it   // as an output.     // Because we already created a variable called ledPin, and   // set it equal to 13, we can use "ledPin" in place of "13".   // This makes the sketch easier to follow.     pinMode(ledPin, OUTPUT); void loop() // this function runs repeatedly after setup() finishes {   // First we'll declare another integer variable   // to store the value of the pote...