Posts

Showing posts from November, 2023

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