Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
steve-wang-arduino [2022/12/28 03:21] steve.wangsteve-wang-arduino [2022/12/28 22:50] (current) – [Testing Arduino with speaker] yu.lee
Line 16: Line 16:
  
 {{:steve-potentiometer2.jpg?400|}} {{:steve-potentiometer2.jpg?400|}}
 +
 ===== Resistor 3 (Yellow, Purple, Brown, Gold)===== ===== Resistor 3 (Yellow, Purple, Brown, Gold)=====
 Resistor Value: 470 Ohms Resistor Value: 470 Ohms
 The brightness is almost as bright as the on with resistor 2 which is weird becuase resistor 2 has a greater resistor value and the bulb connected to resistor 2 should be less bright compared to this bulb. Again, it may be becuase I did not connect the wires properly on this circuit which resulted on the electricity not flowing properly. The brightness is almost as bright as the on with resistor 2 which is weird becuase resistor 2 has a greater resistor value and the bulb connected to resistor 2 should be less bright compared to this bulb. Again, it may be becuase I did not connect the wires properly on this circuit which resulted on the electricity not flowing properly.
-.+
 {{:steve-potentiometer3.jpg?400|}} {{:steve-potentiometer3.jpg?400|}}
  
Line 36: Line 37:
  
 === 2 Light Bulb === === 2 Light Bulb ===
-{{ :students:steve-2bulb-circuit.png|}}+{{ :steve-2bulb-circuit.png|}}
 === 3 Light Bulb === === 3 Light Bulb ===
-{{ :students:steve-3bulb-circuit.png |}}+{{ :steve-3bulb-circuit.png |}}
 === 4 Light Bulb === === 4 Light Bulb ===
 It was weird when the I measured the volts of the resistance it was 0. I think it is becuase all the light bulbs have used up all the electrcity and by the time the elctricity gets to the resistor, there was no more electricity left to resist. It was weird when the I measured the volts of the resistance it was 0. I think it is becuase all the light bulbs have used up all the electrcity and by the time the elctricity gets to the resistor, there was no more electricity left to resist.
-{{ :students:steve-4bulb-circuit.png|}}+{{ :steve-4bulb-circuit.png|}}
  
-=== COnclusions ===+=== Conclusions ===
 The amount of current recroded at the resistores decreases as the amount of LEDs increases. The amount of current recroded at the resistores decreases as the amount of LEDs increases.
 The totoal current stays about the same. The totoal current stays about the same.
Line 83: Line 84:
  
 ==== Testing with multiple LEDS ==== ==== Testing with multiple LEDS ====
-{{ :students:steve-bread3.jpg?400 |}}+{{ :steve-bread3.jpg?400 |}}
 ==== Testing with a switch and potentiometer ==== ==== Testing with a switch and potentiometer ====
 I figured out how the switch worked. I used the multimeter to figure it out. I figured out how the switch worked. I used the multimeter to figure it out.
-{{ :students:steve-bread1.jpg?400 |}}+{{ :steve-bread1.jpg?400 |}}
  
 ==== Alternationg circuit with switch ====== ==== Alternationg circuit with switch ======
-{{ :students:steve-newgreen.png?400 |}} +{{ :steve-newgreen.png?400 |}} 
-{{ :students:steve-newyellow.png?400 |}}+{{ :steve-newyellow.png?400 |}}
 On one side of the switch when it is up, the left side and the right side. When the switch is donw, the middle and the right side of the switch form a closed circuit. So, to get alternating lights, the power is always needed so it shuld be connected to the right hole. To ensure the breadboard does not mess with the swith, the I need to make sure the other side is not plugged in. On one side of the switch when it is up, the left side and the right side. When the switch is donw, the middle and the right side of the switch form a closed circuit. So, to get alternating lights, the power is always needed so it shuld be connected to the right hole. To ensure the breadboard does not mess with the swith, the I need to make sure the other side is not plugged in.
  
Line 130: Line 131:
  
  
-{{:students:steve-setup-capacitor.jpg?400|capacitor}}+{{:steve-setup-capacitor.jpg?400|capacitor}}
  
 ===== Transistor ===== ===== Transistor =====
 ===== Modifying the AC adapter to work with your breadboard ===== ===== Modifying the AC adapter to work with your breadboard =====
-{{:students:steve-img-6300.jpg?400|}} +{{:steve-img-6300.jpg?400|}} 
-{{:students:steve-img-6308.jpg?400|}}+{{:steve-img-6308.jpg?400|}}
  
 ===== Circuit with transistor and switch ====== ===== Circuit with transistor and switch ======
Line 141: Line 142:
  
  
-{{:students:steve-img-6301.jpg?400|}} +{{:steve-img-6301.jpg?400|}} 
-{{:students:steve-img-6302.jpg?400|}}+{{:steve-img-6302.jpg?400|}}
  
  
Line 153: Line 154:
 This works because my hand acts like the switch. When my hand is touching the wires, I conduct the electricity. When my hand is not there the circuit is open and the LED does not light up This works because my hand acts like the switch. When my hand is touching the wires, I conduct the electricity. When my hand is not there the circuit is open and the LED does not light up
  
