Im helping on a project using reed switches to alert a digger operator if they are slewing there machine into a no slew zone, using a UNO, 2 reed switches and some LEDS.
I have been trying to get up to speed with learning this, but my efforts in Tinkercad to build this system has not been successful.
There will be 3 LEDs, Green, Amber and Red to represent different zones of the slew.
So on startup I would like each LED to light up briefly in Sequence (Green, Amber, Red)
Then the system to check if either ReedSens1 or ReedSens2 are currently triggered, If not, light up Green LED solid, to show the system is ready.
If machine is slewed past ReedSens1, then Green LED needs to turn off and Amber LED needs to illuminate with a slow flash, 2milli ON, 2 milli OFF. If machines is slewed back and ReedSens1 is triggered again, Amber LED to turn off and Green to illuminate.
If machine is slewed and ReedSens2 is triggered, Amber LED turns off and Red LED starts flashing fast 1 milli ON, 1 milli OFF. This also needs to send a trigger to a relay, which will activate the deadmans switch.
Once ReedSens2 has been triggered, the machine will be inoperable as deadmans switch has been opened. We then will have a momentary switch, which will bypass the deadmans switch and restore operation, allowing operator to slew back into safe zone. This will trigger the ReedSens2, and need to turn the Red LED off and start Amber LED flashing again.
Any help would be great as im a little bit out of my depth.