Turning on machine automatically when other machine turns on
Posted: Mon Dec 27, 2021 10:59 am
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 (one for each dust producing shop machine) 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 the above is unclear, check out the video and just imagine moving the carriage left or right with a motor driven threaded rod, stopping the drive motor when a magnet on the carriage closes the right reed switch.
If that’s not the right way to do things, please let me know what the right way is.
Things I need guidance on:
Thank you for your time and consideration.
The way I think I want to do this is using an ad hoc network of ESP8266 modules - 6 “sender” modules (one for each dust producing shop machine) 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 the above is unclear, check out the video and just imagine moving the carriage left or right with a motor driven threaded rod, stopping the drive motor when a magnet on the carriage closes the right reed switch.
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” and 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?
Thank you for your time and consideration.