This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*|-----------------------------------------------------------------------------------|*/ | |
/*|Project: Ultrasonic sensor node ESP32 with HTTP connectivity (FreeRTOS) |*/ | |
/*|ESP32 (DevKit, Generic) - ESP-IDF v4.2 (4.0 compatible) |*/ | |
/*|Compatible sensors: HC-SR04 / JSN-SR04T / HY-SRF05 / Parallax PING)))™, DYP-ME007..|*/ | |
/*|Author: martinius96 |*/ | |
/*|E-mail: martinius96@gmail.com |*/ | |
/*|Project info: https://martinius96.github.io/hladinomer-studna-scripty/en/ |*/ | |
/*|Test web interface: http://arduino.clanweb.eu/studna_s_prekladom/?lang=en |*/ | |
/*|On this web interface there is ESP32 sending datas each 5 minututes |*/ | |
/*|Buy me a coffee at: paypal.me/chlebovec |*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*|------------------------------------------------------------------------|*/ | |
/*|WiFi connection in STA mode for ESP32 under ESP-IDF - Wokwi simulator |*/ | |
/*|WiFi info is directly in define macros, no Kconfig / menu configuration |*/ | |
/*|Edited by: martinius96 |*/ | |
/*|Buy me a coffee at: paypal.me/chlebovec for more examples |*/ | |
/*|Tested under ESP-IDF v4.4.1 |*/ | |
/*|------------------------------------------------------------------------|*/ | |
#include <string.h> | |
#include "freertos/FreeRTOS.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*|----------------------------------------------------------------------------|*/ | |
/*|Project: Ultrasonic water level monitor - HC-SR04 / JSN-SR04T / HY-SRF05... |*/ | |
/*|ESP32 (DevKit, Generic) + PHY Ethernet LAN8720 / TLK110, RMII interface |*/ | |
/*|Author: Martin Chlebovec (martinius96) |*/ | |
/*|E-mail: martinius96@gmail.com |*/ | |
/*|Buy me a coffee at: paypal.me/chlebovec |*/ | |
/*|Project info: https://martinius96.github.io/hladinomer-studna-scripty/en |*/ | |
/*|Test web interface: https://hladinomer.000webhostapp.com |*/ | |
/*|Revision: 8. September 2022 |*/ | |
/*|----------------------------------------------------------------------------|*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*|------------------------------------------------------------------------------------------|*/ | |
/*|VYHOTOVIL: MARTIN CHLEBOVEC |*/ | |
/*|HASICSKE STOPKY - VERZIA ZDARMA - NA DESATINY SEKUNDY S CASOM PRE DVA UTOKY - LAVY/PRAVY |*/ | |
/*|FUNGUJE NA PRINCIPE FUNKCIE MILLIS() A VYKONAVANI KRATKYCH PROGRAMOVYCH CYKLOV |*/ | |
/*|INPUT PULLUP ZAPOJENIE S 20kohm INTERNAMY REZISTOROM (PODLA SCHEMY) |*/ | |
/*|Doska: Arduino Uno, Nano, Mega, AtMega328P (Hardware I2C) |*/ | |
/*|WEB: https://arduino.php5.sk/hasicske-stopky.php |*/ | |
/*|PODPORA PROJEKTU PRE UVOLNENIE PLNEJ VERZIE ZDARMA: https://www.paypal.me/chlebovec |*/ | |
/*|------------------------------------------------------------------------------------------|*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Autor: Martin Chlebovec (martinius96@gmail.com) | |
//Časová kontrola vodárne - dárlingu | |
#include <avr\wdt.h> | |
const int buttonPin = 2; //kontakt, na ktory sa privedie +5V | |
const int instantResetPin = 3; //kontakt, na ktory sa privedie +5V | |
unsigned long lastDebounceTime = 0; //premenna pre cas millis() | |
int rezim = 0; //rezim systemu | |
int pocet_merani = 0; //pocet merani (cyklov), rataju sa do 2 minut --> 120 sekund |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Martin Chlebovec (martinius96@gmail.com) | |
//Schéma zapojenia: http://arduino.clanweb.eu/otackomer.php | |
//Základná implementácia pre otáčkomer na platforme Arduino Uno / Nano (ATmega328P) | |
//Neobsahuje ošetrenie zákmitov, volatile premenné v interrupt rutine (negarantované obslúženie premennej) | |
//Verzia zdarma pre orientačné meranie, chybovost meraní do: 30% | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x3F, 20, 4); //alebo 0x27 (najpouzivanejsie I2C komunikacne adresy) | |
int rev = 0; | |
int rpm; | |
unsigned long oldtime = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$con = mysqli_connect("localhost","MENO_POUZIVATELA_DATABAZY","HESLO_POUZIVATELA_DATABAZY","NAZOV_DATABAZY"); | |
// Check connection | |
if (mysqli_connect_errno($con)) | |
{ | |
echo "Failed to connect to DataBase: " . mysqli_connect_error(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*|---------------------------------------------------------------------|*/ | |
/*|Projekt: Hladinomer - Arduino + Sigfox Modem (868MHz) |*/ | |
/*|Autor: Martin Chlebovec |*/ | |
/*|E-mail: martinius96@gmail.com |*/ | |
/*|Licencia pouzitia: MIT |*/ | |
/*|Revízia: 7. Január 2021 |*/ | |
/*|---------------------------------------------------------------------|*/ | |
/*|---------------------------------------------------------------------|*/ | |
/*|Inštrukcie pre nastavenie Sigfox Modemu na stránkach LPWAN: |*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*|-----------------------------------------------------------------------------------|*/ | |
/*|Projekt: Hladinomer - HTTP - Compact - HC-SR04 / JSN-SR04T / HY-SRF05 |*/ | |
/*|Arduino + Ethernet (W5100 / W5500, ENC28J60), ESP8266 (NodeMCU), ESP32 (DevKit) |*/ | |
/*|Autor: Bc. Martin Chlebovec (martinius96) |*/ | |
/*|E-mail: martinius96@gmail.com |*/ | |
/*|Info k projektu (schéma): https://martinius96.github.io/hladinomer-studna-scripty/ |*/ | |
/*|Testovacie webove rozhranie: http://arduino.clanweb.eu/studna_s_prekladom/ |*/ | |
/*|Knižnice NewPing, ESP8266NewPing a Ethernet2 je dostupná v Github repozitári: |*/ | |
/*|https://github.com/martinius96/hladinomer-studna-scripty/ - stihnuť a rozbaliť |*/ | |
/*|Obsah priečinka /src/ nakopírovať do C:/Users/User/Dokumenty/Arduino/libraries/ |*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Autor implementácie: Martin Chlebovec (martinius96) | |
//Starting refresh rate: 1Hz | |
//Podpor tvorbu: https://paypal.me/chlebovec | |
#include <avr\wdt.h> | |
#include <FastX9CXXX.h> | |
// pinout | |
#define X9_CS 3 | |
#define X9_INC 4 | |
#define X9_UD 5 |
NewerOlder