For this project we used an Arduino Breadboard to program a robot that we could use. For ours we decided to make a wack-a-mole game. We connected our Arduino with wires and buttons to make the game.
Our robot was a wack-a-mole game where a LED would light up and you had to click the corresponding button within a certain amount of time. You had three lives and it made sound effects when you lost or hit the correct button.
Code 👇 Circuit Diagram 👇
Content
Circuit - a complete loop of conductive material that is attached the positive and negative ends of a battery.
Series Circuit - a circuit with a single path.
Parallel Circuit - a circuit with branches that have different paths.
Current - flow of charge/electricity through circuit. Units - Amps (A)
Voltage - potential energy difference from one side of component to the other (drop/height). Units - Volts (v)
resistance - the amount of current that is slowed through obstacles on the path. Units - Ohms (Ω)
Power - rate of transferring electrical energy through a circuit (p = iv). Units - watts (W)
Ohms Law - voltage is equal to the current times the resistance.
Coulomb's Law - the force of attraction/repulsion between 2 static charges is proportional to their charges and inversely proportional to the distance between them squared (F = kq1q2/r^2)
When wire is connected to the positive and negative ends of a batter, and then wrapped around an iron core, it will create a magnetic field around it.
Simple rules of coding include having a Void Setup, where everything starts. And having a Void Loop, that runs over and over again.
Reflection
This project was very interesting to me because I had never coded before. I thought I was good at adapting to the new information, and communicating with my partner. Something I will work on for next time would be maybe coming up with more ideas before deciding because we went with the first thing we thought of.