I’m very new to microcontrollers and programming. I probably know just enough to be dangerous. I’m trying to devise a reasonably simple system for turning on the dust collector in my wood shop and positioning the sliding carriage (output side) of a blast gate manifold over the appropriate inlet for the tool that was just turned on. (The first 10 seconds of this video will clarify how the manifold works.)
The way I think I want to do this is using an ad hoc network of ESP8266 modules - 6 “sender” modules which send "Power ON” and [Machine ID] to the “receiver” module (mounted near the dust collector and blast gate manifold) when current is detected for the dust producing machine’s motor. The receiver module then triggers a relay which turns on a motor which turns a threaded rod which moves the manifold’s sliding carriage to position it over the inlet for the tool that was just turned on. Six reed switches - one each attached to the blast gate inlets - are connected to GPIO pins on the receiver module. A magnet mounted to the sliding carriage closes each reed switch as it travels. When the ESP8266 sees that the reed switch for the desired GPIO pin has been closed, it 1) deactivates the relay that’s supplying power (or ground) to the positioner motor, 2) activates a relay that turns on the dust collector, and 3) Turns on a green indicator that can be seen throughout the shop, indicating that the dust collector is on and the proper blast gate is open.
If that’s not the right way to do things, please let me know what the right way is.
Things I need guidance on:
- Because I have zero experience with microcontrollers and GPIO pins, I’m not exactly sure what the microcontroller expects to see on a GPIO pin in order to know that some trigger just occurred and some action must be taken. Does it want to see voltage? Ground? A particular frequency?
- The “sender modules send “Power ON” ad the machine ID to the receiver module when current is sensed. What’s the simplest/cheapest way to detect the current from a motor turning on and use that to trigger the GPIO pin?
- Again, because I have no experience programming a microcontroller, how do I tell the microcontroller to ignore the (momentarily) closed reed switches from the other manifold inlets as the carriage/magnet travels by reed switches 1, 2, and 3 to get to the desired (#4) position?
- Anything else I’m overlooking?
Thank you for your time and consideration.