HOW TO: Use a NRF24L01 + Arduino to remotely control a motor

  Рет қаралды 133,082

DonovanStudio

DonovanStudio

Күн бұрын

Пікірлер: 89
@MyBigThing2010
@MyBigThing2010 7 жыл бұрын
just an FYI that not many people know....you don't need two computers to run two instances of the IDE separate from each other...you just have to open a new session with the desktop icon a couple times and it'll isolate a new session allowing you to control, code and serial print to each board at the same time from the same Windows environment/same pc...you have to open from the desktop not from within the current IDE session!
@saudalfozan8410
@saudalfozan8410 8 жыл бұрын
By the way, why did you connect A7 with Vcc as shown in Nano diagram?
@gocentas_
@gocentas_ 8 жыл бұрын
Thank you, you saved me several hours of sleep I would've spent trying to figure out how to write a code for these without arrays.
@statbat
@statbat 8 жыл бұрын
It is the best tutorial ever i have viewed. I rarely leave a comment but this tutorial made me write words for appreciation. Havent tried this yet but just watched the video and got impressed in your hard work in making it. I have a question though. Can it be used to transfer a STRING between two NRF24L01 ? I will have to transfer a string R1 to R999 (not just ON / OFF)
@Max_Bio
@Max_Bio 5 ай бұрын
Can we use voice commands over NRF24L01, to control servos?
@stevenalbright3363
@stevenalbright3363 8 жыл бұрын
I am trying to figure out why this is not working for me and I am using a pro mini but in the Fritzing diagram pin A7 is hooked to the positive rail is it possibly suppose the 5 volt rather than A7?
@mr_mystry..10
@mr_mystry..10 10 ай бұрын
Can you tell me which kind of cad you are using to make simulation pls
@chanchopanza
@chanchopanza 8 жыл бұрын
add a 10uf capacitor to the NRF24L01 to avoid the power surges (between positive and negative)
@danieljohnsopardenilla997
@danieljohnsopardenilla997 3 жыл бұрын
which is better when controlling servos/sensors/stepper motors? The nrf24l01 or the esp8266 module?
@CanadaEmperorOf
@CanadaEmperorOf 3 жыл бұрын
If you are just getting started then the esp8266 has piles and piles of tutorials and helpful docs out there.
@danieljohnsopardenilla997
@danieljohnsopardenilla997 3 жыл бұрын
@@CanadaEmperorOf thanks
@JayDAnderson
@JayDAnderson 8 жыл бұрын
I had understood that the nRF24L01+ has automatic error checking and re-transmission. So I am thinking that possibly the error routines in your code may never catch anything unless the connection is so bad that it overcomes the internal error checking/re-transmission built in. So be it... always good to have an extra safety net. Thanks. Good vidi.
@kevinbelaen601
@kevinbelaen601 8 жыл бұрын
Hi, very nice tutorial. I am building an RC tank and my bluetooth module (HC-06) keeps disconnecting from my laptop every couple of minutes or so, it's very frustrating. I was curious if I could rip out the receiver from an RC car, and still be able to write code to communicate to the arduino/motor shield through the RC car controller. Please reply if you have the time :) thanks
@alejandroarreguin3628
@alejandroarreguin3628 2 жыл бұрын
Can this send live reads from a joystick?
@robertblaylock618
@robertblaylock618 8 жыл бұрын
Excellent video! You explain things exceptionally well. Much like A. Smith, I am in the process of building a reliable grow system for my garden. I have problems getting around, and am looking to automate some of my gardening tasks. I want to keep the project in public domain, so others could utilize the system and make improvements and adaptations as they like. I want to keep as much of the data flow wireless as possible. I think this would help keep the system flexible and not require a major teardown and reset as the seasons change, not mentioning building and maintaining a wire spiderweb. Thanks
@lampfall7915
@lampfall7915 2 жыл бұрын
Hi , good video, I have tried this tuto out but I got problems . What did you mean by : define code… Are you calling a code from other an external file ?
@saudalfozan8410
@saudalfozan8410 8 жыл бұрын
excellent tutorial. one question here, the github link there is a statement saying "There are many opportunities to increase the error handling along with error correction". The question is what kind of error handling? Keywords without explanation is more than enough for me to do further research. you don't need to explain them.
@urgentcareguy3
@urgentcareguy3 8 жыл бұрын
What kind of transmitting distance have you seen?
@aboodcobra
@aboodcobra 8 жыл бұрын
Very interesting video, can we use the transmitter in order of make the motor follow it or go to its position ? ofcourse with use of the receiver ? Thankyou
@YourGradStudent
@YourGradStudent 8 жыл бұрын
the pin 11, 12, 13 related to module NRF24L01 ( transmetter and reciver), is it necessary for the function of both arduino?
@urgentcareguy3
@urgentcareguy3 8 жыл бұрын
Can the transmitters be stacked for greater power output?
@alnoorratansi9364
@alnoorratansi9364 8 жыл бұрын
HI Great tutorial, have you done garage door opener Tutorial ?
@maoari79058
@maoari79058 8 жыл бұрын
Hello, I am doing connection testing of Arduino devices on a LoRaWAN network ... using the network could remotely turn off a machine? Thanks for your reply
@Leetky
@Leetky 9 жыл бұрын
Thank you so much for this. What pros and/or cons are there for using a NRF24L01 compared to say an XBee transceiver?
@DonovanStudioMain
@DonovanStudioMain 9 жыл бұрын
+Leetky For simple serial communications the biggest difference would be price. The XBee transceiver is maybe 20 times more expensive. They both take care of interference and operate in the same frequency range. The antenna version of the NRF24L01 has maybe triple the range of the XB. Also the data bandwidth of the NRF24L01 is about 4 times as much but I have never tested it to see if it really works at that extreme. The XBee has many other features such as built in 128 bit encryption. But probably one of its bigger features is that it has ADC and IO pins built in. Thus it could control things just as it is without having to use an Arduino as an intermediary. The ADC means that it could also handle sound. But for instance in my next project I am going to use an NRF24L01 to create a pretty cool garage door opener. I am also going to incorporate some pretty good encryption which will be immune to MiTM and replay attacks. The NRF24L01 will be perfect for this sort of project. One other thing the XBee can do is act as part of the XBee family. This is all sort of plug and play which might have its advantages in a Lego sort of way.
@jaykrishnarsakin263
@jaykrishnarsakin263 7 жыл бұрын
can I use this for wireless speed Synchronization of DC Motors??
@veyselaksoy6558
@veyselaksoy6558 6 жыл бұрын
Can you use these to inform them each other? Means that use a button for one side and if you push this button , other nrf24l01 side which has a LED will get information to switch on its LED.After that if we use a button which is in other Nrf24l01 , this will cause to inform nrf24l01 to do something.I hope you understand .d
@tglenn3121
@tglenn3121 6 жыл бұрын
Could I use this to control a bi-directional servo motor?
@Ultimatefire54
@Ultimatefire54 8 жыл бұрын
Great and straightforward tutorial! I do wonder if it is practical to use one transceiver as a receiver for multiple (around 4) transmitters. Would you please offer some insight on that?
@DonovanStudioMain
@DonovanStudioMain 8 жыл бұрын
+Ultimatefire54 I believe (off the top of my head) that each of these modules can handle 5 connections. Unless you were to be pushing the transmission up to its bandwidth limit there would be no problem with that. These things can handle something in the ballpark of 2Mbps which is well beyond the capacity of the Arduino to spit out or receive data. More interestingly there are RF24 mesh networking libraries where you can set up a hoard of these things all passing data back and fourth along a self healing grid. So if you had to go beyond 5 that would be possible with mesh networking. It would add a little to your code complexity but from what I have dabbled with it ends up boiling down to Unit 1 can talk to Unit 80 and the mesh takes care of the rest even if it has to hop a few of these to get there.
@Ultimatefire54
@Ultimatefire54 8 жыл бұрын
Thank you I looked up a lot on multiceiver networks and they seem to be very useful for the project I am working on.
@DonovanStudioMain
@DonovanStudioMain 8 жыл бұрын
+Ultimatefire54 Yes it is very cool to get a mesh working and see it keep working after horrible things keep happening to it.
@fernandomarqz3504
@fernandomarqz3504 6 жыл бұрын
HI, i want to control the speed of motor with pot and Transistor Irfz44n through RF 2.4 ghz
@broolympus5540
@broolympus5540 8 жыл бұрын
Thank you! What cable did you use to power the Breadboard Power Supply? ( USB - USB Cable? ) Thank you again
@MyBigThing2010
@MyBigThing2010 7 жыл бұрын
AWESOME video! thanks. ...is there an easy way to add an inductor, capacitor and a resistor to boost the nano VOUT a little so you wouldn't need an external supply when using a nano?
@OctaRudin
@OctaRudin 8 жыл бұрын
Nice tutorial sir. btw, in libraries manager which one i have to choose ? there are much libraries
@olek6083
@olek6083 8 жыл бұрын
I believe buttons in scheme are connected to another - pins D5 and D6 (on 5:36) than in code and scheme (D2 and D3 3:55 and 9:18) but it's very slight inaccuracy....anyway GREAT JOB...congrats
@stevenalbright3363
@stevenalbright3363 7 жыл бұрын
Is that how you got this working?
@yoviesigit5292
@yoviesigit5292 8 жыл бұрын
sir thats module can compatible with pulse sensor or Heart rate ?
@michaelhill5543
@michaelhill5543 7 жыл бұрын
I like the circuit. Now my question is how could i turn this into a dc motor controller for a dc train set. I want to use 4 buttons. Button 1 increase voltage to motor, from 0 to 18v button 2 decrease voltage, button 3 select left, button 4 select right and if I am moving in a direction and press button 3 or 4 then stop. This is for a train controller
@nahummo1
@nahummo1 8 жыл бұрын
thank you very much! be couse of you its finaly works on board! But how can i put into the code, the map of joystick in the rx & tx?? thank you so much!
@enrevolucionvenezuela7592
@enrevolucionvenezuela7592 8 жыл бұрын
Cuando trato de compilar el archivo tanto de Receive como de transmit, me sale el siguiente error. Arduino_NRF24L01_Receive:8: error: integer constant is too large for 'long' type Arduino_NRF24L01_Receive:9: error: integer constant is too large for 'long' type Las lineas del programa son las siguientes: #include #include "RF24.h" // This is the RF24 library that may need to be installed through the Manage Libraries feature in the IDE. RF24 radio(9, 10);//Create a commuications object for talking to the NRF24L01 const uint64_t send_pipe=0xB01DFACECEL;//These are just arbitrary 64bit numbers to use as pipe identifiers const uint64_t recv_pipe=0xDEADBEEFF1L;//They must be the same on both ends of the communciations
@akashmondal299
@akashmondal299 8 жыл бұрын
how to make same thing using pot... ??? can you make a video for this...??
@boffinschist1098
@boffinschist1098 8 жыл бұрын
I tried to compile the receiver code and got a whole bunch of coding errors. Does it need fixing up?
@boffinschist1098
@boffinschist1098 8 жыл бұрын
Can you tell me what is going on here please?
@denkeoquan
@denkeoquan 8 жыл бұрын
Would you share the code? Thanks in avdvenced or consideration.
@jlramirezaguilar7707
@jlramirezaguilar7707 8 жыл бұрын
Hey there can you make a video : How to control a stepper motor 5v and a Dc motor with Nrf24l01 step by step? Let me know when you do it please.
@AtomsLab
@AtomsLab 9 жыл бұрын
Thank you for this video. I'm going to pick up a few of these chips and see if I can use them in my dissertation instead of Ethernet for data transmission.
@DonovanStudioMain
@DonovanStudioMain 9 жыл бұрын
+A. “Gospel” Smith They are a very cool alternative for many tasks. I have only scratched the surface in this video. They can create interesting mesh networks and with a little bit of fiddling I have set up a chain where one just relayed to the next to effectively lay out a mile of wire using a handful of tiny solar powered stations. For waterproofing I just squirted in great globs of marine silicone glue so the things are now pretty much indestructible. What, may I ask, is your dissertation about?
@AtomsLab
@AtomsLab 9 жыл бұрын
+LessonStudio For my thesis I'm going to design and build an automated irrigation and growing system using an Arduino and a few sensor arrays. I was inspired by Rik Kretzinger's aquaponics system and high efficiency agriculture. The system I'm working on will keep track of things such as light levels, soil/air moisture and temperature, water levels, and will automatically control watering and light levels. My ideas are not new at all, but I'm interested in seeing what data I can get. The wireless chips will certainly make things easier, and it's good to know that I can waterproof and daisy chain them in case I take the project outside. Right now the ultimate goal with the project is to be able to maintain a small plot of cat grass for my cat to eat, with extreme efficiency and no work involved past implementation.
@DonovanStudioMain
@DonovanStudioMain 9 жыл бұрын
+A. “Gospel” Smith Very cool. Just watch out for the cheap soil moisture sensors out there; many of them just corrode in days.
@Martindooo
@Martindooo 9 жыл бұрын
Great video and explanation! But the arduino code of the Arduino_NRF24L01_Transmit is not available in the GitHub repository, hopefully this will be fixed soon.
@DonovanStudioMain
@DonovanStudioMain 9 жыл бұрын
+Martin Beentjes Thanks for finding that. I just pushed a new version fixing the glaring omission!
@henrychoquemaquera5097
@henrychoquemaquera5097 7 жыл бұрын
Hi, I love the video on the NRF24L01 is very good ..... if it is not much trouble I do not know if I could clarify a doubt I have which is: How could I use the NRF24L01 in an external interrupt that has the arduino? Thank you
@yasha8951
@yasha8951 8 жыл бұрын
Why do you need a VM?
@jmsiefer
@jmsiefer 8 жыл бұрын
Great video! Quick question though - Looking at your diagram from the 6 minute mark (for example), is it possible to have the Nano and the NRF24L01 share the same 3.3v power source? You mentioned that the NRF24L01 needed a little "oomph" in terms of amperage. If that's possible, what kind of amperage rating would I need? My problem with projects lately has been that I have like 20 different adapters for each of the components (and it gets kind crazy). Much appreciated in advance!
@caspianvictor7110
@caspianvictor7110 3 жыл бұрын
i know im randomly asking but does any of you know of a method to log back into an instagram account? I somehow lost the login password. I love any tricks you can offer me
@deandretate7392
@deandretate7392 3 жыл бұрын
@Caspian Victor instablaster :)
@caspianvictor7110
@caspianvictor7110 3 жыл бұрын
@Deandre Tate I really appreciate your reply. I got to the site thru google and im trying it out now. I see it takes quite some time so I will reply here later when my account password hopefully is recovered.
@caspianvictor7110
@caspianvictor7110 3 жыл бұрын
@Deandre Tate It worked and I now got access to my account again. I am so happy:D Thanks so much, you really help me out !
@deandretate7392
@deandretate7392 3 жыл бұрын
@Caspian Victor you are welcome =)
@enrevolucionvenezuela7592
@enrevolucionvenezuela7592 8 жыл бұрын
El programa no corre, se queda en la linea 4 y 5 y da el siguiente error. Arduino_NRF24L01_Transmit:4: error: integer constant is too large for 'long' type Arduino_NRF24L01_Transmit:5: error: integer constant is too large for 'long' type
@eclruthenium6357
@eclruthenium6357 8 жыл бұрын
Great tutorial. Could you help with making this code work with a joystick. I have a code that will allow 2 modes giving different servo control using the button from the 2D joystick. I have seen other videos using NRF24 with a joystick but not one that allows different modes....if you're interested please let me know.
@broolympus5540
@broolympus5540 8 жыл бұрын
Did you buy from Addicore
@enrevolucionvenezuela7592
@enrevolucionvenezuela7592 8 жыл бұрын
El programa no corre, se queda en la linea 4 y 5 y da el siguiente error.
@colonelff6394
@colonelff6394 8 жыл бұрын
where can i get arduino plz hurry
@MrDeamondoener
@MrDeamondoener 9 жыл бұрын
hey great video! in your github there is actually no code for the Transimitter Arduino_NRF24L01/Arduino_NRF24L01_Transmit/. just letting you know :)
@DonovanStudioMain
@DonovanStudioMain 9 жыл бұрын
+MrDeamondoener Thanks for catching that. I just pushed a version that is more transmit complete.
@mohamedeljabri4970
@mohamedeljabri4970 6 жыл бұрын
thanks a lot , I need transmit 4-20mA ecxactly water flow rate wirelessly along 700m
@broolympus5540
@broolympus5540 8 жыл бұрын
Using this for a Bluetooth camera project ... Thanks ...
@DimaProk
@DimaProk 8 жыл бұрын
Thank you so much for explaining pull up resistor! I've been looking for this information if I really need it or not and now I know. Liked and sub.
@DonovanStudioMain
@DonovanStudioMain 8 жыл бұрын
+Dima Prok Pull down resistors can be even more evil as not having one doesn't necessarily make your circuit fail. Often there is an "accidental" pull down resistor kind of built into the circuit draining away the charge to ground. Thus the circuit might work most of the time but then not work. Or it will work when you are touching it but not when you put it down, etc. It also feels very wrong to "short out" a circuit. It is only when you do a simple calculation that you realize the amount of current going through a pulldown resistor is negligible. The nice thing about learning these things is that there is a somewhat finite number of basics. After that it is just mix and match what you know to build cool things. Good luck!
@DimaProk
@DimaProk 8 жыл бұрын
+LessonStudio Alright, I guess I'll try without it and see how it goes since I don't have any resistors on hand and I'll need to be ordering from ebay or Amazon.
@DonovanStudioMain
@DonovanStudioMain 8 жыл бұрын
+Dima Prok You will be walking into a valley of evil. I would recommend finding anything in the 10k resistor range. A resistor pulled from some older dead electronics. Anything from the pre 2000s is certain to have a bunch of resistors that will suit your needs. To not have a pulldown where one is needed is going to result in funky things. Then you will not be confident if you are making a mistake or just the vagaries of electric charges. For instance, I just measured the resistance of about an inch of a pencil scribble. It was right around 10k. If you could work such a thing into your circuit it would be better than no resistor at all. The ultimate in hack. Keep in mind that the goal of a pulldown resistor is not really to carry a pile of current but to drain away a tiny charge. With things like a mosfet, when you put some voltage on a gate that holds the circuit open, that charge will potentially just sit even when you remove the voltage from the gate. Thus you really need a pulldown resistor to drain that charge away. Yet the number of electrons that need to be drained is microscopic compared to the number that might be flowing to even power a tiny LED. Thus even a crappy pencil scribble can do it.
@DimaProk
@DimaProk 8 жыл бұрын
+LessonStudio Yeah... I've been meaning to find some old electronics. Need to check Craigslist for free stuff.
@MilanKarakas
@MilanKarakas 8 жыл бұрын
Try Si4432 at 433 MHz. Lot of fun.
@michaelganesan4578
@michaelganesan4578 8 жыл бұрын
Great tutorial.
@patriciabrooks5838
@patriciabrooks5838 7 жыл бұрын
Why do so many choose to throw their bits about when describing them. Very annoying.
@bsc7812
@bsc7812 7 жыл бұрын
They are his bits.... I suppose he can throw them wherever he chooses.
@anandharajkarthikeyan9548
@anandharajkarthikeyan9548 7 жыл бұрын
when i use your code it says error compiling
@sciense3078
@sciense3078 6 жыл бұрын
lol. great, i just bought a bunch of the 433 things. u r right, they suck. switching to NRF24L01 now
@JimmyWheel
@JimmyWheel 7 жыл бұрын
This is awesome; you rok my friend!
@cecaviedesrunad5855
@cecaviedesrunad5855 8 жыл бұрын
Great video
@tubeDude48
@tubeDude48 8 жыл бұрын
Question? Has anyone written code to control an RGB LED that is controlled via this device so I won't have to use the Remote that came with the AC controlled LED Bulb? --- It's called a Milight 2.4G wireless E27 6W RGBW LED spotlight Dimmable Bulb lamp Purchased from: www.banggood.com/
@prasangafernando4897
@prasangafernando4897 8 жыл бұрын
Thank you so much. But I got a problem when I was trying to upload the Receive sketch to the board. It said, timed out. Hope you'll help me to solve this. here's a screenshot of it. imgur.com/vZQV0NU
@DonovanStudioMain
@DonovanStudioMain 8 жыл бұрын
+Prasanga Fernando Just a guess, but it looks like the Arduino IDE is not correctly configured. You first must select the correct board. Then you must select the correct port. Sometimes as you unplug and plug the board back in, the port setting must be chosen again. Which board are you using?
@prasangafernando4897
@prasangafernando4897 8 жыл бұрын
+LessonStudio Tank you for your reply. I'm using arduino Mega and a UNO. I was able to build two obstacle avoiding robots with both boards. But I was unable to use NRF24L01 module. I purchased those two NRF modules from Ebay.
@prasangafernando4897
@prasangafernando4897 8 жыл бұрын
+LessonStudio I have selected the correct board, processor and the correct port. When I am uploading the blink sketch both boards work fine. But for this sketch it's not working. :(
Arduino and nRF24L01. Wiring and wireless control by Arduino
16:33
Заметки Ардуинщика
Рет қаралды 931 М.
Getting Started with the nRF24L01 Transceiver
14:06
ForceTronics
Рет қаралды 88 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Arduino and nRF24L01. Remote control relay switch, LED strip and servo motor
10:57
Заметки Ардуинщика
Рет қаралды 487 М.
All About nRF24L01 Modules
11:21
Crazy Couple DIY
Рет қаралды 38 М.
The Ultimate Guide to using Motors in Robotics (including ROS, Raspberry Pi)
25:56
A comparison of many common Arduino types and their uses.
15:04
DonovanStudio
Рет қаралды 159 М.
You’ve Never Seen WiFi Like This
20:43
Data Slayer
Рет қаралды 1 МЛН
#38 Advanced Tutorial for NRF24L01 and Arduino #2 Reliable Connections
13:47
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН