Serial.println(text) // Printing the received data on the Serial monitorīoth the Arduino Uno and the STM32 Nucleo-L432KC codes were compiled successfully.Ĭan you please help me and tell me what I'm doing wrong here and how to fix this? Radio.read(&text, sizeof(text)) // Saving the incoming data If (radio.available()) // Looking for the data. Receive the data from the slave (Nucleo-L432KC) infinitely: Radio.startListening() // Set radio to receiver mode (in-order to test the data communication: Slave send data data to master) Radio.openWritingPipe(pipes) // Set the address of the Slave (in-order to send the commands to it from the master). Radio.openReadingPipe(1, pipes) // Set the address of the Master (in-order to receive back the requested data from the slave). tPALevel(RF24_PA_MAX) // Set the nRF power level. tChannel(0x4c) // Set the communication channel Radio.begin() //Starting the Wireless communication Serial.begin(9600) //Start Serial communication put your setup code here, to run once: My Slave (Nucleo-L432KC) and Master (Arduino Uno) addresses:Ĭonst uint64_t pipes = SCLK D13 (Other names: PB3, SPI3_SCLK) MOSI D11 (Other names: PB5, SPI3_MOSI) MISO D12 (Other names: PB4, SPI3_MISO) Rest of connections to the Nucleo-L432KC: Tried to send data from the Arduino Uno to the STM32 Nucleo-L432KC, and I got the data and everything was OK.īut when I tried to send the data from the STM32 Nucleo-L432KC to the Arduino Uno board, I didn't receive the data in the Arduino Uno (I use the Serial monitor in-order to print the data I receive).įor the Slave (STM32 Nucleo-L432KC) who send the data to the Arduino Uno: #include I use the nRF24L01 libraries (for the STM32 Nucleo-L432KC board):Īnd the nRF24L01 libraries (for the Arduino Uno board):įor the nRF24L01 module to the Arduino Uno:įor the nRF24L01 module to the STM32 Nucleo-L432KC: such that both the STM32 Nucleo-L432KC and the Arduino Uno will be transceivers. So, I want to use the nRF24L01 module to communicate between the STM32 Nucleo-L432KC and the Arduino Uno. So I'll be happy if you could try to help me here. But I tried to enter the stm32duino forum and I didn't succeed (I think their forum is closed). First of all, I know you're going to tell me to send my question on the stm32duino forum.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |