03-24-2023 05:30 AM
Hi! I am doing my project hope anyone can help me with this.
I am reading data (Pitch, Roll, and Yaw) from MPU6050 from arduino and it is integrated with LabVIEW to make some modification. The datas are read in LabVIEW and now, I want to transmit the newdata(Pitch, Roll, and Yaw) wirelessly using nrf24l01+. As I go through this project, I am now stucked on how will I read again the newdata and transmit it to receiver(it only reads 0 which is seen in the serial monitor). I will then use this newdata to control my servomotor.
Thank you!
I'm putting my arduino code here since I was not able to attach it.
Transmitter (TX)
03-24-2023 09:03 AM
Wireless is irrelevant in this case, it's just serial communications. But I recommend you get it working without the wireless modules first.
Most serial communication issues can be solved by watching this video: VIWeek 2020/Proper way to communicate over serial
03-24-2023 10:41 AM
Good day! I have already done that thing and it was all fine. In our case, we have 3 MPU6050 with arduino each and will get the Total Pitch, Yaw, and Roll through LabVIEW and manipulate the datas that we need and will serve as our controller. But now that we have done it, we want to transmit the Total Pitch, Yaw, and Roll wirelessly using NRF24l01 to control the servos. If you have any idea how to do it, I would gladly appreciate if you share it. Thank you so much!
attached here my main program from this project.
03-24-2023 10:47 AM
First of all, you must understand that "data" is already the plural of "datum" - unless you mean:
Then yes, it's "Datas". 😄
03-24-2023 11:03 AM
@angel097 wrote:
Good day! I have already done that thing and it was all fine. In our case, we have 3 MPU6050 with arduino each and will get the Total Pitch, Yaw, and Roll through LabVIEW and manipulate the datas that we need and will serve as our controller. But now that we have done it, we want to transmit the Total Pitch, Yaw, and Roll wirelessly using NRF24l01 to control the servos. If you have any idea how to do it, I would gladly appreciate if you share it. Thank you so much!
attached here my main program from this project.
Are you saying that everything works fine when you remove the wireless modules and connect the Arduinos with wires?
03-24-2023 11:43 AM
Yes, it was all well and working but my problem is, how will I make this become a wireless transmission between two different PC/laptop using the nrf24l01+ module.
attach here the diagram for better visualization
03-24-2023 11:53 AM - edited 03-24-2023 11:56 AM
@angel097 wrote:
Yes, it was all well and working but my problem is, how will I make this become a wireless transmission between two different PC/laptop using the nrf24l01+ module.
attach here the diagram for better visualization
So this is not a LabVIEW issue at all then...
I have never used that nrf module. But in my experience using Arduinos and Bluetooth modules, the modules have to be configured before they will work. Once they are properly configured they become transparent and wireless serial communication is no different than wired serial communication from a programming perspective.
I suggest you ask this question on an Arduino based forum where chances are more people have experience with that specific module....