Week Four
Solve the problem last week. In this week, we finished our design and made the curtain to have different function. Last week, our remote could not control the curtain when the motors were working. We thought that may have mistakes in the code. We rewrote the code and changed the logic sentence. We rewrote the “loop” part add some “if” sentence, and defined variable (cm) we also simulated in the software and the result is the system could work normally. But when we uploaded the code again, the result is not fully correct. We made the curtain be opened, closed and stopped by remote. This result shows that we already finished the function of the curtain. We want to use the photoresistor to control the curtain working for the next step. So we tested the photoresistor first. We used the code to check the intensity of light. Under normal conditions, the intensity of light is about 445-460. Then, we set the open command as the intensity of light great than 440. When the photo...

Comments
Post a Comment