Hi there.
After a bit of help in getting my accelerometer to start using a push button (thanks Delta_G). I have managed to get the two boards (UNO R3 and NANO) to transmit data from the UNO with an accelerometer attached to a NANO connected to the computer. I have used NRF24L01's to transmit the data from the MPU6050 connected to the UNO through the NRF24L01, to another NRF24L01, to the NANO then through a USB cable t the computer and onto the serial monitor. I have connected the NRF24L01'S as shown on this site;
and the MPU6050 as shown on this site;
The button is a push to make switch attached from ground to pin 6.
My problem is that i get transmission of sorts but it seems to be just a lot of zeroes in the serial monitor like the picture in the attchment (run at 9600 baud);
i have tried all different baud rates from 9600 up to 230800. I believe my problem is that the code is too slow (attached below) as if i run just the uno at 115200 baud, it gives me 3 lots of data, then FIFO Overflow, then another 3 lots and over and over. If i run at 9600 then it gives nothing but FIFO Overflow. Do i need to improve the speed of the code, or is it down to my terrible programming? (apologies in the code for all the // as i'm trying to keep it in there to experiment). Are the 0.00's what the radio is transmitting the FIFO Overflow as? And a quick one, what is the max baud rate the NRF24L01's can run at?
Thankyou all
MPU6050_State_Machine_Receiver_Test.ino (1.21 KB)
MPU6050_DMP6_Transmitter_Test.ino (8.7 KB)