I bought this radio module but I'm having trouble connecting it to the ESP32. the ESP32 I have doesn't have pin 10 which is the default pin in the RadioLib library. So I changed the pins but I think it needs to use specific pins on the ESP32 because I keep getting error 2 which is no board found (and yes 3.3v and gnd are connected). I don't have really any experience with communication protocols with electronics and the only mention of nsel and nirq i can find are on the radio board and in the radiolib library. The pinout of the radio module is in the link above and my ESP32 i have looks like this one here:
Hello spaceflier
For a long time I have been following the topic with the use of this type of wireless module and the associated software functions.
For wireless projects I recommend the use of the HC12 module.
What are the advantages:
- no external functions from a library are needed.
- the development of a communication protocol is in your hands
- the necessary development steps can be programmed and tested without using the wireless module
- the radio module can be easily configured for the project requirements
- both transmitter and receiver are contained in one radio module.
hth
Have a nice day and enjoy coding in C++.
No.
From your link:
// Si4432 has the following connections:
// nSEL pin: 10
// nIRQ pin: 2
// SDN pin: 9
Si4432 radio = new Module(10, 2, 9);
This is how they were assigned in the example but clearly you can define the pins you want.
Check if the following connection diagram (Fig-1) does some help!
Figure-1:
// Si4432 has the following connections:
// nSEL pin: 10
// nIRQ pin: 2
// SDN pin: 9
Si4432 radio = new Module(10, 2, 9);
===> Si4432 radio = new Module(15, 16, 17);
The ESP32 Dev Module has two SPI Ports -- VSPI and HSPI. Which SPI Port is being used by the Library? I have made a connection using HSPI Port.
This module has come up recently:
Note that it is not a LoRa module!
So are you saying that if I follow that wiring diagram, and run the code with pins 15 16 and 17 it should connect?
I don't own that Module; so, be sure on the validity of that wiring having consultation with prduct specifications. Anyway, there is not much for anything to get fried; because, both radio and ESP32 are on 3.3V logic.
What's about the SPI Port connection. I went throgh few examples of the Library; I did not see any information about the SPI as there are two useable/free SPI Ports with ESP32 Dev Module.
If anyone else has this module and needs help it worked connection using the VSPI pin equivalent from @GolamMostafa's diagram on the esp32. There were a total of 8 required pins, 1 3.3v and 1 GND, and then the entire top row (6 pins) from SDN and SDO. SDN and nIRQ are still connected to 17 and 16 respectively, and the others use the corresponding VSPI pins from the HSPI in the diagram (in @GolamMostafa's diagram pins 14 12 13, and 15 converted to their VSPI counterparts from the table below)
Using the example code and setting it to use pins 5, 16, and 17 I was able to get a connection and send data.
Thanks everyone for your help
Have you found the reason why HSPI Port is not working?
I have no clue
1. The execution of the following codes tells that the default SPI Port of ESP32 is the VSPI Port. Son when ans SPI.transfer() code is executed, it is directed to VSPI Port.
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.print("MOSI: ");
Serial.println(MOSI);
Serial.print("MISO: ");
Serial.println(MISO);
Serial.print("SCK: ");
Serial.println(SCK);
Serial.print("SS: ");
Serial.println(SS);
}
void loop(){}
Output:
MOSI: 23
MISO: 19
SCK: 18
SS: 5
2. I have the paln to test the functionality of HSPI Port using the setup of Fig-1:
Figure-1:
...pending
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.