I'm new to Arduino programming and currently working on a university project. I have two Arduino RP2040 Connect boards. One board is set up to read an input (voltage), and the other is connected to an LCD display.
The goal is for the first board to store the input value and send it directly to the second board, which will display the value. I’d prefer to establish direct communication between the two devices using Bluetooth or Wi-Fi, rather than connecting them to a local network or router.
Could anyone guide me on how to set up the connection?
The sample code I found seemed way too complicated for my rather simple problem.
In a similar project to mine they used a NRF24L01 module and just opened some "radio Chanel" which took like 10 lines of code. For example, the receiver code:
You need to search for a RP2040-Server to RP2040-Client.
I've only done that with ESP, client requesting data from server (softAP).
There are examples of Nano_BLE/Sense (et al.) using BLE, too.
They're likely transferrable, but they would have to be translated to python.
So - if you were looking for direction, a starting point, that's it.
(I have no leads to anything copy&paste ready.)
The Arduino RP2040-connect is a "late to the party"-microcontroller.
This is the reason why there is not much code online and not much experience with it.
You are underestimating the differencies.
nRF24 is a board that is especially made for beeing a wireless bridge for serial communication.
A WiFi-Module like on the RP2040-connect is much more universal.
Though the people providing demo-code for it are
late to the party that started 6 years ago with the ESP8266
do not provide much demo-codes or only more complex demo-codes
If you can afford another $20 buy two nodeMCU-ESP32-boards and you will find a lot of demo-codes working with ESP-NOW direct wireless connection or with
setting up one nodeMCU-ESP32 as its own access-point and then connect the other ESP32 as station to send UDP-messages.