Urgent Assistance Needed: Issue with Motor Control in Program
Posted: Mon Jan 22, 2024 11:04 am
I am currently working on a project involving a DC motor, and I am facing a significant issue with the program. I have outlined the details of my program below:
When switch one is pressed, the red LED should light up, indicating a wait time of 10 seconds.
After 10 seconds, the red light should turn off, and the green light should turn on, indicating that the lift doors can open.
When switch number 2 is pressed, the green light should turn off, the LCD should display that level 1 has been selected, and immediately the motor should start, lasting for 10 seconds. Then, the motor should stop, the LCD should be cleared, and there should be a delay of 2 seconds. Finally, the green light should be displayed, indicating that the doors are safe to open.
I am encountering difficulties with step number 3. Although I am able to turn off the motor after 10 seconds, it does not stop, and the LED displays that the doors can be opened, even though the motor is still running. This is a critical issue, as it contradicts the intended functionality of the program.
I have extensively searched through various blogs and resources, but none have provided a solution to this specific problem. As this project is crucial and will be part of an upcoming exam, I am reaching out to seek your urgent assistance in resolving this issue.
When switch one is pressed, the red LED should light up, indicating a wait time of 10 seconds.
After 10 seconds, the red light should turn off, and the green light should turn on, indicating that the lift doors can open.
When switch number 2 is pressed, the green light should turn off, the LCD should display that level 1 has been selected, and immediately the motor should start, lasting for 10 seconds. Then, the motor should stop, the LCD should be cleared, and there should be a delay of 2 seconds. Finally, the green light should be displayed, indicating that the doors are safe to open.
I am encountering difficulties with step number 3. Although I am able to turn off the motor after 10 seconds, it does not stop, and the LED displays that the doors can be opened, even though the motor is still running. This is a critical issue, as it contradicts the intended functionality of the program.
I have extensively searched through various blogs and resources, but none have provided a solution to this specific problem. As this project is crucial and will be part of an upcoming exam, I am reaching out to seek your urgent assistance in resolving this issue.