NEED SOME GUIDANCE ON ADDING AN ESP8266 TO A WATER DISPENSER

Arduino projects on the go
Post Reply
FBMinis
Posts: 55
Joined: 25 Feb 2018, 17:59

NEED SOME GUIDANCE ON ADDING AN ESP8266 TO A WATER DISPENSER

Post by FBMinis »

The water dispenser consists of a DC motor that is powered by an 18650 cell. It turns ON through a small chip that pulls the gate of an N-Channel mosfet HIGH when a momentary pushbutton is pressed (shorting Pin2 of the chip to ground). The following press turns the pump off.

I would like to have an esp8266 turn the gate of the mosfet HIGH once a day for a few minutes. I chose the esp8266 because of its low deep sleep current and because I'd like to play with its WiFi capabilities.

But I would like to start easy: when I power the device, I'd like to be able to visit a webpage on my phone and set for how long the gate of the mosfet should be HIGH and how long should the deep sleep be. After pressing OK, the device should dispense water and go to sleep. Once it wakes up again, there is no need for WIFI to be ON again (only if I power OFF and power ON again).

As far as I understand, I'd have to set a flag just after setting up the timer on the webpage, so the next time the esp8266 wakes up it will know it's not "first boot". I am not sure how to do this, do I need to write it to EEPROM then read it back after waking up?

Thank you
Attachments
HiPiCok Water Bottle Pump USB Charging Automatic Electric Water Dispenser Pump Bottle Water Pump Auto Switch Drinking Dispenser.jpg
HiPiCok Water Bottle Pump USB Charging Automatic Electric Water Dispenser Pump Bottle Water Pump Auto Switch Drinking Dispenser c.jpg
HiPiCok Water Bottle Pump USB Charging Automatic Electric Water Dispenser Pump Bottle Water Pump Auto Switch Drinking Dispenser d.jpg
bluejets
Posts: 316
Joined: 19 Jun 2019, 04:09

Re: NEED SOME GUIDANCE ON ADDING AN ESP8266 TO A WATER DISPENSER

Post by bluejets »

You should give the people at Arduino forum time to respond.
Post Reply