Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Neutrino
Published © CC BY-NC-SA

Smart Extension Box With ESP-NOW Protocol

Controlling home appliance with gesture detection watch and custom build smart extension box!

IntermediateFull instructions providedOver 2 days791

Things used in this project

Hardware components

ESP8266 ESP-12E
Espressif ESP8266 ESP-12E
×1
SparkFun FTDI Basic Breakout - 3.3V
SparkFun FTDI Basic Breakout - 3.3V
×1
Resistor 10k ohm
Resistor 10k ohm
×1
1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
×1
NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1
SparkFun Triple Axis Accelerometer and Gyro Breakout - MPU-6050
SparkFun Triple Axis Accelerometer and Gyro Breakout - MPU-6050
×1

Software apps and online services

Arduino IDE
Arduino IDE
VS Code
Microsoft VS Code
PlatformIO IDE
PlatformIO IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
Solder Flux, Soldering
Solder Flux, Soldering
Mastech MS8217 Autorange Digital Multimeter
Digilent Mastech MS8217 Autorange Digital Multimeter

Story

Read more

Schematics

circuit diagram

Circuit diagram for the smart extension box

Code

Esp_now_reciever.ino

Arduino
Error opening file.

Esp_now_Sender.ino

Arduino
Error opening file.

Testing_Relay.ino

Arduino
Error opening file.

Esp_now_reciever.ino

Arduino
Error opening file.

Code snippet #1

Plain text
//Reset the NodeMCU/esp8266 once you open the serial monitor

#include <ESP8266WiFi.h>
#include<esp8266wifi.h>

void setup(){
  Serial.begin(115200);
  Serial.println();
  Serial.print("ESP8266 Board MAC Address:  ");
  Serial.println(WiFi.macAddress());
}
void loop(){}

Code snippet #3

Plain text
typedef struct message {<br>    int relay1;
    int relay2;
    int relay3;
    int relay4;
} message;

Code snippet #5

Plain text
typedef struct struct_message {<br>    int relay1;
    int relay2;
    int relay3;
    int relay4;
} struct_message;

Github

https://github.com/Neutrino-1/Gesture_Detection_Esp9266

Credits

Neutrino
14 projects • 40 followers
Electrical Engineer and a programming hobbyist. I love to build exciting stuff!
Contact

Comments

Please log in or sign up to comment.