Esp8266 + hm10 + dht22

i try the esp8266 + hm10 + dht22 combo, but i cant get any messages from hm10, the dht22 works great, the pins are correct, do i missing something? i need flash hm10 with something or just connect the pins and it should work?

hmm, you need to follow and respect the indications of the guide

i read the guide, the differences are : the nodemcu is v3, i connected the hm10 directly on nodemcu , and i bought the hm10 in my city but the model seems to be the same from bangood. the serial monitor read is this:

Sending Hum to MQTT
54.30
Sending Temp to MQTT
25.70
Uptime (s)
3000
Remaining memory
38192
RSSI
-30
SSID
my SSID
Activated modules
BT

Did you checked your hm10 firmware version?

no, what firm need to be? and how can i check? :hugs:

From the guide ;-):

the HM10/11 firmware version must be >= v601

how can you check, with a ftdi USB/TTL, here is the HM10 guide:

You can try also to comment this line,
This will enable to be compatible with some previous version of HM10 nevertheless you will not be able to read mi flora sensors, only to detect beacons

comment line didnt work :frowning:

hmm, best thing you can do now is to connect your hm10 to an USB/TTL FTDI and familiarize yourself with AT commands and the hm10 update process

I have a problem with the ESP8266 and HM10 as well. ESP8266 is flashed with the 0.93 firmware (nodemcuv2-ble-firmware.bin) over NodeMCU-PyFlasher) and the HM10 with 707 firmware. I get no BTtoMQTT messages, even after waiting a while. HM10 is connected with D6 to RX and D7 to TX.

I can see the ESP8266 online (LWT), and firmware (v0.9.3), and SYStoMQTT message (Uptime, freemem, etc, modules BTHAdiscovery). Can anyone tell mw what I did wrong or give a solution?

Hello,

Could you indicate the bin file name that you are using ?

I wrote it in the post: nodemcuv2-ble-firmware.bin

Oups sorry, did you connected the serial monitor to see what the traces are saying ?

I have not tried that yet, you mean connect the hm10 with an adapter and read it with arduino, right? I can try this weekend, not home now. Thanks in advance for the help

Just read the serial output from arduino ide or another serial tool

I connected the HM-10 to Arduino and can talk to it, AT gives a response, OK. Where to go from there? Nothing else is showing up when I just connect the HM-10.

Thanks

Hello,

And if you read the serial output from OpenMQTTGateway with the HM10 connected to the nodemcu?

To HM-10 led is blinking and I can connect the BLE scanner to it (LED is then red, no blinking). Node connects to MQTT, but only topics are LWT, version and SYStoMQTT. d6 to rxd, d7 to txd)

In Arduino the same:

Uptime (s)
120
{“uptime”:120,“freeMem”:38040,“rssi”:-52,“SSID”:“VFNL-C9D1E0_ub”,“ip”:“10.0.0.55”,“mac”:“EC:FA:BC:5E:DA:12”,“modules”:“BTHADiscovery”}Pub json into:
home/OpenMQTT/SYStoMQTT
{“uptime”:120,“freeMem”:38040,“rssi”:-52,“SSID”:“VFNL-C9D1E0_ub”,“ip”:“10.0.0.55”,“mac”:“EC:FA:BC:5E:DA:12”,“modules”:“BTHADiscovery”}
Uptime (s)
240
{“uptime”:240,“freeMem”:38040,“rssi”:-50,“SSID”:“VFNL-C9D1E0_ub”,“ip”:“10.0.0.55”,“mac”:“EC:FA:BC:5E:DA:12”,“modules”:“BTHADiscovery”}Pub json into:
home/OpenMQTT/SYStoMQTT
{“uptime”:240,“freeMem”:38040,“rssi”:-50,“SSID”:“VFNL-C9D1E0_ub”,“ip”:“10.0.0.55”,“mac”:“EC:FA:BC:5E:DA:12”,“modules”:“BTHADiscovery”}

BLE Scanner finds 6 devices

Could you post the begining of the serial monitor. It will say if it connects successfuly to hm10.

Disconnected gnd and VCC and reconnected them. This is the first line of the serial monitor:

Uptime (s)
9840
{“uptime”:9840,“freeMem”:37872,“rssi”:-63,“SSID”:“VFNL-C9D1E0_ub”,“ip”:“10.0.0.55”,“mac”:“EC:FA:BC:5E:DA:12”,“modules”:“BTHADiscovery”}Pub json into:
home/OpenMQTT/SYStoMQTT
{“uptime”:9840,“freeMem”:37872,“rssi”:-63,“SSID”:“VFNL-C9D1E0_ub”,“ip”:“10.0.0.55”,“mac”:“EC:FA:BC:5E:DA:12”,“modules”:“BTHADiscovery”}