Posts

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

Personal Project 2: Tic Tac Toe

Image
  Tic Tac Toe I needed to make an alternative controller, so I made one for tic tac toe that is run in unity. I went with tic ta toe because I have the pieces to make it and the knowledge to do it. I went with unity due to past experience in the program. Initial Setups This is the initial build i used to test my buttons. This resistor ladder is just like the one used in project 7.  This was the code I used to get the initial reads and make sure that I am still getting the same results as the project 7.  This is what my unity sketch looks like. I made no real changes to it, just got rid of the circle in the top spot. I was using it to determine where the pieces were going to go. This is my final setup and parts list. The double resistor ladder on each side of the board was nice and can be used with further coding for other things. Final Coding Arduino: There is a lot of coding, but it is mostly just simple stuff of just checking if the value is what we want and the printing the data t

Fun with unity

Image
  Fun With Unity This is a little fun Arduino communication with unity to have a cube move in the game world and have the led shut off on the Arduino board. Here is the circuit and its components. Coding  The coding is simple, but we will be using two applications. The Arduino ide and Microsoft studio 2022 to write the unity script. We will be communicating between the two to show the serial connection that can be made. Arduino IDE: Unity Script Finished Product This project was a simple build and some easy coding. The serial connection to have the two communicate was pretty interesting and has many various uses for the advancement of coding. The code was also provided by the professor. The connection between the Arduino and unity opens up many pathways when going forwards.

Personal Project 1: Plant Problem

Image
  Plant Problem We as humans tend to forget about our household plants and they go without water. My goal is to use the Arduino to get the moisture level of the surrounding environment to tell us if we need to water the plant. I wanted to use a piezo to play different frequencies for how much water the plant needs. Initial Setups This is the initial setup that I built to do my trial run to get the values that the sensor will read. This was the code I used to get the initial reads and the max value read 1023 and the min value was around 260.  In this video it was a test to figure the min and max moisture levels. I use a mug of water to achieve this and went ahead to use the results to figure out my ranges for the frequencies. During the testing I realized that the test build is going to be the final build as I do not need to change any of the circuit. Final Coding After getting the initial tests I went and created the frequencies and the appropriate variables to allow me to be able to

Project 14: Tweak The Logo

Image
  Homework 14: Tweak The Logo This project we are going to be editing the logo's background using a potentiometer. This will require a new application Processing. We need the processing to load the image on our system and have it communicated with the Arduino. The circuit is even simpler this time and I went ahead and built it. Here are the components and the circuit. Coding  The coding is simple but we will be using two applications. The Arduino ide and processing. We will be communicating between the two to show the serial connection that can be made. Arduino IDE: Processing: Finished Product This project was a simple build and some easy coding. The serial connection to have the two communicate was pretty interesting and has many various uses for the advancement of coding.