My project is as follows:
I need code written to be able to control 7 pumps using the following board and pumps:
-an ATmega328P WiFi-ESP8266+8Mb flash USB-TTL CH340G
-The pumps which I am using are rated as Current: 0.18 A, Voltage: DC 3-4.5V
-I would like to control them using the pins on the ATmega and using transistors to turn the pump CW and CCW/on and off/high/med/low speeds.
I am looking to have WiFi control between a smartphone and the board. The wiring diagram for this is attached. At this stage, I am in proof of concept and using a breadboard to connect. In future, I would like to have this on a PCB which could be printed by a company online, but this is further down the road. All that I am having trouble with right now is simple library issues which I'm sure could be easily sorted out by a professional. So I am looking for someone to take existing code which would turn on a switch and allow this all to function with the hardware that I have already got, or write their own code if that is easier. Unfortunately, I am not able to get the coding to function as this is not my line of expertise.
The idea is to be able to control 7 pumps from a phone/web based application or web browser. They are to be continuously on, until turned off on the webpage or phone app (prefer this option).
3 button options for the pumps:
1) Clockwise or counterclockwise pumping as a master variable (all CW, or all CCW)
2) Pump 1 - 7 on/off & speed (High, med, low)
(example)
pump 1 - high
pump 2- off
pump 3- med
pump 4 - med
pump 5 -low
pump 6 - low
pump 7 - low
3) Pulse feature for all pumps (1 second, 2 seconds, 3 seconds wait)
(example)
for all pumps which are currently not = off
run the following:
pump 1 - high (wait 1 second), high (on for 1 second), repeat
pump 2- off [DO NOTHING]
pump 3- med (wait 1 second), med (on for 1 second), repeat
pump 4 - med (wait 1 second), med (on for 1 second), repeat
pump 5 -low (wait 1 second), low (on for 1 second), repeat
pump 6 - low (wait 1 second), low (on for 1 second), repeat
pump 7 - low (wait 1 second), low (on for 1 second), repeat
About the recuiterMember since Aug 31, 2017 Bruce Schneier
from Bouches-du-Rhone, France