Posts

Showing posts from September, 2023

Project 7: Keyboard Instrument

Image
                      Homework 7: Keyboard Instrument For this project we are going to be making a small keyboard instrument. This project will also utilize the piezo and will have four notes that correspond to four push buttons. I went ahead and put the circuit together and here is also the schematic view and parts list. Coding  The coding was simple. We got to use arrays here and are needed so make sure you remember array data types. We will have 4 values stored in the array to get played when each button gets pressed. Each will play a different sound. The first button closest to the piezo will be low pitch and will grow higher as you move to the last button.  Finished Product When everything is together, we get a nice little piano. I will say without a multimeter to check which resistors are which I had to use Tinker Cad and run trial and error to figure out my resistors. I hate how the 10kilohms and the 220ohms are basically the same color, just different orientation on the resisto

Project 6: Light Theremin

Image
  Homework 6: Light Theremin For this project we are going to utilize the piezo that comes with the Arduino start kit to make different vibrations to produce different sounds depending on the light exposure. I went ahead and put the circuit together both physically and digitally with the help of Tinker CAD. Here is also the parts list excluding connecting wires. Coding  The coding was a lot simpler this time. We do use millis() which just tells us how long ago it was reset or powered on. We did have to set our high and low for the sensor to get how much light exposure it has to create a scale so that the sound will also scale. Finished Product  This was a fun little project to do with sound. Just make sure that you are ready to upload a different code or unplug the power source because when it has max light exposure it is annoying to listen to. WARNING do not wear headphones at high volume when watching the video.

Project 5: Mood

Image
  Homework 5: Mood Cue In this one we are going forward and will be using a servo motor to help show our Mood to surrounding area. This one was pretty simple to build, and I went Ahead and put the circuit together.  I also added a simple way to show the moods. This could be done more exquisitely if you feel like it but I did not. The system works by turning the white nob which will then move the servo motor to have our arrow point in a direction. Coding  The coding was pretty simple. This project did require an external library so we could access and use our servo. We set up the code to attach it to pin 9. Then we will read the value and map it to the servo value equivalent so the servo knows where to go. Finished Product I had a little issue where the servo was rubber banding then I realized that the image in the book does not properly line up with my kit so I had to move the cathode of the capacitor from the control wire to power wire so it would properly work. This one so far is my

Project 4

Image
  Homework 4 Color Changing Lamp This project we are going to create a color changing lamp that will use three different transistors to calculate a red, green and blue value separately. I went ahead and built the circuit. On the breadboard the circuit can be rearranged for spacing but when it comes to the wires on the Arduino uno. The analog in could be different but the wires need to be connected to a PWM indicated by the ~. Coding I followed along to the book in the starter kit and did not have to make any changes to the code since I did not change the wires connected to the PWM pins.   The code will take in the value read from the transistors to determine which amount of green blue and red will be applied to the color changing led. Final Product  After verifying the code and sending it to the arduino it works. The only problem I have is lighting issues. The green is very hard to see. The light also needs to have more light to work but with more light it is harder to see the color ch

Project 3: Love Meter

Image
  Love Meter For this project we focused on the temperature sensor and used it to test the body temperature and see the level of “love one person has. I went ahead and put all the wires and resistors into the breadboard. After that I created the aesthetic to it and the levels that will coincide with the temperature. Coding I followed along with the book and coded what was going to be need for this love meter. This coding would take the reading and do multiple calculations and turn it into voltage and have a certain number of Leds show up. Finished Product So, a difference between the book and my code is that the baseline temp is different. My fingers are just naturally cold so in the following video I show how my fingers shut the light off. The aesthetic was also off because I had to make sure the connections were right. Also, the way the temperature sensor sits matters. I thought I had it wrong till I turned it around and almost burnt my finger when testing it.

Project 2: Spaceship Interface

Image
  Spaceship Interface  So for this project we are creating a spaceship-like interface. So I started off by going through and assembled the wires and leds into their appropriate spots.  Then I added the cover to it to give it the feel of a control panel. Then I got to work on the coding. Coding So, I opened up the Arduino IDE and started to follow along with the book and then after a few minutes got the code finished. Verified the code and then sent it to the Arduino and then disaster hit. So, I had to take everything apart and recheck the connections. Turns out the Leds were in the wrong way. Finished Product After fixing the issues I sent the code again to make sure no corruption happened. I also switched the leds because I thought maybe the leds were bad. The blue led is also just brighter and easier to see.

Project 1: Know the Tools

Image
 Homework 1: Get to Know Your Tools For this homework we actually started by creating a simple circuit so we can apply power to a led. Here I have the Arduino connected to the breadboard and put in the resistor and the switch for a basic circuit.  After adding more connection wire and the led I have it plugged in to first make sure that the connection is not being made prematurely. As shown by the picture the simple circuit does work as the led is lit up as I am pushing the button. Series Another continuation of this project is to create a series circuit. After learning the pieces are a pain an the ass to remove without a little to grab them, I set up the series circuit.  With this the led only lights up when both switches are being pressed. Parallel The other type of circuit that needed to be constructed is a parallel circuit. We use the parallel so that when any switch is pressed the led will light up. So this is my basic setup for the parallel circuit. It is a little different than

Initial Setup

Image
 Homework 0: Getting started and  Setup to start this off we had to build our base Arduino. I started by getting the plastics pieces punched out of the mold and attached the based. I then would put the Arduino motherboard on and screwed in place and then attached the breadboard. I chose the breadboards position so that the cord from the pc to the Arduino is from the back so it can not impede me. After installing the IDE, I needed to test it, so I edited the Blink starter code to make the built-in orange light blink very fast. I got the light to blink very fast, so I knew that I had successfully installed the ide and that my Arduino works for now.