-{{:students:steve-img-6305.jpg?400|}} +{{:steve-img-6305.jpg?400|}} 
-{{:students:steve-img-6306.jpg?400|}}+{{:steve-img-6306.jpg?400|}}
  
  
-===== With That, We Build A Few Simple Systems ===== 
 <html> <html>
 <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/cpjFpLSKKWE?start=2" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/cpjFpLSKKWE?start=2" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 </html> </html>
 +
 +===== With That, We Build A Few Simple Systems =====
 +====== Steve building an oscillator ======
 +
 +Components:
 +  - Capacitor *2
 +  - Transistor
 +  - Wires *5
 +  - Staple bullets wires *2
 +  - 230 ohm resistor *2
 +  - 9800 9.8k ohm resistor *2
 +  - Potentiometer left high right low.
 +===== Basic oscillator =====
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/e9aW4LRLAa8?start=3" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +{{:steve-img-6326.jpg?400|}}
 +Both LEDs almost have a closed circuit they are blocked by a transistor. We want to activate the transistor by discharging a capacitor. So, we have to charge the capacitor first. Both capacitors do not charge at the same speed because, even though the resistors should have the same amount of resistance, they are not built perfectly so they do not. One of the capacitors will charge faster which will allow it to discharge earlier than the other. That would cause one of the LEDs to light up earlier than the other. When the other capacitor is ready to discharge, the first capacitor has already finished discharging which causes the first LED to turn off. That is how the circuit to have alternating LEDs. 
 +
 +===== With Potentiometer ======
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/483ean2gR1M?start=4" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +{{:steve-img-6330.jpg?400|}}
 +{{:steve-img-6331.jpg?400|}}
 +
 +The resistor controls the blinking speed because, the resistor controls speed the capacitor charges at. If the charging of capacitor slows down, the LED will need more time before it can turn on. I can add resistance by adding a resistor with greater resistance and doing that would slow down the current. To change the amount of resistance without swapping out parts, I can use a potentiometer. 
 +
 +===== Using A potentiometer =====
 +{{ :steve-img-6342.jpg?400 |}}
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/Z3lVN8UeqJk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +===== Speaker with Potentiometer =====
 +{{ :steve-did-well.jpg?400 |}}
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/TVFpT4l8ahY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +===== Speaker with Switch =====
 +{{ :steve-good-job.jpg?400 |}} 
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/0j5v5m6XWic" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/B_DUnGZ05fM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +
 +===== Circuit Illustration and Explanations =====
 +{{ :steve-circuit-illustration.png? |}}
 +{{ :steve-circuit-illustration-without-lines.png? |}}
 +
 +Resistor: Resist flow of current. Resistance is measured in ohms (Omega).
 +
 +Transistor: An electrical component that can switch circuits on and off and amplify signals
 +
 +Capacitor: Stores energy like a battery but discharges much faster
 +
 +Speaker: When it has electricity, it will move the cone back and forth which creates air pressure that we perceive as sound.
 +
 +Potentiometer: An electrical component that can change the amount of resistance.
 +
 +Momentary Switch: A switch that creates a circuit only when presses.
 +
 +===== Connecting Our Circuits With Computers =====
 +===== Testing Arduino  =====
 +{{ :steve-img-6367.jpg?400 |}}
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/eIVqjYrSi18" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +===== Testing Arduino With Lights  =====
 +{{ :steve-img-6378.jpg?400 |}}
 +{{ :steve-img-6379.jpg?400 |}}
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/enAQCY74fdY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +===== Testing Arduino with Speaker =====
 +
 +{{ :steve-43119.jpg?400 |}}
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/ph9W7necfck" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/JEsHhoFr6tg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +
 +===== Testing With Force Sensitive Resistor =====
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/VpVyYACuTyk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>
 +
 +===== Projects =====
 +==== Toilet Flusher =====
 +
 +This is a button I made with the arduino for the Old Man Simulation. It works like this: When I hold donw the button , it starts a time and plays a little sound and when the simulation is done, the person clicks on the button which plays the flush sound effect by [[https://freesound.org/people/lorenzgillner/sounds/274448/|lorenzgillner]] on [[https://freesound.org/|freesound website]].
 +Here is the video:
 +
 +<html><iframe width="560" height="315" src="https://www.youtube.com/embed/aGlygrHH6I0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></html>
 +
 +===== Resistor Calculator =====
 +This resistor calculator can help you find a resistor based on the colors, it can also search for a resistor in the resistors database you will be able to log into. You can also give it a number. With it, it will give you what the numbers equal to and find a resistor that in your database that matches your number. If there are not exact matches, it will find one that is closest. It all can be done with a quick way that you can enter numbers and a user interface that tells you everything that you need to know:
 +
 + 
  • steve-wang-arduino.1672226475.txt.gz
  • Last modified: 2022/12/28 03:21
  • by steve.wang