6V Solenoid control using ESP8266

Discussion in 'The Projects Forum' started by Chris Orchard, Mar 22, 2018.

  1. Chris Orchard

    Thread Starter New Member

    Mar 22, 2018
    1
    0
    Evening all,

    I have an idea of something I would like to test and have purchased a lot of different components and hardware pieces recently and am trying to learn electronics through online training and books. However, I seem to be getting myself confused with a lot and would like some help to build my circuit so that I can understand the ins and outs of my project and whether it would be viable.

    I have an ESP8266 module which I would like to turn on and off a solenoid (6v ~350ma) and control via a smartphone app. I am trying to use an online tutorial to help me with my work which is http://randomnerdtutorials.com/esp8266-controlled-with-android-app-mit-app-inventor/ and uses the MIT app inventor to create a basic GPIO control.

    However I am stumbling to control my solenoid whatsoever and am pretty sure its because of my circuit!

    Would anyone be able to explain/provide a rough sketch to help me get going?

    Cheers all,

    Chris
     
  2. ebeowulf17

    Well-Known Member

    Aug 12, 2014
    2,277
    399
    This discussion starts with a pretty good image:

    https://electronics.stackexchange.c...-mosfets-while-connected-to-mcu/325633#325633

    IMG_4938.PNG

    Of course, where it shows a 12V supply, you'll need a 6V source instead. I haven't looked at the specs of the MOSFET part shown in the schematic - you'll need a logic level MOSFET to insure it works well at only 3.3Vgs since that's the ESP8266's operating voltage.

    This circuit assumes you don't need complete isolation between the two devices and that they can share a common ground between the two power supplies. If you can't have that for whatever reason then you'd need a different circuit, maybe one using an opto isolator.
     
Loading...