Good morning, I hope you can help me I believe it is something quite simple.
I'm trying to communicate between two Arduinos, by TX and RX, I'll leave a picture to see how the connections are made, and the code.
The connections I believe are ready. But when I go to the console of "Arduino Wifi Rev 2" it doesn't show anything.
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
It is impossible to see from your photograph exactly how the two boards are connected. Please post a clear schematic of the circuit or a very clear description of what pins on each are connected to each other
How do you know from that sketch that it’s not working as it has no visible output .
If you using usb connections to a PC then there is probably a conflict as the USB connection is shared with the Tx/rx pins - certainly on the UNO , you might have to use a different port on the BLE , one is shared with the USB ( can’t recall off hand , I’m watching the TV) .
Suggest you look at serial ports for the BLE and software serial for the UNO and the examples in the IDE
In some older boards, TX and RX pins are used for communication with the computer, which means connecting anything to these pins can interfere with that communication, including causing failed uploads to the board. This is not the case for the Nano or MKR families, since these ones have two separate channels, using Serial for the communication with the computer and Serial1 for the communication with any other device trough UART.
The microcontroller on the Arduino Nano 33 BLE Sense runs at 3.3V, which means that you must never apply more than 3.3V to its Digital and Analog pins. Care must be taken when connecting sensors and actuators to assure that this limit of 3.3V is never exceeded. Connecting higher voltage signals, like the 5V commonly used with the other Arduino boards, will damage the Arduino Nano 33 BLE Sense.
For this reason, you should not make direct electrical connection between the TX on the Uno WiFi Rev2 and the RX on the Nano 33 BLE. The reason is that the Uno WiFi Rev2 uses 5V logic levels and so this connection can damage your Nano 33 BLE. You should use a logic level converter.
Thanks for everyone's help, I tried it with two Arduino Nano 33 Ble Sense, and it worked, should the problem really be 5v "Arduino Wifi Rev 2" - 3.3V "Arduino Nano 33 Ble Sense"?
You can level 5V to 3.3V with a diode and pullup resistor on a 3.3V pin.
The diode blocks 5V from the 3V input where the pullup makes a HIGH read.
When the same line drops to GND, the pullup is sucked LOW.
SD is one of many 3.3V devices that do need protection from 5V.
74HC4050 hex buffer chips provide 6 5V-to-3V leveler channels. In bulk I paid like 35 cents each chip, 6 cents per channel and cleaner wiring!