Skip to content

This project can be used for industrial purpose in order to allow relays activation following user payment. An additional SYSTEM board is used in order to monitor the environment and interact with the admin (using Telegram for push notification and Google Sheet for data acquisition).

Notifications You must be signed in to change notification settings

MamaxeFinders/CarWash_IHM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The whole operation is devided into the following module.

HARDWARE SETUP

SYSTEM MODULE

The system module utilizes the following components:

  1. ESP32 board
  2. MAX6675 thermocouple module
  3. Four 5V LEDs is connected with the ESP32. The number of LEDs may vary depending on the number of CAISSE module.

ESP32 board pinout diagram: ESP32 pinout

MAX6675 thermocouple module pinout: MAX6675 thermocouple module

The MAX6675 thermocouple is connecteded to the ESP32 as follorwing:

  1. S0 pin to GPIO27
  2. CS pin to GPIO14
  3. SCK pin to GPIO12

The four LEDs indicating CAISSE module with be connected with GPIO 19, 18 ,5, 17 of the ESP32

MAX6675 thermocoupleto ESP32

CAISSE MODULE

The caisse module utilizes the following components:

  1. ESP32 board
  2. SW-420 vibration-sensor-module
  3. 2x16 LCD I2C display
  4. 8 channel 5V relay module
  5. A custom made PCB board (See GERBERS file)

SW-420 vibration sensor module pinout diagram: SW-420 vibration-sensor-module pinout

2x16 LCD I2C display module pinout: 2x16 LCD I2C display pinout

8 channel 5V relay module pinout: 8 channel 5V relay pinout

The SW-420 vibration-sensor-module is connecteded to the ESP32 as follorwing:

  1. D0 pin to GPIO13

The 2x16 LCD I2C display module is connecteded to the ESP32 as follorwing:

  1. SCL pin to GPIO22
  2. SDA pin to GPIO21

The 8 channel 5V relay module is connecteded to the ESP32 as follorwing:

  1. Relay 1 input pin to GPIO19
  2. Relay 2 input pin to GPIO18
  3. Relay 3 input pin to GPIO5
  4. Relay 4 input pin to GPIO17
  5. Relay 5 input pin to GPIO16
  6. Relay 6 input pin to GPIO4
  7. Relay 7 input pin to GPIO0
  8. Relay 8 input pin to GPIO15

CAISSE module pcb wiring layout

CAISSE module pcb wiring CAISSE module pcb schematics

GERBER FILE

You can find the caisse-module-gerber files here

SOFTWARE SETUP

ARDUINO IDE

Download and install the arduino ide by following this link ARDUINO IDE

ESP32 Add-on

Install ESP32 board add-on in Arduino IDE by following this link ESP32 ADD-ON

Module SYSTEM

WIFI manager library

The WiFiManager library for ESP32 provides an easy way to configure and manage WiFi connections in your projects. It offers features such as:

  • Captive portal for setting WiFi credentials
  • Ability to store WiFi credentials in Non-Volatile Memory (NVM)
  • Option to automatically connect to a previously saved network
  • Option to have multiple access points with custom settings
  • Support for custom parameters in the configuration portal To use the library, you can follow this tutorial to setup and use the wifi-manager library. Then, you can initialize the WiFiManager object and use its functions to set up and control the WiFi connection.

HTTPClient library

Install following this link HTTPClient

Thermocouple library

Install MAX6675 library from the arduino library manager

Universal Telegram Bot library

Install telegram bot library in Arduino IDE by following this link UniversalTelegramBot

Setup wifi as soft access point

Input your: ssid, password, channel, hide_SSID=true/false, max_connection

WiFi.softAP("SYSTEM_CAISSE", "123456789", CHANNEL, false, NUMSLAVES);

Setup the google-script-id

String GOOGLE_SCRIPT_ID = "input your google-script-id here" ;

Initialize Telegram BOT

String BOTtoken = "input your telegram bot-token here";

Compile and upload the code

Finally you can compile and upload the system-module code to your system module

Module CAISSE

LiquidCrystal_I2C library

Install LiquidCrystal_I2C library from the arduino library manager

Compile and upload the code

Finally you can compile and upload the caisse-module code to your system module

INITIALISATION

SYSTEM INITIALISATION

  • Turn on module SYSTEM by powering it to 5V DC.
    • Warning: Providing more than 5V will damage the module
  • Use your mobile device in order to connect to the ESP32 WiFi. Select SYSTEM_LAVAGE and connect using the password (123456789 by default).
  • Wait for a windows to pop up. It will display the available networks found by the module. Click to the router you wish the module needs to connect to internet. Enter the password and click SAVE.
  • Wait until the page disappear. If you go back to your WiFi settings you should now see an available SSID called SYSTEM_CAISSE which confirm the module is properly set (DO NOT CONNECT TO THIS NEW NETWORK).

CAISSE INITIALISATION

  • Once the SYSTEM is connected, you can initiate the module CAISSE.
  • As there can be multiple CAISSE, use the micro switch in order to address the module from 1 to 7 using the binary switches (we only used p to 4 CAISSEs here).
  • Then power it up and wait for the LED to turn on. If the module did not manage to connect to SYSTEM, the LED will blink 3 time before it restarts.
  • An isolate mode is available if all switches are put to zero. The module CAISSE will start without connecting to the SYSTEM and can be used for test purpose.
  • Once the module is connected and you can see the message BONJOUR on the LCD screen, turn OFF the module SYSTEM and ON again. Wait until the LED linked to the CAISSE id turns ON. This means both modules are ready to communicate as their mac addresses have been saved to both memories.
  • Perform the same process as 2 for all other module CAISSE.

About

This project can be used for industrial purpose in order to allow relays activation following user payment. An additional SYSTEM board is used in order to monitor the environment and interact with the admin (using Telegram for push notification and Google Sheet for data acquisition).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages