-->
Page 1 of 1

Wemos D1 Mini / BLE HM-10 / Software Serial RX TX

PostPosted: Thu Sep 21, 2017 5:18 am
by Jens001
Hi everybody,

I am in the very beginning with my first projects about ESP8266. Currently starting with a project - "presence recognition" via bluetooth. I would like to setup a Wemos D1 mini (V2.2) with HM-10 in order to find out if certain Siemens Bluetooth Tags are present or not.

The HM-10 is connected to the Wemos and the LED is blinking Red. So far I have it connected to Pin 5 and 6 which somehow works - but should not be correct. The serial monitor shows first BLE devices in the near.

My problem is, that I do not know on how to connect the HM-10 with the Wemos in the right way.

Following soruce code is used to connect both devices

#include <SPI.h>
#include <SoftwareSerial.h>
// Pins fuer Softserial definieren
SoftwareSerial bluetooth(5, 6); // TX, RX


As read in other internet sources, it must be connected as follows

Wemos TX <-> HM-10 RX
Wemos RX <-> HM-10 TX

But how can I call the Software Serial with TX and RX in the right way - what are the PIN numbers ?

Does somebody know on how to set this up correctly? And why is the HM-10 seemingly not getting a proper connection - since the red LED is blinking.

I would be happy about any further hint - thanks in advance.

Jens

Re: Wemos D1 Mini / BLE HM-10 / Software Serial RX TX

PostPosted: Fri Sep 22, 2017 1:30 pm
by gdsports
Beware pins D5 and D6 are not the same as ESP8266 GPIO#5 and GPIO#6. See the link below to translate board labels to ESP8266 GPIO numbers.

https://wiki.wemos.cc/products:d1:d1_mini#pin