Another update on the temperature sensor! First on the build, we have competed the mount for the motor to use so that it is in line with the spool. It measured right the first time so we had no complications there. Now there’s a huge update with the code! To start off we got the LED’s to work.To do this as seen below i used if conditions. What this basically does is check if the temperature variable I had created is between a certain threshold and if it is then I would either light the green or red LED. If there is more time, I will make another threshold for a yellow LED for even more accuracy through the visual detector. There were some problems doing this but it was mainly because of a few simple mistakes in the wiring, such as forgetting to wire the led back to ground. Now we are trying to currently program the motor but the huge problem is to make the motor rotate on command. To do this. Need to use the Serial Monitor, however the code is using the Serial Monitor to outprint the temperatures constantly adn therefore the serial monitor is never available to take commands. There will be a new update when I find a solution to this. Until then!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2018
Categories |
Photo used under Creative Commons from daryl_mitchell