Giter Site home page Giter Site logo

connorvalentine / arduinoaquaponics Goto Github PK

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

Using Blynk IoT to control Arduino MKR WiFi 1010, and return sensor data to phone.

License: MIT License

C++ 71.32% C 11.17% Processing 0.76% Makefile 0.19% CSS 3.15% Python 2.83% Java 0.76% Shell 0.34% Batchfile 0.11% HTML 6.59% JavaScript 2.78%

arduinoaquaponics's Introduction

ArduinoAquaponics

Using Blynk IoT to control Arduino MKR WiFi 1010, and return sensor data to phone.

Part 1: Downloading the Necessary Software

Download the Arduino IDE onto your computer. Any version should be fine. Download Arduino IDE

  1. install all the recommended software when you open the Arduino IDE
  2. Select Board (Arduino MKR WiFi 1010)

Option 1: Download the Blynk IoT legacy App. NOTE: the legacy app is no longer officially supported, though it is still functional.

- this is the version I use. It was free to get started
- Make an account with Blynk [Blynk Sign Up](https://blynk.cloud/dashboard/register)

Option 2: Download the Blynk IoT app onto your phone. You will need to pay $5/month to have the functionality of the legacy app.

- I would like to upgrade to this version, but ran out of time. The new version supports access from the PC as well. There are a lot of cool upgrades, and you would learn a lot about blynk during the transfer from legacy to pro.
- [Blynk Download on Google Play](https://play.google.com/store/apps/details?id=cloud.blynk&hl=en_US&gl=US).
- [Blynk Download for Iphone](https://apps.apple.com/us/app/blynk-iot-new/id1559317868).
- Make an account with Blynk [Blynk Sign Up](https://blynk.cloud/dashboard/register)

Part 2: Getting Started With Blynk IoT

check out their documentation link

Part 3: Arduino Code

open ArduinoCode/ArduinoCode.ino in the Arduino IDE

  • plug in the board to your USB. It should appear as a COM port in the bottom right of the Arduino IDE NOTE: There is a way to update the arduino code via wifi instead. The library is called Arduino Over The Air (ArduinoOTA).

update secrets.h with your wifi information

ArduinoCode/secrets.h

Features:

  1. Feed at certain times throughout the day 1a) spins a stepper motor a certain # of steps 1b) notifies me fish were fed at the given time
  2. water parameters updated every interval Turbidity, pH, temperature, TDS

Pin description:

  1. Turbidity sensor NOTE: This sensor normally reads from 0-4.2V. However, the Arduino MKR 1010 pins read in the range of 0-3.3V. So we need to step-down the voltage with a voltage divider what is a voltage divider?

    PINS: (look at wikipedia article for diagram) 5V from main board (do not pull 5V from a wall module for this) Z [=] resistor Vin (output from the turbidity sensor) Z1 = 2000 Ohm Z2 = 7230 Ohm, then wire to ground Vout = wire to A2 pin on the arduino board

  2. Stepper motor Nema 17 stepper motor and Stepper Motor Driver TB6600 12V 1 amp power source to the VCC (+) and Grnd (-) pins B-: red wire to motor B+: green wire to motor A-: blue wire to motor A+: yello wire to motor Dir-: Grnd Dir+: D8 (might need to switch to D14, hard to tell if I swapped D8 and D14) Pul-: Grnd Pul+: D14

  3. Various pin # for Blynk Widgets. Note that some pins don't actually exist on the arduino board. The Virtual pin is just used to communicate with Blynk. V0 Terminal (must be v0) V1 Current Time V2 Current Date V3 H20 Temp V4 pH V5 TDS V6 Turbidity V7 Food Per Meal V8 Feed Fish Button command V9 Meals Today (numfeedings) V10 BreakFast Time (meal1) V11 Lunch Time (meal2) V12 Dinner Time (meal3) V13 Modnight Snack Time (meal4) V14 Grow Light timing V15 Fish Tank Light Timing V16 Grow light button sync V17 Fish Tank Light button sync V18 Water Sensor alert V19 Number of Disconnections V20 Uptime counter since last disconnection

Future Features:

1) adding lights + color control for main tank
2) Overflow/water spill sensors on floor in case of emergency spills
3) water height sensors in each tank (and possibly grow bed)
4) flow rate meter for pump 
5) Valve control for directing pump water to tank/garden
6) Water heater control / temperature control

arduinoaquaponics's People

Contributors

connorvalentine 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.