Hi Community
This project uses :
- Uno
-2 Relays to Control 1 Motor with Forward, Reverse and Stop controls.
-LimitSwitch1 should stop the motor at the maximum forward position and wait for Reverse command.
-LimitSwitch2 should stop the motor at the maximum Reverse position and wait for Forward command.
i have both Limit switches wired with 10k resistors to Ground.
I cannot get this to work successfully.
Any input would be appreciated.
Forward, Reverse, Stop Functions using Relays and Limit Switches
This project uses :
- Uno
-2 Relays to Control 1 Motor with Forward, Reverse and Stop controls.
-LimitSwitch1 should stop the motor at the maximum forward position and wait for Reverse command.
-LimitSwitch2 should stop the motor at the maximum Reverse position and wait for Forward command.
i have both Limit switches wired with 10k resistors to Ground.
I cannot get this to work successfully.
Any input would be appreciated.
Code (Text):
- const byte RELAY1 = 2;
- const byte RELAY2 = 3;...