Skip to content

Instantly share code, notes, and snippets.

@cyrusmeh
cyrusmeh / ESP-NOW Tutorial with Arduino IDE | 4 ESP32 Boards, Keypads, Displays, RTC & Data Logger board1.ino
Created March 4, 2025 19:26
In this comprehensive tutorial, I will guide you through the process of creating a robust wireless communication system using the ESP-NOW platform with four ESP32 boards. You'll learn how to set up a network that operates entirely without the internet.
#include <Wire.h>
#include <TM1637Display.h>
#include <Keypad.h>
#include <esp_now.h>
#include <WiFi.h>
// TM1637 Setup
#define CLK 4
#define DIO 5
TM1637Display tm1637(CLK, DIO);
@cyrusmeh
cyrusmeh / Distance Measurement Using HC-SR04 Ultrasonic Sensor & NodeMCU | Step-by-Step Guide.ino
Created February 28, 2025 20:44
In this project, we dive into the fascinating world of distance measurement using the HC-SR04 ultrasonic sensor and NodeMCU.
#include <TM1637Display.h>
// Define the pins for the TM1637 display
#define CLK 14 // D5
#define DIO 12 // D6
// Create an object for the TM1637 display
TM1637Display display(CLK, DIO);
// Define the pins for the ultrasonic sensor
@cyrusmeh
cyrusmeh / ESP NOW Tutorial: Build a Wireless Communication System with Arduino IDE and ESP32 board 1.ino
Created February 27, 2025 00:56
In this comprehensive tutorial, I’ll guide you through creating a wireless communication system using the ESP NOW platform with three ESP32 boards.
#include <Wire.h>
#include <TM1637Display.h>
#include <Keypad.h>
#include <esp_now.h>
#include <WiFi.h>
// TM1637 Setup
#define CLK 4
#define DIO 5
TM1637Display tm1637(CLK, DIO);
@cyrusmeh
cyrusmeh / ESP-NOW with ESP32: Build a Wireless Communication System Easily!- board 1.ino
Created February 24, 2025 19:18
In this project, we dive into the world of wireless communication using the ESP-NOW platform with ESP32 boards. You'll learn how to create a seamless communication system without the need for the internet. We’ll guide you through the process of setting up two ESP32 boards, each equipped with a 4-digit display module and a keypad.
#include <Wire.h>
#include <TM1637Display.h>
#include <Keypad.h>
#include <esp_now.h>
#include <WiFi.h>
// TM1637 Setup
#define CLK 4
#define DIO 5
TM1637Display tm1637(CLK, DIO);
@cyrusmeh
cyrusmeh / Build a Force Measurement System with Arduino Nano & HX711: Complete Tutorial.ino
Created February 13, 2025 21:52
In this comprehensive tutorial, we will guide you through the process of building a force measurement system using an Arduino Nano, HX711 load cell amplifier, and a load cell sensor. Learn how to measure force or weight effectively, with applications in industrial measurement, automation, and smart weighing systems.
#include "HX711.h"
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Pushbutton.h>
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 11;
const int LOADCELL_SCK_PIN = 12;
@cyrusmeh
cyrusmeh / Building a Pressure Monitoring & Control System for Windshield Washer Nozzles.ino
Created February 10, 2025 16:43
In this project, we’ll construct a specialized pressure monitoring and control system designed for testing windshield washer nozzles. This innovative system simulates and regulates the pressure from the spray pump, ensuring optimal performance for windshield cleaning systems. Whether you're evaluating the efficiency of your car’s washer nozzle o…
#include "HX711.h"
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Pushbutton.h>
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 11;
const int LOADCELL_SCK_PIN = 12;
@cyrusmeh
cyrusmeh / Build a QR Code Scanner with ESP32 CAM & OpenCV in Python.ino
Created February 7, 2025 13:14
Unlock the potential of your ESP32 CAM module by creating a powerful QR code scanner! In this project, we'll guide you through the process of developing a QR code reader using the ESP32 CAM module combined with the OpenCV Python library. Discover how to set up your device, write the necessary Python code, and scan QR codes effortlessly. This pro…
#include <WebServer.h>
#include <WiFi.h>
#include <esp32cam.h>
const char* WIFI_SSID = "POCOX3GT";
const char* WIFI_PASS = "q2fghwvray2023rty";
WebServer server(80);
@cyrusmeh
cyrusmeh / Automatic Object Counting System with ESP32 Camera & OpenCV | Industrial Product Counter Tutorial.ino
Created February 6, 2025 22:01
In this comprehensive tutorial, we will guide you through the process of creating an Industrial Product Counter using the ESP32 CAM Module and OpenCV. Learn how to design an automatic object counting system that leverages the power of Python and the ESP32-CAM's capabilities.
#include <WebServer.h>
#include <WiFi.h>
#include <esp32cam.h>
const char* WIFI_SSID = "POCOX3GT";
const char* WIFI_PASS = "q2fghwvray2023rty";
WebServer server(80);
@cyrusmeh
cyrusmeh / Color Detection & Tracking with ESP32 CAM Module & OpenCV: A Comprehensive Guide 1.ino
Created February 2, 2025 19:19
In this project, we explore Color Detection and Tracking using the ESP32 CAM Module and OpenCV. Watch as we demonstrate how to detect specific colors during live video streaming, a crucial technique for object recognition and widely used in image editing and drawing applications.
#include <WebServer.h>
#include <WiFi.h>
#include <esp32cam.h>
const char* WIFI_SSID = "POCOX3GT";
const char* WIFI_PASS = "q2fghwvray2023rty";
WebServer server(80);
@cyrusmeh
cyrusmeh / ESP32 CAM Object Detection with OpenCV – Step-by-Step Guide 1.ino
Created January 31, 2025 12:50
The ESP32 CAM is a powerful, low-cost camera module that enables you to capture images and stream video effortlessly. When paired with OpenCV, a leading open-source computer vision library, you can create an efficient object detection system right at your fingertips.
#include <WebServer.h>
#include <WiFi.h>
#include <esp32cam.h>
//THIS PROGRAM SENDS IMAGE IF IT IS PLACED IN WEB IP, BUT IF IT IS PLACED IN PYTHON IT SENDS VIDEO THROUGH THE ITERATIONS. . . (IF IT WORKS IN PYTHON)
const char* WIFI_SSID = "POCOX3GT";
const char* WIFI_PASS = "q2fghwvray2023rty";
WebServer server(80); //server on port 80