Skip to content

Firmware for OBI's WiFi Socket Version 2 with ESP8266 WROOM-02

License

Notifications You must be signed in to change notification settings

MuellerA/EspObiSocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firmware for OBI's WIFI Socket Version 2 with ESP8266 WROOM-02

Gehaeuse

The WIFI Socket is sold by OBI for 9.99EUR (or two for 17.99EUR) in April 2019

This firmware provides a simple web interface to controll the WiFi Socket.
There are several other projects around which also free the socket from Chinese servers and integrate it in a smart home environment or connect it to an MQTT server. If you want to do this you better look there.

The usual warnings

DO NOT open the case unless you know what you are doing. 240V can kill you.
NEVER connect the socket to mains while open.
DO NOT expose the socket to the internet. The socket stores your WiFi credentials and supports remote updates.

Features

  • No external Server needed - No App needed - Managed from any Web Browser
  • Manual and time triggered On/Off
  • Uses NTP for time synchronization
  • Converts from UTC to local time and DST
  • OTA update

Used Libraries

Prepare the Hardware

  1. To open the case you need a 3 wing screw driver. The screws inside holding the PCB are cross head screws.
  2. Attach the wires to the PCB as shown in the image below (click to enlage):
    • Red: 5V (the relay won't work with 3.3V)
    • Black: GND
    • Yellow: GPIO0, must be pulled to GND on RESET when flashing
    • Green: Rx, 3.3V level, connect to Tx of the serial adapter
    • Blue: Tx, 3.3V level, connect to Rx of the serial adapter

upper side lower side

Prepare the Software

  1. Open the Arduino IDE
  2. Install the required libraries
  3. Check the Board Settings in the Tools menu
  4. Modify the password.h file, the password is used in AP mode and as OTA update password
  5. Load the EspObiSocket.ino sketch
  6. Connect GPIO0 to GND and press the Reset button
  7. Flash the ESP8266 using Arduino IDE

First Start

  1. Open the Serial Monitor in Arduino IDE
  2. Power on / reset the WiFi Socket
  3. Connect to the Network with the SSID "WiFiSocket-xxxxxx" and the password specified in the password.h file (both are shown in the Serial Monitor)
  4. Open the web page "http://192.168.4.1" (or sometimes 192.168.244.1)
  5. On the Settings page enter the credentials (SSID and PSK) of your WiFi network and press "save"
  6. The WiFi Socket will now connect to your network
  7. Check your router for the network address of the WiFi Socket and open the settings page in the browser to check the other parameters
  8. At next power on the WiFi Socket will remember the settings

Usage of the WiFi Socket

  • When switching to ON or OFF the "Time Controlled" mode is disabled.

Using the hardware buttons

  • Reset: Restart the WiFi Socket.
  • On/Off: Rotate from OFF to "Time Controlled" to ON and back to OFF.

LEDs

  • Red OFF: Socket has no power
  • Red ON: Socket has power
  • Green OFF: manual mode
  • Green ON: Time Controlled mode
  • Green blink: Time Controlled mode Error, e.g. no NTP server found

UI Screenshots

home settings

About

Firmware for OBI's WiFi Socket Version 2 with ESP8266 WROOM-02

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published