In this class we created a system in which an infrared sensor detects Infared light, and if the amount measured by the sensor exceeds a certain value, turn on a fan. As seen in the video, we used a phone flashlight to give off infrared waves and trigger the fan to turn on. We learned how to code analog inputs and use the readings to assign values or states to other things connected to the Arduino, in this case a fan. This is going to eventually be used in our final project to detect and put out a flame. We learned how to route the power source going to the fan through a Relay, to control the amunt of voltage, and maintain a functional circut.
In our final project we have to design a code that allows the robot to see walls and adapt to them based on the robot's position. We did this by using an ultrasonic sensor to emit and time the amount of time it takes for those soundwaves to return. Using that time calculated by the sensor, we were able to convert the measurement to distance. After being able to see the distance in which the wall was away from the sensor, we were able to make a servo react. In the demonstration video, the servo is set to rotate 180 degrees whenever an object gets within three inches of the supersonic sensor.