ESP8266, Uno and solar to control solenoid

MadProphet:
My one question (till the parts are all in hand) is do I wire the 12v output from the controller where ground goes to the breadboard and positive to the solenoid? Nothing needed between those parts?

  • Ground from the charge controller goes to ground of the breadboard, and ground of the ESP.
  • 12V of the charge controller goes to one side of the solenoid.
  • The second terminal of the solenoid goes to the drain of the N-Channel MOSFET (see schematic below)
  • The source of the MOSFET goes to ground.
  • The 5V output of the charge controller goes to a 3.3V (LDO) voltage regulator.
  • The ground of the voltage regulator goes to the ground of the breadboard and the charge controller (all grounds go together)
  • The 3.3V output of the voltage regulator goes to Vcc of the ESP.

If you're using a 3.3V logic level MOSFET:

(power supply is the 12V output of the charge controller, in this case)

If you're using a 'normal' MOSFET:

For more info, read the article I linked in my previous post.

Edit: the second diagram shows a resistive load, if you use a solenoid (inductive), you need a flyback diode as well (just like in the first one).