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 Replacing a device's button with an Arduino
  • 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
  • State Verified Answer
  • Replies 30 replies
  • Answers 11 answers
  • Subscribers 393 subscribers
  • Views 5018 views
  • Users 0 members are here
  • arduino uno
  • arduino_tutorials
  • advice
  • costume
Related

Replacing a device's button with an Arduino

talongrayson
talongrayson over 8 years ago

Hi,

 

Let me start by saying that I'm fairly new to electronics, and I may get some terminology wrong in this post. I'll do my best to ensure it makes sense, though, and please feel free to correct me where necessary as I am very keen to learn.

 

As the title (vaguely) suggests, I am working on a project in which I need to - for want of a better description - replace a device's 'push to make' switch with an Arduino Uno.

 

The project is actually the glove of a costume I am building. It is going to release 'smoke' when the wearer's hand is in specified positions. The setup isn't hugely complicated, and I believe I have everything straight in my head except for one thing. I'll start by explaining the setup...


In the glove I have an accelerometer, and with my Arduino sketch I can define gestures and recognise those gestures.

 

I've built a basic shield for the Arduino with a transistor so that I can control a blower fan. The Arduino and fan are powered by a 9v battery which connects to this shield. I've essentially enclosed the blower fan so that its inlet is connected to a 'vape' (you know, one of those e-cigarette type things).


So far I have got everything working, but the vape is not connected to the Arduino in any way. In fact, it hasn't even arrived yet, so while awaiting its delivery I've been considering how I might connect it all up.

The intention is to have the fan and some LEDs turn on and the vape button pressed when a specific gesture is made. The vape will heat up, the fan will suck vapor through the tubes, and the vapor will emerge from the glove. When the gesture is no longer being made, the fan turns off and the vape button is released.

 

I've gone through a couple of options in my head, including things like having the Arduino control a servo which mechanically presses the button on the vape, but what I'd really like is it pretty much desolder the vape's switch, remove it from the vape, and solder wire at its connections which then connect to the Arduino... or thereabouts, if you see what I mean.

 

So I'm here to get some advice on what would be the best way to approach this. Is it possible? Trivial? Will I need to use a transistor, a DAC, a relay, or some other method?

 

Any help would be greatly appreciated and I am more than happy to elaborate further if needs be.

  • Sign in to reply
  • Cancel

