Week 5 Adventure Creations .. temperatures and leds .. goooooo!!

For my solo project I decided to use the thermometer and the led to produce a thermostat light coded. 

Here are the codes that I used and THE "IF" argument helped a lot. 




1. problem that I found. When you run the thermometer on the same ground you will mess with the reading. 


Here is the video explaining that what I saw. 



Pulling the ground fixed the problem. 




USING THE IF STATEMENT solved the issue: 

I found out that you can use an if statement and and else statement once on a float but then you must repeat it. 

 



Conclusion: 
the if statement is pretty useful if you know its limitations. It is also very repetitive and you can use it to create statements that can cancel and then start another statement. In my project I chose to turn a light on and off by a reading from the thermometer. That was neat. I can see how you can have simple green, yellow and blue light indicators on thermometers and other types of readings.  Even on voltage when overheating a component due to the high voltage reading from the thermometer and be able to have a shut down feature to stop it. 









Comments

Popular posts from this blog

Teach the younglings to design their games! !!!!