V.O. 15/04/2024
rev 02/11/2024
Test Module ESP32
Wroom ESP 32
* Application
ESP32 : 5 charts + 4 gauges + 1 slider (30/01/2024)
* Updated Nov 2024 ( 02/11/2024
correctif slider OK, et reseau freebox On_AIR2024 ..OK)
* Tests librairie DASH (avec EPS32 rouge wroom32 devkit V1 30 pins)
Hardware
:
ESP32 + BMP05 + AM2302 (=DHT11) +
DS18B20 + OLED LCD + MCP23017+ UART + WIFI
Description Module ESP32 2x15 pins
Connection sur reseau Smartphone Redminote 11
Point d'acces Wifi_Mobile
Hot spot portable
Appareils connectés : 2
ASUS_CM6431 ....20:68:9d:04:2b:cf
esp32-5472F4 .......7c:9e:bd:54:72:f4
![]() |
Reseau activé sur PC ASUS CM6341 WIN10 SSID : Redmi Note 11 Protocole : Wi-Fi 4 (802.11n) Type de sécurité : WPA2 - Personnel Bande passante réseau : 2,4 GHz Canal réseau : 2 Adresse IPv4 : 192.168.15.35 Serveurs DNS IPv4 : 212.27.40.241 212.27.40.240 Fabricant : Ralink Technology, Corp. Description : 802.11n Wireless LAN Card Version du pilote : 5.0.57.1 Adresse physique (MAC) : 20-68-9D-04-2B-CF |
PC : scanner wifi |
propriété : Redmi Note 11 |
Application ESP32 : 5 charts + 4
gauges + 1 slider (30/01/2024)
Affichage sur page web et Coolterminal :
CoolTerm peut AUSSI tracer l'evolution de datas !....
log
terminal
ets
Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
PWM test sur led 15
ESP32_Bleu_5_Charts_4_instruments_2024-02 version:2024-0304
Board type definition : ESP32 Dev Module
ESP32 Vroom 32 DevkitV1 30 pins (Bleu sur COM 11))
with DS18B20,BMP085,Cpt,AM2302 Temp,Humidity,OLED,PWM
Led Rouge sur D19 Led verte sur D18 Led Bleue sur D15
DHT11-AM2302 sur D5
Sonde temper.OWS DS18B20 AA56C13 81401 sur D4
I2C Bus sur D21 (SDA) et D22 (SCL)
BMP085 + OLED SSD1306 sur le bus I2C
Init I2C1 bus
Recherche devices presents sur le bus I2C SCL=22 SDA=21
I2C device found at address 0x3C OLED SSD1306
I2C device found at address 0x77 BMP 085 Pression
Trouve 2 devices sur le Bus I2C
.. Fin de test I2C bus
Sensors begin
Compteur= 0
Press. 987 mBar
Problemo BMPOK bad!
Scan devices on OWS BUS
i= 0
ROM = 0x28, 0xAA, 0x56, 0xC1, 0x38, 0x14, 0x01, 0x40
Chip = DS18B20
DS18B20 = 21.25
DHT11 Temp.: 21.80
Humid : 58.70
SSD1306 allocation OK
init Wifi
Connecting
SSID: Redmi Note 11
PWD: k9m5jfurubn
Connecting to WiFi ...
192.168.15.145
[*] Network information for Redmi Note 11
[+] BSSID : 4E:99:E7:D1:A9:11
[+] Gateway IP : 192.168.15.243
[+] Subnet Mask : 255.255.255.0
[+] RSSI : -35 dB
[+] ESP32 IP : 192.168.15.145
WiFi mac@ : 7C:9E:BD:54:72:F4
SPIFFS mounted successfully
Get and print time from ntpServer
Friday, May 31 2024 15:41:33
Day of week: Friday
Month: May
Day of Month: 31
Year: 2024
Hour: 15
Minute: 41
Second: 33
init Websocket
Heure: 15:41 Cpt= 0 , BMP085 P. 987 mBar , Humid: 58.80,Temp: 21.90,DS18B20.0
= 21.25 C , Slider = 0 .
Cpt= 1 , BMP085 P. 987 mBar , Humid: 58.80,Temp: 21.90,DS18B20.0
= 21.25 C , Slider = 0 .
Cpt= 2 , BMP085 P. 987 mBar , Humid: 58.80,Temp: 21.90,DS18B20.0
= 21.25 C , Slider = 0 .
WebSocket client #1 connected from 192.168.15.35
Cpt= 3 , BMP085 P. 987 mBar , Humid: 58.80,Temp: 21.90,DS18B20.0
= 21.25 C , Slider = 0 .
Cpt= 4 , BMP085 P. 987 mBar , Humid: 58.80,Temp: 21.90,DS18B20.0
= 21.25 C , Slider = 0 .
deplacement
slider
WebSocket
client #1 EVT Data .<... supprimé 01/06
Msg :1s21> ......Problemo
214 ....Problemo
21 ....Problemo
......etc ...
Cpt= 7 , BMP085 P. 987 mBar , Humid: 58.80,Temp: 21.90,DS18B20.0
= 21.25 C , Slider = 961 .
WebSocket
client #1 EVT Data <.... supprimé 01/06
Msg :1s100....Problemo
1023....Problemo
100....Problemo
Heure: 15:42 Cpt= 8 , BMP085 P. 987 mBar , Humid: 58.80,Temp: 21.90,DS18B20.0
= 21.25 C , Slider = 1023 WebSocket client #1
EVT Data
Msg :1s0
0
0
Cpt= 9 , BMP085 P. 987 mBar , Humid: 58.80,Temp: 21.90,DS18B20.0
= 21.25 C , Slider =0
//
affichage schema jpeg !
WebSocket client #1 disconnected
WebSocket client #2 connected from 192.168.15.35
0 .
Nota : Problemo de non retour position Slider ..vers ESP
......
résolu ! ....gràce à une aide bienvenue sur le Forum RNTlab.com
il subsiste cependant un léger inconvenient :
message (interne) websocket , en rouge, se rajoute ...lors de l'action
sur le slider !..
provient de WebSocket client #1 EVT Data
-----------------------------------------------------------------------------------------------------------------------------------------------------
Cpt= 1 , BMP085
P. 991 mBar , Humid: 50.70,Temp: 18.50,DS18B20.0 = 18.44 C ,
Slider = 0 .
Msg :1s22
225
22
Cpt= 2 , BMP085
P. 991 mBar , Humid: 50.70,Temp: 18.50,DS18B20.0 = 18.31 C , Slider
= 225
.
Msg :1s52
531
52
Cpt= 3 , BMP085
P. 991 mBar , Humid: 51.40,Temp: 19.20,DS18B20.0 = 18.38 C , Slider
= 531 .
Cpt= 4 , BMP085 P. 991 mBar , Humid: 50.80,Temp: 18.50,DS18B20.0
= 18.31 C , Slider = 531 .
-----------------------------------------------------------------------------------------------------------------------------------------------------
https://github.com/paulfjujo/ESP32-Charts-Gauge-Slider
https://github.com/paulfjujo/ESP32-Charts-Gauge-Slider/blob/main/PB_socket_Msg_code.jpg
https://rntlab.com/question/how-to-cancel-websocket-message/
A
suivrre .. ici
SOFTWARE
:
directory : ESP32_Rouge_WROOM32_2x15pins_5_Charts_4_gauges_1slider_2024-053
avec un sous directtory \data !
une fois compilé le fichier *.ino,
le terminal YAT (port COM) doit etre préalablement désactivé !
, car utilisé par Arduino.IDE
charger le resultat (L'application) dans l' ESP32
puis, ensuite , charger (les fichiers ) contenus dans data !
puis reset ou ré-activation du port COM terminal pour lancer l'application
projet
complet :
Zip avec datas:
ESP32_Rouge_WROOM32_2x15pins_5_Charts_4_gauges_1slider_2024-053.zip
ESP32_Rouge_WROOM32_2x15pins_5_Charts_4_gauges_1slider_2024-053.ino
_ESP32_Bleu_WROOM32_2x15pins_5_Charts_4_gauges_1slider_2024-06.zip
_ESP32_Bleu_WROOM32_2x15pins_5_Charts_4_gauges_1slider_2024-06.ino
Affichage page web correspondante
Nota:
![]() |
Connection
sur reseau Smartphone Redminote 11 Point d'acces Wifi_Mobile Hot spot portable : Appareils connectés : 2 ASUS_CM6431 20:68:9d:04:2b:cf esp32-5472F4.... 7c:9e:bd:54:72:f4 ....ROUGE ..........acces page web, avec 192.168.15.145 mais Connection sur reseau Smartphone Redminote 11 Point d'acces Wifi_Mobile Hot spot portable : Appareils connectés : 2 ASUS_CM6431 20:68:9d:04:2b:cf esp32-8DC994.... 08:3a:f2:8d:c9:94.... BLEU ............acces page web, avec 192.168.15.30 ============================== Phone S62 ESP sur PC |
sur mobile Redminote 11 |
adresse acces differente suivant le module utilisé... |
.....
Revu Nov 2024 ..
modif SSID reseau mobile :
RedmiNote11, PWD inchangé
modif pour : suppression Msg si modif .Slider :
void handleWebSocketMessage(void
*arg, uint8_t *data, size_t len)
{
AwsFrameInfo *info = (AwsFrameInfo*)arg;
if (info->final && info->index == 0 && info->len
== len && info->opcode == WS_TEXT)
{
data[len] = 0;
message = (char*)data;
// 01-11-2024
// Serial.print("Msg :"); Serial.println(message);
if (message.indexOf("1s") >= 0) // pwmSlider1
{
sliderValue1 = message.substring(2);
dutyCycle1 = map(sliderValue1.toInt(), 0, 100, 0, 1023);
//
Serial.println(dutyCycle1);
// Serial.println( sliderValue1);
}
}
}
Reactivation NTP :
Get and print time from ntpServer
Friday,
November 01 2024 19:39:49
Day of week: Friday
Month: November
Day of Month: 01
Year: 2024
Hour: 19
Minute: 39
Second: 49
init Websocket
Heure: 19:39 Cpt= 0 , BMP085 P. 997 mBar , Humid: 74.40,Temp: 22.30,DS18B20.0
= 21.00 C , Slider = 0 .
WebSocket client #1 connected from 192.168.251.35
Cpt= 1 , BMP085 P. 997 mBar , Humid: ??? ,Temp: ??? ,DS18B20.0 =
21.00 C , Slider = 0 .
Cpt= 2 , BMP085 P. 997 mBar , Humid: 76.00,Temp: 21.80,DS18B20.0
= 21.25 C , Slider = 0 .
Cpt= 3 , BMP085 P. 997 mBar , Humid: 76.80,Temp: 21.80,DS18B20.0
= 21.00 C , Slider = 0 .
Updated
Software
sur reseau Mobile Redmi Note 11
_ESP32_Rouge_WROOM32_2x15pins_5_Charts_4_gauges_1slider_2024-11.zip
_ESP32_Rouge_WROOM32_2x15pins_5_Charts_4_gauges_1slider_2024-11.ino
compilation_2024-1101.log
sur reseau ON_AIR2024
_ESP32_Rouge_WROOM32_2x15pins_5_Charts_4_gauges_1slider_2024-1102.zip