top of page
Project Display:
If you matched..
Users start by holding hands on the sensor.
If not..
Project Brief:
For this week's assignment, we're creating a Love Compatibility Machine by Arduino. I decide to use DHT 11 temperature sensor to create my Love Compatibility Machine. Because I read something that when you are with someone you loved, your heartbeat goes faster, and your body temperature goes higher. That's why I decided to use the temperature sensor to create the machine.
I decide to use 4 lights to indicate the level of love between them. Setting my room temperature as the baseline and letting the user hold hands on the sensor. Whenever the temperature goes up by 1, the next LED will light up and the next one will start the breathing effect, meaning the temperature keeps going up.
If only one light is on, meaning that you guys are not fit. You probably want to look for someone else.
If 2 lights are on, meaning you guys fit OK.
If 3 lights are on, meaning good match!
If all 4 lights are on, you should get married immediately.
I first download the DHT sensor libraries from Adafruit, follow the examples to print out temperature and humidity and make sure my DHT 11 works well.


Then I start writing my code. I created 4 individual circuits for each light. I first set all lights output to low. Using the If statement to control each light in different temperature situations. Also using for loop to control the "breath" effect. Because I want at least 1 light to be up. Based on my room temperature, I set the base temperature for my function as 22.

