Обзор инфракрасного датчика CO2 MH-Z19
CO2 #include <SoftwareSerial.h>; SoftwareSerial mySerial(2, 3); // RX, TX byte request[9] = {0xFF,0x01,0x86,0x00,0x00,0x00,0x00,0x00,0x79}; unsigned char response[9]; void setup() {...
View ArticleБеспроводная связь Arduino радиомодулями nRF24L01+ на 2.4GHz
server #include <SPI.h> #include <RH_NRF24.h> RH_NRF24 nrf24; void setup() { Serial.begin(9600); while (!Serial) ; // wait for serial port to connect. Needed for Leonardo only if...
View ArticleДатчик атмосферного давления и температуры BMP280
BMP280 #include <Wire.h> #include <SPI.h> #include <Adafruit_Sensor.h> #include <Adafruit_BMP280.h> #define BMP_SCK 13 #define BMP_MISO 12 #define BMP_MOSI 11 #define BMP_CS...
View ArticleESP8266 Web Server
Title #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> MDNSResponder mdns; // Replace with your network credentials const...
View ArticleWeb Weather Station
Title #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> #include "DHT.h" #include <Wire.h> #include <SPI.h>...
View Articleweb server css
Title #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> MDNSResponder mdns; ESP8266WebServer server(80); // Replace with...
View ArticleThingspeak пример работы
ESP8266 #include <ESP8266WiFi.h> // Include the ESP8266 Library #include "ThingSpeak.h" // Include the ThingSpeak library WiFiClient client; const char* ssid = "SSID"; // Enter your...
View ArticleOpenWeatherMap пример работы
GET #include <WiFi.h> #include <Wire.h> const char* ssid = "SSID"; const char* password = ""; const char * hostDomain = "api.openweathermap.org"; const int hostPort = 80; WiFiClient...
View ArticleЦифровой датчик света и ультрафиолета на Si1145
UV Sensor #include <Wire.h> #include <LiquidCrystal_I2C.h> #include "Adafruit_SI1145.h" Adafruit_SI1145 uv = Adafruit_SI1145(); LiquidCrystal_I2C lcd(0x3F,20,4); void setup() { lcd.init();...
View ArticleESP8266: ThingBoard платформа для сбора и обработки данных
code #include <Wire.h> #include <SPI.h> #include <Adafruit_Sensor.h> #include <Adafruit_BME280.h> #include <PubSubClient.h> #include <ESP8266WiFi.h> #define...
View Article#DIY Vacuum Pick Up Tool part 1
Today one of stages of vacuum pickup construction is over. All components are selected, and only a body and nice appearance are still in question. Everything started with the difficulty of arranging...
View ArticleG1Tech BME680 – Temperature, Humidity, Pressure and Gas Sensor
Brand-new instrument for the measurement market, a small sensor that can measure: Temperature, Humidity, Pressure and VOC. Bocsh made VOC measurement new in the sixth series Sensor parameters and its...
View ArticleDoes the Arduino will suffer the fate as Olimex?
If you are close to the DYI world, you know monsters like: arduino, adafruit, sparkfun and olimex! At the time of the Arduino UNO, it was possible to say for sure that the Arduino is a monopolist in...
View ArticleHow to charge lead-acid batteries?
The situation is that when a beginner buys a 12V battery, he usually finds 12V charger for batteries in the store. However, difficulties come exactly when 6V batteries are bought, and the question is...
View ArticleOpenWeatherMap пример работы
GET #include <WiFi.h> #include <Wire.h> const char* ssid = "SSID"; const char* password = ""; const char * hostDomain = "api.openweathermap.org"; const int hostPort = 80; WiFiClient...
View ArticleЦифровой датчик света и ультрафиолета на Si1145
UV Sensor #include <Wire.h> #include <LiquidCrystal_I2C.h> #include "Adafruit_SI1145.h" Adafruit_SI1145 uv = Adafruit_SI1145(); LiquidCrystal_I2C lcd(0x3F,20,4); void setup() { lcd.init();...
View ArticleESP8266: ThingBoard платформа для сбора и обработки данных
code #include <Wire.h> #include <SPI.h> #include <Adafruit_Sensor.h> #include <Adafruit_BME280.h> #include <PubSubClient.h> #include <ESP8266WiFi.h> #define...
View ArticleHow To Install Prometheus on Raspberry PI or Orange PI
Prometheus is a leading open-source monitoring solution with alerting functional. By default, Prometetheus export only itself metrics and need aditioanl module for accept more information. You can...
View ArticleRaspberry Pi: Webcam Server with Stream Live Video base on Motion
sudo apt-get updatesudo apt-get upgrade sudo raspi-config sudo apt-get install motion sudo nano /etc/motion/motion.conf ... daemon on ... stream_port 8081 ... stream_localhost off ... width 640 ......
View ArticleInstall Docker on a Raspberry Pi 4
Add your new user to the sudo group sudo usermod -aG sudo g1 Update the apt package index & Upgrade all current program package sudo apt-get updatesudo apt-get upgrate Install packages to allow...
View Article