Top Replies

  • talongrayson
    talongrayson over 8 years ago +3
    The reed relay arrived today. To cut a long story short, it works like a charm. Next step is to migrate that part of the circuit to the shield. In due course I will upload photos/video to show it in action;…
  • jlangbridge
    jlangbridge over 8 years ago in reply to talongrayson +2 verified
    Aha... So there is a bit of logic there, this isn't a simple on/off switch (I'm not a vaper either, so I had no idea). Well, maybe the "easiest" solution would be to use a relay. There are several types…
  • jlangbridge
    jlangbridge over 8 years ago in reply to talongrayson +2
    Possibly, but I still need a bit of information first; the amount of power required to activate the switch. The relay itself is powered by a coil, and that coil requires power, but a lot of relays require…
  • jlangbridge
    0 jlangbridge over 8 years ago in reply to jc2048

    I really need a new oscilloscope...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jc2048
    0 jc2048 over 8 years ago in reply to talongrayson

    The bottom output MOSFET is doing the clamping rather than the diode. [So I was half right.]

     

    It might be an idea to put the diode in. If you publish the circuit it encourages people to put the diode in (for when it actually is needed) and it'll save you from having to try and explain to all the people who will inevitably come along and tell you that there should be a diode there.

     

    If this were my project, and it were going on a shield, I'd use an external MOSFET or BJT to switch the relay (where you would most definitely would need to protect the transistor). That's because the dissipation of the coil's energy is faster and more in line with what the reed relay manufacturer was expecting [since they include a protection diode in some of their variants we can assume that the contact switching is fine when the the coil is working into the 0.7V that the diode limits to].

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jc2048
    0 jc2048 over 8 years ago in reply to jlangbridge

    Me too. I need 4 channels and at least 1 GHz bandwidth...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to jc2048

    group purchase !

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jc2048
    0 jc2048 over 8 years ago in reply to Jan Cumps

    Wouldn't work. We'd send it to that person in Belgium for his turn and then never see it again.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • talongrayson
    0 talongrayson over 8 years ago

    Hello again!

     

    Apologies to bump a thread unnecessarily - I just wanted to assure anyone who's still interested that I haven't forgotten about my intention to share this project. It's been a very busy couple of months; not sure if I mentioned it previously but my wife and I are renewing our wedding vows at the end of this month, which is what the costume is for. So aside from the costume being ambitious, there is basically a whole wedding which has been organised in parallel.

     

    The costume is almost complete, and I think the glove is pretty much done, with the exception of fine tuning some of the gestures in code, and such. I plan to document the glove assembly as fully as possible over the next week or two (better to get the photos before the drinking begins, right?) and share everything during May.

     

    Ahead of that, could someone inform me of this forum's preferred method of sharing, please? Should I just attached photos, the sketch, and so forth directly to a post, for example?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jlangbridge
    0 jlangbridge over 8 years ago in reply to talongrayson

    Glad to see you back! I would say post it as a blog post, along with photos, code, and anything you think could be interesting to explain the project. Apparently, there is a new project where you can win stuff for blog posts on the e14 website... So try, and see what happens! Looking forward to reading about it, and good luck!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cadcoke5
    0 cadcoke5 over 8 years ago

    I had a similar concept. Though in my case, it was to simulate fire on the arm of the Scarecrow in the Wizard of Oz for a stage play.  I have not really perused the idea yet.

     

    For a different effect, I wanted to simulate a mug of hot chocolate that the Witch in the Lion the Witch and the Wardrobe uses to tempt Edmund. I used what is called a "mechanical mod", where I attached an E-cig atomizer to a basic battery and a regular switch.  It was not a high wattage atomizer, so the electrical demands were not great.  I also found that it was very important to have some air flow, and even a little air flow would vastly increase the amount of fog. I used a tiny muffin fan the size of a nickle.

     

    By the way, there used to be vendors who sold E-cigs who would also sell kits for you to solder your own power for the atomizer. Some were "mechanical mods" that simply was a battery case and a switch.  But, others had a bit more electronics like a mosfet to allow much more power. It has been years since I looked into them, and those kits seemed to have disappeared from the market.

     

    I imagine that the main benefit of using something like the Arduino, for your costume rig, is that you can control how long the coil is powered.  Continuing to power the atomizer beyond how fast the e-cig juice can soak through the wick, will quickly scorch your wick, and produce a genuine burning smell and soon ruin your coil. Of course, powering it while your liquid is used up will do the same.  I wonder if there is a reliable way to electrically sense if the wick is saturated with juice?

     

    -Joe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cadcoke5
    0 cadcoke5 over 8 years ago

    I should mention some other, earlier experimentation I did with a 1st generation e-cig.  This what the type that looked like an actual cigarette (these are referred to as cig-a-likes), and this kind is actuated as soon as you sucked on it.  I used a battery-operated fish tank aerator, and connected the air hose to one end of a 1/2" pvc pipe.  Then, I inserted the E-cig in the other end and used a small rubber band like a gasket.  When air was pumped through it from the back side, it produced a steady stream out the other end.  But, the quantity of smoke was much too little for my purposes at the time.  But, it may be useful for you.

     

    There are also devices made for magicians to produce small amounts of smoke using an e-cig type of atomizer and a fairly silent air pump. One is the "Smoke 2.0" by Alan Rorrison , which is around $75.

     

    -Joe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cadcoke5
    0 cadcoke5 over 8 years ago in reply to cadcoke5

    Boy, get me started on a subject and I start researching and find all sorts of answers  Here is a smoke generator put together by one of the folks at Spark Fun. He connects to one of the boards that are a competetor to Arduino, and uses a small air pump they sell on their web page.  It uses a mosfet for controlling the large current that goes to the e-cig atomizer.

     

    https://www.sparkfun.com/news/2344

     

    -Joe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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