This is my current testing board… I was playing with buttons, switches, and the led so sorry thats in the way a bit. I don’t have a digital pot so using this manual one. Ideally I’d have a digital pot and control it via my volume up and volume down tactile buttons for each output.
I found the setup for controling the pump via the transistor somewhere online… took me a while to do and I have no idea if its right… it does work but I don’t know why each piece is needed as I’m a total noob.
So right now my switch will activate the system. If its off the oled reads OFF. When its on the Photon will read the pots value then create a mapped value of 0-255 for the led and write to it so the led intensifies as you dial it up. It also does a mapped value of 230-255 to do a write to the separate breadboards pin tied to the base of the transistor. The oled will display the values being used for the led and the motor. I picked 230 so that the pump starts at 3.5v which is its operating voltage min. At 255 its only getting 4.6v b/c of my 4.8v power source I’m using for testing.
So my thought was I could swap the manual pot for a digital one. Have a volume up and down button for each digital pot (5 pots since I want 5 variable outputs). I could replicate my current pump setup. Read from 5 pots… write to 5 pwm pins of 5 transistors etc.
However, I think it would be better to have one stronger pump… use one pot to adjust its total flow… and have a manifold with 5 variable control valves (still using 5 up/down btn setups with digital pots) but I don’t know if those are expensive or how to drive them or if its just dumb.