u/BlueCrayfish275

Code question

I am trying to code a cover to automatically open or close based on the temperature outside. So I have the code for that however, what function would I use if I want to add a piece of code that stops the motors once the cover is fully deployed or retracted? With the way my code is right now the DC motors just keep running and don’t stop

I am coding on TinkerCAD

An example is a garage door opening and closing how the motor stops once the garage door is fully open or closed.

Thank you!!!

reddit.com
u/BlueCrayfish275 — 2 days ago