element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Turning on a machine automatically when another machine is turned on - using ad hoc ESP8266 network
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 43 replies
  • Subscribers 388 subscribers
  • Views 14418 views
  • Users 0 members are here
  • wifi
  • esp8266
  • relays
  • wireless
Related

Turning on a machine automatically when another machine is turned on - using ad hoc ESP8266 network

donnybahama
donnybahama over 3 years ago

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:

  1. 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?
  2. 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?
  3. 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?
  4. Anything else I’m overlooking?

Thank you for your time and consideration.

  • Sign in to reply
  • Cancel

Top Replies

  • fmilburn
    fmilburn over 3 years ago +5
    Hello donnybahama That is a relatively complex project for someone new to microcontrollers but doable with effort. The best advice I can give is to break it into pieces and prototype each step before…
  • beacon_dave
    beacon_dave over 3 years ago +5
    Perhaps best to start with Question 4... - Safety. Power tools, mains power and "new to microcontrollers and programming" can quickly result in injury. - Your 5th port (free hose) doesn't have a power…
  • dougw
    dougw over 3 years ago +4
    Nice manifold design. It might be better to use a pulley than a lead screw. A leadscrew wouldn't allow the magnets to align the ports.
  • donnybahama
    donnybahama over 3 years ago in reply to beacon_dave

    THAT is EXTREMELY cool!!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • donnybahama
    donnybahama over 3 years ago in reply to beacon_dave
    beacon_dave said:
    you will need a suitable motor controller between the microcontroller and the motor which can drive the threaded rod in either direction.

    Since I plan to use a cheap drill to drive the lead screw, I was planning to address this by simply flipping the switch on the drill - not physically/externally but (hopefully) internally/electronically. Having said that, you’ve given me an idea: maybe I should skip the reed switches and just use a stepper motor that can precisely move the carriage to each position on the manifold. That would also take care of the bouncing reed switches.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to donnybahama

    A split nut on the lead screw is quite common.

    Magnetic clutch that allows 'freewheeling' when not under powered control.

    Motor relays with manual override. 

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • donnybahama
    donnybahama over 3 years ago in reply to beacon_dave
    beacon_dave said:
    Any reason that you have chosen the ESP8266 for this ? Sounds like you are perhaps planning on Wi-Fi connectivity ?

    I’ve chosen the ESP8266 mostly because they’re cheap and reliable but also because they support ad hoc wireless networking. I’m not planning to have Wi-Fi in my shop; I don’t want the added complexity or expense of a router and I don’t see any need for internet access in my shop.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • donnybahama
    donnybahama over 3 years ago in reply to beacon_dave
    beacon_dave said:
    if you are already committed to running large vacuum hoses to each machine then a wired solution could be simpler / more reliable for starting out

    A wired solution probably does make more sense. This project would be fun and interesting and a great opportunity to learn new stuff - but I do tend to gravitate toward simplicity and reliability in my shop.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to donnybahama

    No limit switches, motor reversing, or initialisation required. Just run the motor until the appropriate manifold port sensor is activated and then stop the motor.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to donnybahama

    Instead of having to move the shop vac port with the (unpredictable) vacuum hose attached to it, aim to keep that part fixed and just slide a lightweight (predictable) flat plate with an aperture (hole) cut into it  to uncover the port to the desired machine tool. Lighter load, less friction, smaller motor.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 3 years ago

    Just to throw out another idea for ruling in/out (if you have not already done so), there is this sort of (manual) valve, I don't know how effective it could be, it would turn the problem into one where a hobby-servo rotary motion could shut/open each port (i.e. it would need to be replicated one servo per port) - probably a more expensive solution though. Still, maybe worth an experiment on just one port perhaps, the advantage being that no power control circuitry is needed, since usually hobby servo-motors can connect directly to microcontroller GPIOs, and also no feedback is needed (since servo's have that inherently). You may have some different issues however, such as detection of stuck mechanisms, which can cause servos to smoke or fuses to blow.

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 3 years ago in reply to phoenixcomm

    Hi Cris, I just commented on this post with something similar, i.e. using hobby servo's, I didn't realize you'd already suggested it : )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to shabaz

    Waste material may get stuck with a vane type valve like this. An iris or gate type valve may be better as it would tend to leave the port clear when fully open.   

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube