From 0c4d2e2183480b4f1fe3f3dd2710314aa1fa2dba Mon Sep 17 00:00:00 2001 From: TheK4n Date: Mon, 20 Sep 2021 21:46:59 +0300 Subject: [PATCH] ref README.md --- README.md | 29 +++++++++++++++++++++++--- firmware/pump_encoder/pump_encoder.ino | 8 +++---- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4c78d3c..4994e81 100644 --- a/README.md +++ b/README.md @@ -12,16 +12,18 @@ ## Content * [Project description](#chapter-0) * [Usage](#chapter-1) +* [Hardware](#chapter-2) +* [Libraries](#chapter-3) + -\ ## Project description Arduino Controller for water pump -\ - + + ## Usage 1. Turn to change lower threshold @@ -34,4 +36,25 @@ Arduino Controller for water pump [![Scheme](schemes/PumpController.png)]() + +## Hardware + +| Name | Model | +|:--------------------- | -------------: | +| **Controller** | Arduino Nano ATmega328 | +| **Encoder** | EC11 | +| **Display** | TM1637 | +| **Relay** | SSR-40DA | +| **Pressure sensor** | EBOWAN | + + + +## Libraries + +| Name | Link | +|:--------------- | ------------- | +| **EncButton** | https://github.com/GyverLibs/GyverTM1637 | +| **GyverTM1637** | https://github.com/GyverLibs/EncButton | + +

diff --git a/firmware/pump_encoder/pump_encoder.ino b/firmware/pump_encoder/pump_encoder.ino index 57e2438..d10f3bc 100644 --- a/firmware/pump_encoder/pump_encoder.ino +++ b/firmware/pump_encoder/pump_encoder.ino @@ -44,7 +44,7 @@ int get_constrained_pressure_high(int pressure_high_local) { } void setup() { - Serial.begin(9600); + // Serial.begin(9600); pinMode(relay_port, OUTPUT); @@ -141,7 +141,7 @@ void loop() { is_on_pump = false; } } - Serial.print(pressure_low); - Serial.print(','); - Serial.println(pressure_high); +// Serial.print(pressure_low); +// Serial.print(','); +// Serial.println(pressure_high); }