Engineer

Jacob L.

Area of interest

Biological Engineering

School

SAR Highschool

Grade

Rising Junior

First Milestone

First Milestone

My First Milestone for the Smart Garden is making sure that all of my sensors work (spoiler alert: they didn’t for a while). I tested that each sensor reacted to stimuli by running a sample serial.print code that showed the raw output of each of the sensors.

20190711_134330
This is the AM2302 temperature and humidity sensor.
20190711_143009
This is the moisture sensor. The two prongs will be wedged into the soil to detect the moisture levels of the soil.
20190711_154411
This is the photoresistor. It detects levels of light.
tempsensorcode
This is the testing code for the AM2302. It is a bit more complicated than the other testing codes I used for the other sensors, because this one included formatting that resulted in the actual temperature being printed instead of just a set of numbers between 0 and 1023.
moisture-sensor-code
This is the testing code for the moisture sensor. It simply takes the input of the moisture sensor and prints it on the serial monitor. There is also an if statement that blinks an LED whenever the sensor is above a certain threshold in order to remind the user that the plant is dry and needs water.
light-sensor-code
This is the testing code for the photoresistor. It is the most simple code by far, at only 8 lines of text. The only thing it does is print the readings from the photoresistor.
tempsensorserialprint
This is the serial monitor. It prints the data coming from the sensor. The data reacts to the changes in temperature and humidity, as shown by the slight differences between each reading.
moisture-sensor-serial
This is the serial monitor for the moisture sensor. The lower the value, the more moisture is being sensed
moisture-sensor-serial
This is the serial monitor for the moisture sensor. The lower the value, the more moisture is being sensed

Starter Project

My Starter Project is the Useless Machine, a machine that, when turned on, turns itself off. I enjoyed this project because I learned how to solder, and it was relatively easy.

The Useless Machine!

How it works

The Useless Machine is powered by three AA batteries. The switch, when turned on, switches the polarity of a motor connected to an arm, causing it to rotate towards the switch. Once it flips the switch, the polarity of the motor is reversed, causing the arm to retract. eventually, the arm hits a snap switch, which stops the motor. There is also an LED that lights up when the motor is active. Some problems I encountered were the LED not working properly due to the fact that I fried one of the anodes. Another problem that I ran into was assembling the box. The rods that I was supposed to screw the plates onto were not actually drilled for screws, so I had to engrave the grooves for the screws myself.

These are the instructions

Start typing and press Enter to search