Go Down

Topic: E32-TTL-100 - How to use the RF module? (Read 4280 times) previous topic - next topic

afkiss

May 02, 2018, 09:33 pm Last Edit: May 03, 2018, 05:49 am by afkiss
Hi,
I know, there are several articles on how to get this type of RF module work, and some of them seems to be really helpful, but after a week of searching and trying all the codes I found, I can say, that I wasn't able to use the modules with Arduino. The only thing I know, that they're working, but only with their USB to TTL converters. So if you have any experience, please share it with me, Thanks!

Riva

What code did you try on the Arduino.
How did you wire the module to the Arduino.
What Arduino are you connecting it to.
Don't PM me for help as I will ignore it.

Robin2

And post a link to the datasheet for the wireless module.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

afkiss

Here you can download the datasheet:
http://www.cdebyte.com/en/downpdf.aspx?id=130

I connected:
Module---Arduino UNO
VCC---5V
GND---GND
TX---10
RX---11
M0---GND
M1---GND

And used the softwareSerial example code:
https://www.arduino.cc/en/Tutorial/SoftwareSerialExample
With setting the softwareSerial baud rate to 9600.

Robin2

I assume you have two of those wireless devices and two UNOs.

Post the programs YOU have uploaded to both Arduinos.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

afkiss

#5
May 03, 2018, 06:34 pm Last Edit: May 05, 2018, 03:53 pm by afkiss
Sorry, I was at school, so didn't have enough time to write down all rhe important infos. So, the first thing I tried out to do the thing with two Nanos, but it didn't work. Then I changed one of them to an UNO,  unfortunately, I wasn't able to send and receive messages. The code I was using on both modules:
Code: [Select]
/*
  Software serial multple serial test

 Receives from the hardware serial, sends to software serial.
 Receives from software serial, sends to hardware serial.

 The circuit:
 * RX is digital pin 10 (connect to TX of other device)
 * TX is digital pin 11 (connect to RX of other device)

 Note:
 Not all pins on the Mega and Mega 2560 support change interrupts,
 so only the following can be used for RX:
 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69

 Not all pins on the Leonardo and Micro support change interrupts,
 so only the following can be used for RX:
 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).

 created back in the mists of time
 modified 25 May 2012
 by Tom Igoe
 based on Mikal Hart's example

 This example code is in the public domain.

 */
#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }


  Serial.println("Goodnight moon!");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
  mySerial.println("Hello, world?");
}

void loop() { // run over and over
  if (mySerial.available()) {
    Serial.write(mySerial.read());
  }
  if (Serial.available()) {
    mySerial.write(Serial.read());
  }
}

Robin2

#6
May 03, 2018, 08:14 pm Last Edit: May 03, 2018, 08:18 pm by Robin2
For testing something like that I would write two separate programs. I would get one of them to send "<Hello World>" once per second and I would use the 3rd example from Serial Input Basics on the other Arduino.

I can't think of any reason why it would make any difference using Nanos or Unos.

I have had another look at the datasheet. That seems to be a 3.3v device so you are likely to damage it by connecting it directly to a 5v Arduino.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

afkiss

Thanks! I'll try to do the thing according to your suggestions, and will notice you if it will work, or not. But I'm still confused about voltage levels, because I found an older datasheet, that says it's 5V tolerant (works well up to 5.5Volts). So I don't know what to do.
E32-TTL-100 Connections

Robin2

because I found an older datasheet, that says it's 5V tolerant (works well up to 5.5Volts).
I does not actually say that. And I don't think the advice in that link is any different to the advice in the other link.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Riva

#9
May 04, 2018, 10:43 am Last Edit: May 04, 2018, 10:43 am by Riva
The datasheet shows the module can be powered up to 5.2V but the data pins are only rated up to 3.6V

In an early reply you said your using 9600 baud and the datasheet says this is the default baud rate for the module but the example code you posted shows software serial is using 4800 baud.

Once you have the voltage & baud problems sorted if it still does not work then try swapping the RX/TX pins over as Serial naming conventions are a but lax and the pins might not match the direction.
Don't PM me for help as I will ignore it.

afkiss

Thanks for both of you!
Robin2, your code solved all my problem. By using a 4.7k resistor between Arduino TX and E32's RX, the whole thing works like a charm.

KrisKasprzak

If you want a library specific to this company transceivers, i've posted a library, You can send / receive bytes or data structures, as well as program the unit in terms of changing air data rates, channels, and other module parameters.

https://github.com/KrisKasprzak/EBYTE

Hope this helps.
Thanks,

Kris

george96

If you want a library specific to this company transceivers, i've posted a library, You can send / receive bytes or data structures, as well as program the unit in terms of changing air data rates, channels, and other module parameters.

https://github.com/KrisKasprzak/EBYTE

Hope this helps.
Hello Kris,

I'm trying to get a simple transmitter receiver between two transceivers, E32-TTL-100 and E32-TTL-1W. I'm trying to run the sender and receiver.ino files but the following error message appears. I'm sure that I'm doing something wrong with the file directories. Can you give me a few instructions on how to use the library.

Code: [Select]

sketch\EBYTE.cpp:47:19: fatal error: EBYTE.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.



Thanks in advance,
Georgios

srnet

Did you try the standard method for importing Zip file libraries;

Sketch\Include Library\Add ZIP Library...
$50SAT is now Silent (but probably still running)
http://www.50dollarsat.info/
http://www.loratracker.uk/

epigramx

I seem to be getting extremely low bandwidth (with uart at 115200 and rf at 19200) when trying to receive a stream of gnss data, distance not being the problem. Do I miss something basic like having to change default channels?

Go Up