6V Solenoid control using ESP8266

Thread Starter

Chris Orchard

Joined Mar 22, 2018
1
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
 

ebeowulf17

Joined Aug 12, 2014
3,307
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
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.
 
Top