GithubHelp home page GithubHelp logo

marcy05 / automatic_sprinkler Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 12.58 MB

Automatic sprinkler for terrace with micropython

License: GNU General Public License v2.0

Python 100.00%
3d-printing micropython micropython-rpi-pico sprinkler sprinklersystem telegram-bot automaticsprinkler

automatic_sprinkler's Introduction

Automatic Sprinkler

The project is intended to let your plant to survive while you are on holiday and you do not have any intention to buy built-in mechanism that prevent you to expand and adjust the system to your needs.

If you find this project it means that you are going to build it :)

Getting started

Folder Structure

The Repository is structure so that:

Folder Content description
/3d_files It contans all the stl files that you need to print for the project.
/Board It contains the reference schematics of the PCB
/Board/Production/ It contains the different files for fabrication or editing
/SourceCode It contains all the developend source code
/SourceCode/src/ + sprinkler.py It is the code needed for the Raspberry Pi Pico W to control the PCB board. The src folder has to be uploaded on the microcontroller while the sprinkerl.py can be executed locally for tests or uploaded on the target as well.
/SourceCode/Scripts/ It contains some tests that can be executed to test the wiring.

Bill of Material for the PCB and water buffer.

Item # Description Quantity Cost ~€/piece Reference
1 Raspberry Pi Pico w 1 5,08 Link
2 Multiplexer analogico CD74HC4067 2 1,30 Link
3 Relay 3V with Optocoupler 7 3,60 Link
4 Buck converter 1 2,20 Link
5 JST-XH 2,54mm 3pin 7 n/a Link
6 JST-XH 2,54mm 2pin 7 n/a Link
7 Diode IN4001 7 n/a Link
8 Mini water pumps 3V/5V 7 2,20 Link
9 Pin header connector female Some 10 Link
10 DC connector DC-0055.5x2.1mm 1 0,10 Link
11 Power supply 5V 2A 1 7,00 Link
12 Power switch 5V 1 n/a Link
13 (optional) Led green 2 n/a Link
14 (optional) Box case 1 n/a 3d_file
15 (optional) Box case cover 1 n/a 3d_file
16 Water frame buffer 1 n/a 3d_file
17 Water frame buffer top 1 n/a 3d_file
18 Pump holders 2 n/a 3d_file
19 Holder top 2 n/a 3d_file
20 Relay support 2 n/a 3d_file
21 (optional) PCB to be printed 1 n/a PCB
22 Empty tank sensor 1 n/a Link

Software

The file must be named main.py in order to be executed directly at the start-up of the shield.

How to start to test the softwarre

  • Copy the /src folder that you find the SourceCode folder to your Raspberry Pico W

  • Copy / execute the file sprinkler.py . If you want that it will be executed automatically at the startup you have to copy the file sprinkler.py to Raspberry Pico and rename it as main.py

What to do to start

  1. Copy the source files in Raspberry Pi Pico W (/src + sprinkler.py)

  2. Rename my_secret.py.template to my_secret.py

  3. Edit my_secret.py adding:

    • Your network information (SSID, password)

    • Create a telegram bot:

      • On Telegram, search @ BotFather, send him a “/start” message

      • Send another “/newbot” message, then follow the instructions to setup a name and a username

      • Your bot is now ready, be sure to save a backup of your API token, and correct, this API token is your bot_token

    • Add the API token in the file

    • Save the file

  4. You can now run the code

  5. On Telegram, search your bot (by the username you just created), press the “Start” button or send a “/start” message

Changelog

v2.0.0

  • First release implementing telegram controlled automatic sprinkler

  • User authentication

  • 7 autonomous pumps

  • 7 autonomous sensors

  • Automatic watering cycle

  • Manual watering cycle

  • Pump activation time with persistency parameters controlled remotelly

  • Pump activation and deactivation with persistency and remote contol

  • Emergency system stop via remote message

v1.0.1

v1.0.0

Licence

Please check the dedicated file in main branch.

automatic_sprinkler's People

Contributors

marcy05 avatar

Stargazers

 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.