Closed clabnet closed 3 years ago
Not sure of your pin definition is the GPIO pin of the pin number. Also I'm not sure you can use any GPIO pin for serial. This worked for me
/* This example shows how to connect to an EBYTE transceiver using an ESP8266 This code for for the sender connections
*/
/ WARNING: IF USING AN ESP8266 DO NOT USE THE PIN NUMBERS PRINTED ON THE BOARD YOU MUST USE THE ACTUAL GPIO NUMBER /
// i recommend putting this code in a .h file and including it // from both the receiver and sender modules
// these are just dummy variables, replace with your own struct DATA { unsigned long Count; int Bits; float Volts; float Amps;
};
int Chan; DATA MyData; int i;
// you will need to define the pins to create the serial port SoftwareSerial ESerial(PIN_RX, PIN_TX);
// create the transceiver object, passing in the serial and pins EBYTE Transceiver(&ESerial, PIN_M0, PIN_M1, PIN_AX);
My initial response had a typo but has been updated. Make sure MCU Rx connects to EBTYE Tx and MCU Tx connects to EBTYE Rx.
Hi, I have two NodeMCU V2 and a pair of E32868TD. Using this library I can't connect correctly the E32 with MCU.
There are the connections
I have tried much many options, first using assigning -1 to M0, M1, and AUX. Result : continuous reboot of MCU. It seems the -1 don't work.
The last I used complete GPIO assigning, and also no working.
This is my entire receiver code, it is the same as is your sample, plus led :
The result is always
It seems doesn't have the connection between NODEMCU and E32. The RX is powered by 3.3 V, the common as the same as ground of MCU.
I have tested the two NodeMCU and two E32, same issue. I have changed a lot of wires and I have tested all what I could. Any chance to run ?
Thanks, regards
Claudio