Skip to content

aginies/domotique

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

180 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

door

Control a Door

  • Get info on the status of a door, open or closed using an external LED (optionnal)
  • Control using a Wifi Access Point the door with a button on a web server
  • Display all relevant informations on a 0.96" oled screen (optionnal)
  • Use RFID to open the door (optionnal), and program new card
  • Live log available
  • Files management
  • Configuration using a web interface

image

pool

Control a Pool shutter

  • Get info on the status of a shutter, open or closed using external LED (optionnal)
  • Control using a Wifi Access Point the curtain with Open / Close / Emergency Stop buttons on a web server
  • Display all relevant informations on a 0.96" oled screen (optionnal)
  • Live log available
  • Configuration the timing and other parameters through a web interface
  • Files management
  • Udpate support an update.bin file

image image image image image

parking_detection

Get a flash light which indicate the distance between the wall and the car

  • green to red between 150cm - 41cm
  • blink blue between 40cm - 31cm
  • blink purple between 30cm - 21cm
  • blink red between 20cm - 11cm
  • blink white between 10 - 6 cm
  • Off under 6cm

Hardware:

  • hcsr-04 ultra sonic sensor

common

All libs/modules needed to get stuff working.

Common Features:

  • Connect to an existing Wifi, or Create a dedicated WIFI Access Point
  • Debug easily using color (internal LED)
  • All Variables you need to adapt like PIN are in config_var.py

Hardware

  • Develop on an ESP32-S3-WROOM N16R8. Should work on an ESP32 version but the script needs to be adapted for PIN, and maybe disable the internal LED. Be sure to build micropython for N16R8 to use all storage and SPIRAM available. See above in external link.
  • Use LED (5V) to get status of the door
  • a Resistance to protect the LED (~270ohms)
  • 5V or 3.3V relay to control motors
  • 0.96" Oled I2C screen or any other I2C. Adapt to your hardware
  • MC-38 magnetic captor, or any other similar stuff to get status of the door
  • hcsr-04 ultra sonic sensor (parking_detection)
  • mfrc522 RFID for card auth

Installation

``make Creating a temp_door_domotic dir and copy files in

Create a temporary directory to stage the files

'../common/domo_wifi.py' -> 'temp_door_domotic/domo_wifi.py' '../common/save_config.py' -> 'temp_door_domotic/save_config.py' '../common/domo_microdot.py' -> 'temp_door_domotic/domo_microdot.py' '../common/domo_utils.py' -> 'temp_door_domotic/domo_utils.py' '../common/oled_ssd1306.py' -> 'temp_door_domotic/oled_ssd1306.py' .... Packed 23 files into update.bin (SHA256 included). update.bin created successfully. ``

The update.bin can be used to update a running version, just upload the file on the ESP32, it will keep all existing configuration if compatible.

make copy Starting upload to /dev/ttyACM0 - Copying temp_door_domotic/domo_wifi.py to / ...

Debug LED color

At start:

  • 3 fast blink this is OK
  • 5 slow blink at start something is wrong

Color information

  • blue: setup an WIFI Access Point
  • white: Connect to an existing Wifi
  • green: Init the OLED screen
  • pink: Control the 5V Relay
  • purple: Open a Socket

After start, in case of error, the assigned color will blink.

Software

Optionnal:

Devel

Any contribution is welcome. I am currently experimenting and testing lot of domotics stuff.

image

External website

Packages

 
 
 

Contributors