Posts

Showing posts from December, 2023

Personal Project 4: Clap Lights

Image
       Light Clap I needed to address an issue that could be solved with an Arduino. I went ahead with the idea of when you're in bed with the lights still on. So, with the use of sound, we can change the state of the Leds. I would have it programmed to work with a rgb strip but  Initial Setups This is the initial build I used for my testing to make sure that I can get my lights to light up and test to see if i can get values from the piezo.  This is the code I used to make sure the circuit worked, and all the lights lit up. I just used hard coded values for testing and would later change it to have only certain ones light up. This is my final setup and parts list. I successfully got the value to light the Leds up and the value from the piezo were in tolerance. Final Coding Arduino: I got the code together to make it have different states of lit up lights to replicate an RGB strip. The code was pretty simple. The code to make it so that the clap will change the states is the same

Personal Project 3: Etch A Sketch

Image
  Etch-A-Sketch I needed to make something with the arduino and something art related. So with two knobs and a screen to draw on I thought I could recreate the etch a sketch. The etch a sketch would fulfill the requirements and a fun little thing to make. Initial Setups This is the initial build I used for my testing to make sure that I can get different values for each potentiometer and a value from the tilt sensor. .  This was the code I used to get the initial reads and would make sure that I would be sending the proper data. I did come across an issue here with the mapping and have it solved later. My unity was a blank 2d core and I created a small square prefab.  This is my final setup and parts list. The values i got from the potentiometer were correct and the sensor would detect when tilted. Final Coding Arduino: This was a total of 40 lines of code on the Arduino side. The delay is a little bit lower so that more will get drawn to the screen. I also had to do the map function