Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 1.67 KB

README.md

File metadata and controls

67 lines (57 loc) · 1.67 KB

Simple Doser

Web Controlled Peristaltic Doser for Aquariums

Powered by Particle Photon

Controlled through http://www.simpledoser.com - Free for users of this project

Firmware Details:

  • Control up to 6 Pumps
  • Scheduling options for 12 and 24hr periods
  • Calibration Function (Calibration automatically runs each pump for 60 seconds)
  • Manual ON/OFF
  • Logging

##CLI Commands

  Variables:
    getRelay1 (string)
    getRelay2 (string)
    getRelay3 (string)
    getRelay4 (string)
    getRelay5 (string)
    getRelay6 (string)
    relayON (string)
    relayOFF (string)
  Functions:
    int calibrate(String args) 
    int setupChannel(String args) 
    int setDoseRate(String args) 
    int manual(String args) 
    int setTimeZone(String args)

####Variable Example

particle get <photonName> getRelay1

####Manual Function

  • args = pump#, on, off
particle call <photonName> manual 1,on

####Calibration Function

  • args = pump#
particle call <photonName> calibrate 

####SetupChannel

  • args = channel#,startTime,dosingPeriod,numberOfDoses,dose

  • startTime is time of day in seconds (Ex: 14:30:00 = 52200)

  • dosingPeriod determines if the program runs over a 12hr or 24hr period

  • numberOfDoses is how many doses will take place over the dosingPeriod

  • dose is the total amount that will be dosed during the dosingPeriod

The example below would tell pump 1 to start dosing 200mL at 14:30:00, 12 times over a 12hr period.

particle call <photonName> setupChannel 1,52200,12,12,200

####SetDoseRate

  • arg = pump#,value (ie 13.2)
particle call <photonName> setDoseRate 1,13.2