hello,
reciever of data is always a regular nano, the sender should be a nano BLE, in the following referred to as "nano" and "BLE".
the following codes work fine, if the sender is a nano every. if its a BLE, no data is recieved.
same ground, connected only Tx (BLE) PIN 0 to Rx (nano) PIN 1, which is connected via USB to monitor the print outputs. the slave furthermore powers the master. l even put a level shifter module between the boards, which shouldt be necessary when sending from 3.3 to 5V.
any ideas?
You have the possibility that you destroyed the receiving port on the 3V3 device, possibly even more damage. It is the 5V to 3V3 that causes the problem as you connected both Tx and Rx. Post a simple schematic showing how these are interconnected, show all connections and power.
Your Nano's RXD is being driven by the BLE, but the Nano also receives from the PC, on that same pin. Though some have reported success doing this, most find that at a minimum, the Serial Monitor content is corrupted by this. It may be that the BLE is completely blocked by the signal output from the USB-serial chip onboard the Nano.
Try bringing the BLE serial line in on another pin, and using SoftwareSerial to receive the output from the BLE.
so i provided an independent power source for both boards with no USB cable attached, added a blink function to see if data came in, no success.
included softwareserial like this:
with the wire connected in D2, it recieves nothing, not even from a standard nano. with the wire connected to Rx, it recieves the correct data (from regular nano!), which should be impossible when reading at Serial2. nothing from BLE.
Nice pictures not much help. What is the Red Blob? The board on the right is not annotated. Try running a simple hello world type program on each by themselves and see if it works. That will verify the Tx signals. The Rx were verified when the code was uploaded. These pictures do not mean anything to me as I do not have the corresponding parts. Posting links to technical information on each part also helps get you a accurate answer.
Empfangene Zahl 1: 16457
Empfangene Zahl 2: 0.0000
Empfangene Zahl 1: 3670
Empfangene Zahl 2: 0.0000
Empfangene Zahl 1: 0
Empfangene Zahl 2: 3.1415
Empfangene Zahl 1: 42
Empfangene Zahl 2: 0.0000
that cycle repeats, so with softwareserial at least something happens. same outcome, if the signal goes over the level shifter:
describe how you start these two talking, because your receiving code has no method of ensuring it's starting with the int; if the talker was started before the receiver, you could be anywhere in the repeat transmission cycle.
Highly recommend
i added a "starting sign" (<) to mark the beginning of a transmissing and it works now with softwareserial! that wasnt necessary with a regular nano or nano every as sender. but hardware serial still doesnt work, like the Rx port of the reciever is broken, but its not - if the sender is a nano every, like said, it works.