Giter Site home page Giter Site logo

roboremo / pic16f684-periodic-plant-watering Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 328 KB

Plant watering system using the PIC16F684 microcontroller. The MCU commands a 12V solenoid valve to open with specific period, and close after a specific interval. The period and interval can be configured over Bluetooth using Android phone with RoboRemo app.

License: MIT License

Makefile 2.28% C 1.78% Shell 0.22% Eagle 95.72%
plant-watering automation valve pic12f684

pic16f684-periodic-plant-watering's Introduction

PIC16F684-periodic-plant-watering

Plant watering system using the PIC16F684 microcontroller. The MCU commands a 12V solenoid valve to open with specific period, and close after a specific interval. The period and interval can be configured over Bluetooth using Android phone with RoboRemo app. The settings are stored in the EEPROM memory of the PIC, so they don't get lost at power OFF.

video: https://www.youtube.com/watch?v=9LrbubgdCc8

Commands:

"get\n" - get parameter values (p = period, i = open interval)
"time\n" - get up time (how many seconds passed since system was powered)
"set p [n]\n" - set period, in seconds. Example: "set p 300\n" - valve wil open every 5 minutes
"set i [n]\n" - set the open interval, in seconds. Example: "set i 20\n" - valve will stay open for 20 seconds
"open\n" - manually open valve (for test)
"close\n" - manually close valve (for test)

The push button is used to turn ON the Bluetooth module, which is off by default, to reduce the power consumption. The system turns off the Bluetooth module automatically after 30s if not receiving any command.

The Bluetooth module used in this project is the BlueSMiRF, configured to 9600 baud.

The blue LED blinks every 2s to signal that system is running.

Current draw (with Bluetooth OFF and valve OFF) is about 6mA.
That gives a battery life of about 30 days (with 5Ah 12V battery)

pic16f684-periodic-plant-watering's People

Contributors

roboremo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.