Hi, nice video, just a thought, do you know that nrf24l01+ receiver send back an acknowledge to the transmitter? It is possible to set some data in the acknowledge packet, this basically has no dead times when the receiver is not answering. (this will work in your example and is not a 2-way communication, but just the to answer if the transmitter guessed the number or not)
+electronics engineer I don't think so or at least there is no way to do it from the open source Arduino library that I use. It is possible that the manufacturer Nordic provided this capability but it was not included in the Arduino library. You would have to dig around in the data sheet to see if that is the case. If you go that route please share what you find.
Hi, thanks for the video, it's a really clear explanation! I used the code on your website to test it on my set-up (Arduino Uno x2 as the 'transmitters', and an Arduino Mega 2560 as the 'receiver'). The transmitter codes upload to the Unos but when trying to upload the HUB code to the Mega I got the following error message: Arduino: 1.8.5 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" In file included from C:\Users\User\Documents\Arduino\Arduino Learning\ForceTroics_HUB_Example\ForceTroics_HUB_Example.ino:6:0: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:72:1: error: expected unqualified-id before 'class' class SPISettings { ^ C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:72:1: error: expected constructor, destructor, or type conversion before 'class' exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. You're help would be greatly appreciated! Thanks.
The other thing is, if I were to expand the system with more nodes and therefore need more addresses, how would these new addresses be created? Thanks again!
You just make up the address in your code. If you are interested in larger networks you may be interested in this video series ua-cam.com/video/RrmpN1_Py_4/v-deo.html Note that I no longer sell the flex node at my site but you can access the design files from GitHub to build it yourself
If i have node00 node01(router) node011 So i want to send to node00 in node011 i just use Network.header header(node00) then it ưill automatically send to node00 ? And in system payload will sendto node01 then node00 . Am i correct
+Zainuri Hasan there is no way to easily create networks of more than two devices with classic Bluetooth devices like the hc 05/6. You need a master device that would need to connect to a node, exchange data, disconnect, and then repeat with the next node. It's a very tedious way to do it and that is why Bluetooth is not typically used for one to many type networks.
+Zainuri Hasan there is no way to easily create networks of more than two devices with classic Bluetooth devices like the hc 05/6. You need a master device that would need to connect to a node, exchange data, disconnect, and then repeat with the next node. It's a very tedious way to do it and that is why Bluetooth is not typically used for one to many type networks.
Guys can i have more than 6 NRF24L01 modules to communicate with each other. I know that it has 6 pipes and it can receive data from 6 pipes. But in my case i want all of them to transmit and receive in same pipe because the communication will happen at random and i cant specify when i will receive data from which transmiter. All the deveices will act as both transmiter and receiver. So Is it possible.
i try to make it (2xArduino Nano as to the "transmitters" and 1xArduino Nano as to the "receiver") but when one of two "transmitters" send correct, the "receiver" will stop receive and 2x"transmitters" continue to send because the function "sendCorrectNumber" not work. HELP ME PLZ !!!!
thank for the informative video. I will ask for a little help though. What I'm trying to do is to control 2 servos wirelessly with one potentiometer. so, its one Tx with the potentiometer and 2 servos in different locations that must move together. I tried using HC-05 for it but failed since I couldnt find any tutorials that used arduino-to-arduino BT communication. it is always arduino-to-android or arduino-to-pc. I'm thinking about using nRF24L01s so I can broadcast the potentiometer signal to both locations that of course are not far away from each other, but must not have wires between them. I figured is way simpler than what you did in this video, but wanted to make sure it really is possible. thank you.
Daniel Souza The nRF24L01 has built in capability to network one receiver with multiple transmit modules. In your configuration you want one transmitter and 2 receivers. There is two ways to do that: the first is you manage the connections in the arduino code you have the transmitter just connect to one receiver communicate and then you open a pipe to the other receiver communicate and then switch again. Another way to do it is to have the receiver at the potentiometer and have the two transmitters at the servos. Then just use the receiver capability to return data in an acknowledge packet (I showed this in my getting started video with one receiver and one transmitter). You could also do it with Bluetooth whether it is the HC05 modules or the RN42 modules. In my video "Building a Bluetooth Remote Control Car" I show two arduinos communicating across bluetooth
yeah, I've been trying to make the HC-05 to communicate, but I failed. I get to the part where they pair via MAC address using the AT bind command, but when it get to actually sending data I couldnt do it. I've seen other people suffering with these modules. I've ordered nRF24L01 and will try to make it work. Will this pipe switching thing be reliable? And how fast can it switch for the RN42 as well. I'm using arduino Nano at MEGA 328. if I can't make this switching thing work, I will probably go with 2 arduinos as Tx, one for each receiver and just connect the potentiometer to both arduinos or make the first arduino send the signal to the second. btw will this work?
Daniel Souza I don't know for either since I have never tried. I have only used nRF24L01 modules with one reciever and multiple trainsmitters so I didn't have to switch. In general the nRF24L01 modules seem to easily and quickly connect and Bluetooth tends to take longer and be more flaky. Zigbee easily supports large networks (XBee modules are pretty popular).
***** I did something not very elegant. I just put 1 set of TX-RX and other set of TX-RX. So, 4 arduinos and 4 nRF24L01. the joystick is wired to both Tx. It just seems like the stupid solution, but will do for now as I need these ready this week. after the maker faire I will tweak it to be better and maybe even go back to bluetooth.
Yes you could. But really to decide if the nRF24L01 is the right wireless comm module for your design you would need to define the requirements of the system and then investigate what wireless module best meets the needs of the design based on things like power consumption, data rate, security, cost , etc.
Sir, Thank you for guiding. If i put nrf in counsil switch board in wall will it effect i Range Of NRF? & One more Que Can we communicate via NRF with NRF + Module. Thank you Switch Board Like : 3.imimg.com/data3/LT/LA/MY-526690/main-switch-board-250x250.jpg
It depends on how much metal plating there is in that box, if there is too much metal it could attenuate the wireless signal. If there is no metal then it should work. The best thing to do is test it. I don't understand your second question.
My question is can we communicate with different NRF product by Nordic as in figure arduino-info.wikispaces.com/file/view/nRF-Amp-Kit-1-1024.jpg/572865599/800x314/nRF-Amp-Kit-1-1024.jpg
+Nuwan Tharaka Hello, since you are new I would suggest first trying the nRF24L01 example in my video "Gettting Started with the nRF24L01 Transceiver." WATCHED14:06 Getting Started with the nRF24L01 Transceiver
Awesome addresses for the transcievers
you got yourself a subscriber, Great video man :)
Great Tutorial! Thank you!
Hi, nice video, just a thought, do you know that nrf24l01+ receiver send back an acknowledge to the transmitter? It is possible to set some data in the acknowledge packet, this basically has no dead times when the receiver is not answering. (this will work in your example and is not a 2-way communication, but just the to answer if the transmitter guessed the number or not)
Great detailed video!
Great Video! Thanks, I'm gonna try making something awesome :)
Plz explain multilevel tree structure NRF use....
can we priotize the a specific transreciever to be at higher prioprity or lower priority
+electronics engineer I don't think so or at least there is no way to do it from the open source Arduino library that I use. It is possible that the manufacturer Nordic provided this capability but it was not included in the Arduino library. You would have to dig around in the data sheet to see if that is the case. If you go that route please share what you find.
Nice tutorial...
1 question...
Is the address random hex digits?, or it needs order?
Can you help me for 5 address?
Address is random
What's the maximum bitrate of transmission and reception ?
They have three bit rate settings: 250kbps, 1Mbps, and 2Mbps
Hi, thanks for the video, it's a really clear explanation! I used the code on your website to test it on my set-up (Arduino Uno x2 as the 'transmitters', and an Arduino Mega 2560 as the 'receiver'). The transmitter codes upload to the Unos but when trying to upload the HUB code to the Mega I got the following error message:
Arduino: 1.8.5 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from C:\Users\User\Documents\Arduino\Arduino Learning\ForceTroics_HUB_Example\ForceTroics_HUB_Example.ino:6:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:72:1: error: expected unqualified-id before 'class'
class SPISettings {
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:72:1: error: expected constructor, destructor, or type conversion before 'class'
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
You're help would be greatly appreciated!
Thanks.
Looks like there is an issue with the Mega working with the Arduino SPI library. Beyond that I can't really comment because I don't own a Mega
Thank you, I will grab another Uno an work with that!
The other thing is, if I were to expand the system with more nodes and therefore need more addresses, how would these new addresses be created? Thanks again!
You just make up the address in your code. If you are interested in larger networks you may be interested in this video series ua-cam.com/video/RrmpN1_Py_4/v-deo.html
Note that I no longer sell the flex node at my site but you can access the design files from GitHub to build it yourself
Great, thanks for your help! Really useful :)
If i have node00 node01(router) node011
So i want to send to node00 in node011 i just use
Network.header header(node00) then it ưill automatically send to node00 ?
And in system payload will sendto node01 then node00 . Am i correct
how to multceiver with bluetooth module like hc 05/06 or mh 10/11m??
+Zainuri Hasan there is no way to easily create networks of more than two devices with classic Bluetooth devices like the hc 05/6. You need a master device that would need to connect to a node, exchange data, disconnect, and then repeat with the next node. It's a very tedious way to do it and that is why Bluetooth is not typically used for one to many type networks.
+Zainuri Hasan there is no way to easily create networks of more than two devices with classic Bluetooth devices like the hc 05/6. You need a master device that would need to connect to a node, exchange data, disconnect, and then repeat with the next node. It's a very tedious way to do it and that is why Bluetooth is not typically used for one to many type networks.
Guys can i have more than 6 NRF24L01 modules to communicate with each other. I know that it has 6 pipes and it can receive data from 6 pipes. But in my case i want all of them to transmit and receive in same pipe because the communication will happen at random and i cant specify when i will receive data from which transmiter. All the deveices will act as both transmiter and receiver. So Is it possible.
i try to make it (2xArduino Nano as to the "transmitters" and 1xArduino Nano as to the "receiver") but when one of two "transmitters" send correct, the "receiver" will stop receive and 2x"transmitters" continue to send because the function "sendCorrectNumber" not work. HELP ME PLZ !!!!
thank for the informative video. I will ask for a little help though.
What I'm trying to do is to control 2 servos wirelessly with one potentiometer.
so, its one Tx with the potentiometer and 2 servos in different locations that must move together.
I tried using HC-05 for it but failed since I couldnt find any tutorials that used arduino-to-arduino BT communication. it is always arduino-to-android or arduino-to-pc.
I'm thinking about using nRF24L01s so I can broadcast the potentiometer signal to both locations that of course are not far away from each other, but must not have wires between them.
I figured is way simpler than what you did in this video, but wanted to make sure it really is possible.
thank you.
Daniel Souza The nRF24L01 has built in capability to network one receiver with multiple transmit modules. In your configuration you want one transmitter and 2 receivers. There is two ways to do that: the first is you manage the connections in the arduino code you have the transmitter just connect to one receiver communicate and then you open a pipe to the other receiver communicate and then switch again. Another way to do it is to have the receiver at the potentiometer and have the two transmitters at the servos. Then just use the receiver capability to return data in an acknowledge packet (I showed this in my getting started video with one receiver and one transmitter). You could also do it with Bluetooth whether it is the HC05 modules or the RN42 modules. In my video "Building a Bluetooth Remote Control Car" I show two arduinos communicating across bluetooth
yeah, I've been trying to make the HC-05 to communicate, but I failed. I get to the part where they pair via MAC address using the AT bind command, but when it get to actually sending data I couldnt do it. I've seen other people suffering with these modules.
I've ordered nRF24L01 and will try to make it work. Will this pipe switching thing be reliable? And how fast can it switch for the RN42 as well.
I'm using arduino Nano at MEGA 328.
if I can't make this switching thing work, I will probably go with 2 arduinos as Tx, one for each receiver and just connect the potentiometer to both arduinos or make the first arduino send the signal to the second. btw will this work?
Daniel Souza I don't know for either since I have never tried. I have only used nRF24L01 modules with one reciever and multiple trainsmitters so I didn't have to switch. In general the nRF24L01 modules seem to easily and quickly connect and Bluetooth tends to take longer and be more flaky. Zigbee easily supports large networks (XBee modules are pretty popular).
thank you. as soon as I have something working I will post here.
***** I did something not very elegant. I just put 1 set of TX-RX and other set of TX-RX. So, 4 arduinos and 4 nRF24L01. the joystick is wired to both Tx. It just seems like the stupid solution, but will do for now as I need these ready this week. after the maker faire I will tweak it to be better and maybe even go back to bluetooth.
Hello sir,
Can we use NRF24L01 for Commercial Home automation system network?
Yes you could. But really to decide if the nRF24L01 is the right wireless comm module for your design you would need to define the requirements of the system and then investigate what wireless module best meets the needs of the design based on things like power consumption, data rate, security, cost , etc.
Sir,
Thank you for guiding. If i put nrf in counsil switch board in wall will it effect i Range Of NRF?
& One more Que Can we communicate via NRF with NRF + Module.
Thank you
Switch Board Like :
3.imimg.com/data3/LT/LA/MY-526690/main-switch-board-250x250.jpg
It depends on how much metal plating there is in that box, if there is too much metal it could attenuate the wireless signal. If there is no metal then it should work. The best thing to do is test it. I don't understand your second question.
My question is can we communicate with different NRF product by Nordic as in figure
arduino-info.wikispaces.com/file/view/nRF-Amp-Kit-1-1024.jpg/572865599/800x314/nRF-Amp-Kit-1-1024.jpg
Yes, I have done communication setups with those two different modules.
See also this library github.com/andrea1388/ReliableRadioNetwork
It manages ack, retransmission, nodes cooperation for packet delivery
i have made this and the serial monitor shows only the guessed number and nothing happens after that. PLEASE HELP ME. ... i'm new to arduino
+Nuwan Tharaka Hello, since you are new I would suggest first trying the nRF24L01 example in my video "Gettting Started with the nRF24L01 Transceiver."
WATCHED14:06
Getting Started with the nRF24L01 Transceiver
Thank you