The Ultimate Guide to using Motors in Robotics (including ROS, Raspberry Pi)

  Переглядів 286,756

Articulated Robotics

Articulated Robotics

День тому

Jump straight to 24:25 for the finished product!
Learn everything you need about adding a motor to your robot, including how to connect it to a Raspberry Pi running ROS!
Repo for Arduino firmware github.com/joshnewans/ros_ard...
Repo for serial_motor_demo ROS package github.com/joshnewans/serial_...
Here are a few videos explaining/demonstrating aspects of PID control (thanks to Eric Mack for the suggestions!). Hopefully some day I'll get around to making my own...
Simple Visualisation - • PID control
Technical Explanation - • PID Controller Explained
Physical demo - • PID demo
00:00 - Intro
00:27 - A layered solution
01:25 - Basic power, motor drivers
02:57 - Motor Controllers (open and closed loop)
05:53 - Pi as motor controller (?), comms link
07:21 - Robot controller and software driver
09:30 - Demo circuit overview
10:38 - Wiring the motor driver
12:53 - Making the motor controller, open-loop test
15:56 - Encoders and closed-loop control
22:00 - Setting up ROS driver
24:25 - Using the control UI, outro

КОМЕНТАРІ: 200
@DanielJoseMP
@DanielJoseMP 6 місяців тому
Could you make a video for people starting this hobby? Like showing what things to buy, mistakes to avoid etc…
@henriquecastro4707
@henriquecastro4707 5 місяців тому
That would be great 😊
@MemoxCid
@MemoxCid 3 місяці тому
In the web page he have this
@CyberHak
@CyberHak 10 місяців тому
I was so overwhelmed with the complexity of robot making, AI, deep learning, Lidar. Coral TPU, Hexapod design, drones. neural networks, Raspberry Pi, Linux. I could go on. I love it all but have so much to learn. I watch your videos and feel more confident about all this shenanigans. Can't wait to watch more of your videos. Top man.
@evanlane1690
@evanlane1690 Рік тому
This is so much better than most ROS tutorials out there from a learning perspective! Excellent job! Most other tutorials out there barrel ahead with terminal commands with no context or practical hardware examples. Thank you!
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks!
@timjack5312
@timjack5312 Рік тому
It is hard to find such a good tutorials series of ROS2. Thank for your sharing!
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks!
@tonynajjar4893
@tonynajjar4893 Рік тому
Great explanation! I love how you threw in cutting-edge ROS2 in there!
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks :D
@jimbrownza
@jimbrownza Рік тому
.... while at the same time using a motor driver that is about 40y or so old, and which has been superseded by loads of more energy efficient mosfet based products that don't need a heatsink the size of a car radiator.
@jonathanr4242
@jonathanr4242 4 місяці тому
Excellent. Got everything working in that video. Had to run "sudo apt remove brltty" to get the serial port to recognise the arduino.
@jessenagy9302
@jessenagy9302 6 місяців тому
I have subscribed! You are doing a great job helping people learn the skills we always wanted but didnt have access to.
@TheRaidingGamer
@TheRaidingGamer Рік тому
This is a great guide to robotics for beginners. Covers more *practical* material than a 4000 electro-mechanical devices class for mechanical engineers lol. Although terminology may be the limiting factor for some but aside from the lingo this is perfect. I'm SHOCKED that this doesn't have at least 100,000 views. Great work!
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks so much!!
@autumnreed2079
@autumnreed2079 2 місяці тому
Thank you so much these videos are amazing! I just started my journey of learning about robotics and control systems and this is making it much easier to get into this coming from a person with a theoretical physics background barely any electronics.. :)
@J_A-_
@J_A-_ Рік тому
Id really like a video on what motors are best for what purpose, thanks for the video!
@azraelsoluna110
@azraelsoluna110 Рік тому
Yes to Videos on Motors! Great video!
@ChillGuy511
@ChillGuy511 6 місяців тому
A video on motor types and how yo choose them would be so awesome! I clicked on this expecting just that! Still gonna watch it though... Seems cool enough!
@Kit-Alpha
@Kit-Alpha 2 місяці тому
I second that! I have spent weeks trying to figure out the type of motor I should use. I've looked at the formulas for calculating torque etc. but for some reason, it just won't "click".
@artemt1987ify
@artemt1987ify Рік тому
Amazing and so helpful video. Would be great to have a list of all things used in this video. Wondering what is a ground regulator (its on the top left side)
@Yu-kt7ph
@Yu-kt7ph Рік тому
Thank you for your guide!!!! That must be helpful for my future project.
@sinankuniyilathoot5188
@sinankuniyilathoot5188 Рік тому
Only ROS CHANNEL that makes sense
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks so much!
@ramsha8833
@ramsha8833 2 місяці тому
I love it. Its heaven for robotics beginners
@arts5821
@arts5821 Рік тому
Good job! Ceep work on these projects, thanks for content!
@tlmoller
@tlmoller 3 місяці тому
Open loop is just fine in case of a stepper motor. This give very good control and is used in all kind of systems including 3D printers.
@sebastianrada4107
@sebastianrada4107 8 місяців тому
Great video. Please make a video about the types of motors and how to choose them.
@JIM94K
@JIM94K 6 місяців тому
Thanks for the great series Josh! Do you have any tips or good resources for adding a servo motor to the project, perhaps using the microcontroller, and being able to control it from the gamepad? For example putting the camera on a tilting mechanism so that you can pan up and down? If anyone else has done this or a similar case, I'd love to hear from you!
@mohankrishnan2022
@mohankrishnan2022 11 місяців тому
Excellent presentation!
@naum900
@naum900 6 місяців тому
Very well presented! Thank you.
@shyamkganatra
@shyamkganatra Рік тому
yes a video on different types of motor would be great
@rogernunn1
@rogernunn1 6 місяців тому
I would like to control the suspension on a model car ( made in meccano) based on feedback from an electronic gyroscope. It is supposed to keep the body of the car level whatever the terrain. My plan is to use a raspberry pi with an electric motor that is linked to the suspension, so your demonstration is well on the way to what I want to achieve.
@jeffreyjene
@jeffreyjene Рік тому
This whole series has been terrific, with clear and concise explanations and instructions. I have had one issue I haven't been able to figure out. I have wired up these motors six ways from Sunday. I've studied the diagrams and the setup on the video and duplicated it perfectly. Even so, when teleop-ing I find the motors run fine forwards and backwards, but when using j and l to turn left or right, the controls are reversed! Left goes right and right turns left. Seems weird, as turning just consists of one wheel going forwards and the other backwards. I've tested this with a joypad as well with the same results. No combination of wiring I've tried seems to work. If I wire up by switching the pins then left and right are fine, but forward and backward are then reversed. Ive even tried reversing the motor leads. If anyone else has found this to be a problem and have found a solution please drop me a note.
@jeffreyjene
@jeffreyjene Рік тому
I figured it out, I had my encoders on the wrong pins. Duh.
@obensustam3574
@obensustam3574 Рік тому
I really like they way how you went step by step through the topics. Maybe you can explain the ROS side more deeply for future projects. Thank you.
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks! Yeah as much as I tried to cram as much as I could into it, there really is so much more to say on the topic - I have a never-ending list of ideas to get through!
@maheshpatel2005
@maheshpatel2005 6 місяців тому
Nicely explained
@PP-fh2mk
@PP-fh2mk Рік тому
I REALLY LOVE THIS PROJECTS
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks!
@GiovanniChrisanto
@GiovanniChrisanto Рік тому
Great video! I have been following through the series. I just wondering, when you did the open loop control to get the thick count, did you run it on full speed (255)? I would love to watch the PID control video if you make one later. Thanks!
@ironrider4526
@ironrider4526 Рік тому
Very good explained video!
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks!
@werkstattkreuzberg4234
@werkstattkreuzberg4234 3 місяці тому
Good overview for beginners!
@umeshy
@umeshy 11 місяців тому
Thanks for posting, please make video on explanation on different kind of motors, thanks
@dgb5820
@dgb5820 Рік тому
Absolutely awesome video
@isthattrue1083
@isthattrue1083 Рік тому
Yes, if you haven't already made a video on the motors, please do. Would you also include examples of situations you could use each motor type?
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Yep, it's definitely on my list of videos to make after I've finished this current series :)
@freddiehong
@freddiehong Рік тому
This video is great! Thank you 😊
@GodsLittlegizmoguy96
@GodsLittlegizmoguy96 7 місяців тому
First, thanks so much for these tutorials! They are great! When I run miniterm, I have to use baudrate of 9600, not 57600 in order to not get English out. And it outputs a whole bunch of "sensor=xxx ouput=xxx" lines, but it will not take in any motor commands to get the motor running. Apparently many changes have since been made to the arduino code?
@Nihalmoneymaker
@Nihalmoneymaker Рік тому
Great Video!! Please make a video on motors.
@FuzzyOne37
@FuzzyOne37 7 місяців тому
Great video. Just getting started with ROS. You mentioned that the L298 motor controller isn't the best, but it will do. I agree. What other motor controllers would you recommend or have experience with? Thanks for your time!
@h7opolo
@h7opolo 5 місяців тому
9:03 whoa, youtube made the "subscribe" button animate when you ask viewers to click it during your video. so cool.
@vatsal9005
@vatsal9005 Місяць тому
wow, didnt notice that
@dr.jacintorodriguez7559
@dr.jacintorodriguez7559 Рік тому
I love the way you systematically explain complex topics. What software do you use to create your beautiful diagrams/flow charts for your videos?
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks! 90% of my diagrams are done using Inkscape as white lines/text on a transparent background. I edit in DaVinci Resolve, so I use its compositor (Fusion) to take the static images from Inkscape, overlay them on the background, fade in/out, do extra lines, etc. In addition to that, there are bits and pieces done in GIMP, Blender, and Manim. And, for what it's worth, all done on Linux! I hope to do some more theory/concept stuff in the future and make better use of manim (originally created by Grant Sanderson for his channel 3Blue1Brown) :)
@messerschmidtfpv4419
@messerschmidtfpv4419 Рік тому
i love it. works fine for me.. big thanks..
@chriskeefe3219
@chriskeefe3219 14 днів тому
Great video!
@akeelwall8449
@akeelwall8449 Рік тому
awesome tutorial many thanks
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks!
@christophermacier
@christophermacier 11 місяців тому
Awesome tutorials. I am teaching myself Python now so I can start coding my own robots. These tutorials are great for the hardware side and how to get things setup with ROS. Thank you much! Oh and do you have links for the DC motors you are using with the built-in encoders?
@atticusrussell1225
@atticusrussell1225 11 місяців тому
I looked up Yahboom 4wd chassis and got a chassis with a set of motors with encoders. Hopefully this helps
@woncheollee4297
@woncheollee4297 8 місяців тому
Thanks your Guide to using Motor tutorial. Can you please detailed pictures or diagram wire connection of 12 DC encoder motor to Arduino Nano?
@ALLAHinElcilerindenBiri
@ALLAHinElcilerindenBiri 9 місяців тому
Can we also control torque?
@sinankuniyilathoot5188
@sinankuniyilathoot5188 Рік тому
Just great 🔥🔥🔥🔥🔥
@miniminerx
@miniminerx Рік тому
FINALLY A GOOD TUTORIAL ON HOW TO STRUCTURE A GOD DAMN ROBOT
@jonron3805
@jonron3805 6 місяців тому
I would like to see a video on different motor types
@karanbirchahal3268
@karanbirchahal3268 Рік тому
Amazing !!!
@unichurchunsw1286
@unichurchunsw1286 Рік тому
great work!
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks!
@tkdefender8870
@tkdefender8870 Рік тому
What motors do you use that have the encoders built on? Can you include links or model numbers?
@kardousyoussef4338
@kardousyoussef4338 Рік тому
great video can you upload the modified version of RosArduinoBridge for arduino nano and l298n ?
@edupedika
@edupedika 7 місяців тому
Instead of gear motor is it possible to use Bldc motor ????
@pasquentmax
@pasquentmax 9 днів тому
Hello, great video I learned a lot, thank you! A question, can I replace the arduino by the Raspberry Pico? What should I do about it?
@midnighttutor
@midnighttutor 4 місяці тому
Great informative presentation! Could you please comment: If you would like to put a robot with motor control into actual use, say to raise and lower a convertible top on a car as an example, you are not going to have it hooked up to your laptop. What is the missing link or next step to get the robot self contained in a production environment, so to speak? Thank you.
@blaircox1589
@blaircox1589 7 місяців тому
I love your video on murders!!! 😁
@ArticulatedRobotics
@ArticulatedRobotics 7 місяців тому
Hahaha it took me a minute to understand!
@infestus5657
@infestus5657 Рік тому
Underated Video
@agrimekatronik321
@agrimekatronik321 Рік тому
Hello, first of all thanks a lot for these tutorials. I am using as5600 magnetic encoder for close-loop control of motors. So I can't use your code because encoder is communicating via I2C from analog pins of arduino uno. My question is: Which topics do I need to subscribe(cmd_vel) in order to make it work. For example, I know that I need to subscribe to cmd_vel to get wheel velocities from ros and move the robot, but where do I need to publish wheel velocities or positions to do navigation?
@arvinmistry9744
@arvinmistry9744 2 місяці тому
Excellent good vedio please make more vedio
@priyamd4759
@priyamd4759 25 днів тому
Liked and subscribed.
@whysoairyair
@whysoairyair 2 місяці тому
Amazing video, really well explained. Im having an issue with only the pins connected to D2 and D3 are being counted on the encoders, no other pins would count the encoder readings. it looks like there's an issue with the interrupt pins, which is the arduino nano has only two - INT0 and INT1 on D2 and D3 but its working for you in the video so i cant be so sure i've tried swapping the encoders too, both are working perfectly but its just D2 and D3 that count. and this code wont work on an Arduino Mega :/ PS: im using OE-37 Hall Effect Encoders - mounted seperately any suggestions?
@olubukolaogunsola5864
@olubukolaogunsola5864 8 місяців тому
Great video; how can I use L293D as the motor driver? that's what I have, and it's quite different from the one you used,?
@ArticulatedRobotics
@ArticulatedRobotics 8 місяців тому
I'm not sure, I have not used the L293D, sorry. I thought they were fairly similar though? It is a long time since I have looked.
@olubukolaogunsola5864
@olubukolaogunsola5864 8 місяців тому
@@ArticulatedRobotics, thanks for the response. I found out it is much different. I decided to buy L298
@Automatic_Robot
@Automatic_Robot 6 місяців тому
Hello, I have a problem that the speed of both wheels is not the same speed, the right wheel is faster than the left wheel. What do I need to do now, please help me. Thanks a lot
@KSLEEProjects
@KSLEEProjects 2 місяці тому
I have the same problem
@ThanhPhamRb
@ThanhPhamRb Місяць тому
⁠have you fixed that problem yet?
@Automatic_Robot
@Automatic_Robot Місяць тому
@@KSLEEProjects Have you tried checking whether the signal read from the encoder of the 2 wheels is equal? If the signals of the two encoder are not equal, you should check the encoder's signal wire again
@Akash-el4ls
@Akash-el4ls 29 днів тому
I did this but without encoder I made Pwm to adjust the motor speed and set the pwm same for both the motors
@jubabi_studies4462
@jubabi_studies4462 Рік тому
Hello, thank you for this video, please how can i use the same thing but with ESC and brusless motor ?
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Yeah a lot of people have asked for that! I will definitely do that eventually, but probably not too soon as I have a lot of other topics coming up :)
@ranikinnal3413
@ranikinnal3413 6 місяців тому
I've been following your series and its really useful and informative!! Can u please share a link i can access the video on motors selection(as mentioned in time stamp - 1:16) if its aired already? If not i hope you can make one, would be really helpful! @ArticulatedRobotics
@OZtwo
@OZtwo 5 місяців тому
My latest project I'm starting on is a simple eye that will follow you around the house. I have most of it yet still need to work out how to track sound using a Raspberry Pi. Any good tips?
@codewithemmaprime
@codewithemmaprime 11 місяців тому
Hey Josh!! Thanks so much for this tutorial. Can I control the motors in open loop mode?? Like I mean for the real robot because my encoders broke 😢 and I cannot buy another
@ArticulatedRobotics
@ArticulatedRobotics 11 місяців тому
Yeah for sure! If you are using my ros2_control hardware interface you want to replace the "write" command with one that sends an "o" message instead of an "m" message, and write a line that scales the speed request to the appropriate open loop signal.
@user-pv8yv1wu2l
@user-pv8yv1wu2l 6 місяців тому
Hello can anyone tell me why we arent using Raspi directly to supply PWM to Motor driver. Why is Arduino Nano used?
@stopgox
@stopgox Рік тому
I want to drive 4 brushless gear motors (mecanum wheels) that have built-in encoders, there are 5 wires coming out. I need a cheap driver one for each wheel any suggestions. Thanks for the great vid.
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks! My experience with brushless motors is actually pretty limited unfortunately (something I am keen to explore more in the future). Do you have a link to the particular motors I could look at? Some have a driver on-board. The main brushless driver I am aware of is ODrive (odriverobotics.com/) but it is not cheap. Some similar ones are reviewed here ukposts.info/have/v-deo/j5Jim6mBa4Fl0YE.html Alternatively you may have luck using an esc like those used for drones and then wrap that in a closed-loop control of some kind using the encoders. Sorry I couldn't be more help, like I said I definitely want to dive deeper on this in the future!
@owletkami8018
@owletkami8018 Рік тому
I would actually love to see the motor video on how to choose them and how to control the various types of motors (induction, DC, Universal, AC, 2-phase, 3-phase) what does it all mean for my project making journey?
@messerschmidtfpv4419
@messerschmidtfpv4419 Рік тому
That would be too much. accompany mr newans on his journey. it's going to be interesting enough
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Haha thank you, I'm glad to have you both along for the journey! I would like to make some videos going deeper into those different motor types, but at this rate that will probably be a very long ways off (like 12 month+) I hope to do one on Brushless DC motors in the shorter term (maybe in 6 months or so) as they are very relevant to the hobby and small commercial robotics that I'm focusing on at the moment.
@messerschmidtfpv4419
@messerschmidtfpv4419 Рік тому
@@ArticulatedRobotics I would like to rewrite the Rosbridge for Arduino so that 4 of the 12V DC motors can be used and read. check out my channel for the reason :) I look forward to continuing my journey with you.
@emreucar1888
@emreucar1888 Рік тому
Very good video. Can you make a video for rosserial for ros2 ?
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks. I think last I checked there was no version of rosserial for ROS 2? It's a long time since I looked into it though. I'll keep it in mind for the future :)
@ErkanUnal.
@ErkanUnal. Місяць тому
Have you tried with a BLDC motor equipped with a Hall sensor?
@lion87563
@lion87563 3 місяці тому
To make a parallel between real robot and the Gazebo simulation, we can say that teleop_twist_keyboard node is Robot Controller and control plugin node (for example gazebo_ros_diff_drive) is Motor Controller. Is this correct?
@edwingeorge5264
@edwingeorge5264 5 місяців тому
currently i have SPG 30 E gear motor is it possible to use this method for getting values from motor to ros? and iam using Noetic
@MihailAndrievich
@MihailAndrievich 7 місяців тому
Hi, will it work if I'm using DC motors without encoder? Please share some hints.
@ArticulatedRobotics
@ArticulatedRobotics 7 місяців тому
You'll have to make some modifications to the code if you're trying to integrate it in to the rest of the project but yes you can (and you'll only be able to run in open loop). I'd recommend running your motors under standard load at a bunch of different PWM values, calculate the number of revolutions, plot it on a graph and fit a line to it to create "fake feedback".
@muhammadqaisarali
@muhammadqaisarali 6 місяців тому
Can you please make a video on micrROS as well?. What i understood is that microROS should have been used foe this hardware level stuff. Further why Ros control if microROS is already out there?.
@XxPwnZsxX
@XxPwnZsxX Рік тому
I have mine wired up just like your and everything works. My only questions is when I send the O command the motors spin for a few seconds and stop on their own
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks, yes mine does too, it's just not obvious from the video as I kept repeating the command. This is part of the design, the idea is that the thing controlling it should keep sending speed requests, and if it loses connection or something the motors will then stop after a few seconds instead of driving out of control :)
@XxPwnZsxX
@XxPwnZsxX Рік тому
@@ArticulatedRobotics Thanks for the clarification Im far into your tutorial and robot has not failed me and niether have you 😁
@JIM94K
@JIM94K 11 місяців тому
@@ArticulatedRobotics This is happening for me, even when using the teleop keyboard and joystick to control the motors. I thought it could be a power issue, but it also occurs when controlling a single motor, and using a power supply. Any ideas?
@gearhart0steve
@gearhart0steve 8 місяців тому
​@@ArticulatedRoboticsyeah man you missed a big part here how can we repeat the commands so that the motors keeps spinning and we can measure encoder counts?
@B94U2
@B94U2 Місяць тому
Where did you get the blue work mat?
@ahmedhelalmahmoudhassanmah3028
@ahmedhelalmahmoudhassanmah3028 Місяць тому
Please, can you send the link of the video of uploading the code on to the Arduino ? I didn’t find it in the description as you said
@user-hn1ke7gl5u
@user-hn1ke7gl5u Рік тому
how can i use this to wire 4 motors instead of two with Arduino also? if there is a link that can help
@arjunm2412
@arjunm2412 Рік тому
If I need to add IR proximity sensors in the robot in which part I need to change the code
@heitorl8095
@heitorl8095 Рік тому
The best
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Thanks!
@underlecht
@underlecht Рік тому
How does serial_motor_demo/driver knows the exact commands to send to arduino? does it emit the same commands you were sending manually - "o ", "e",... ?
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
That's exactly right. The driver is just sending the same commands I was sending manually. The only difference is it has a bit of code that converts the value in rad/s (that the gui is publishing) to counts/loop (that the Arduino expects). Check out the code here (good bit highlighted) github.com/joshnewans/serial_motor_demo/blob/da60760df16b868f2ef487e485e480d28b7d46db/serial_motor_demo/serial_motor_demo/driver.py#L82-L106
@frankfurtdynamics2783
@frankfurtdynamics2783 11 місяців тому
Hi I used exactly the same code but I don't recieve any encoder Data. I checked the encoder manually with an Oscilloscope and it works. So I believe it has to be a problem with the code. Any idea?
@benservey9295
@benservey9295 Рік тому
Hey all, Scott here!
@Swqtt
@Swqtt Рік тому
I'm running both the GUI and the driver on my laptop. And it doesn't seem it is sending anything, it is constantly giving a time-out error.
@MemoxCid
@MemoxCid Рік тому
Hello where can I find the code for the L298N and Arduino?
@curtisnewton895
@curtisnewton895 7 місяців тому
L298 has a to high internal resistance
@ArticulatedRobotics
@ArticulatedRobotics 7 місяців тому
Definitely agree. It is a terrible motor driver for practical applications, but it is extremely cheap and easy for beginners to use.
@muhamadkhosyiizzatullah274
@muhamadkhosyiizzatullah274 4 місяці тому
can the arduino program on your repo need improve if i use differen motor driver shield like pololu VNH5019 or IBT-2 (BTS7960)? because i need more power for the motor
@mehmetalisahin3263
@mehmetalisahin3263 2 місяці тому
did you find them i need to code for bts7960
@DesertVox
@DesertVox 6 місяців тому
I like this moda. This murder is good for robotics projects.
@Aloman76
@Aloman76 Рік тому
Do raspberry pi circuits require the computer to be plugged in the whole time while a program runs? Or can u download the code onto the raspberry pi?
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Sorry for the late reply. Hopefully I understand correctly. The Raspberry Pi is itself a computer, so it will be running the main software for the robot. Right now, we connect to the Pi remotely and start software on it, then use gui software on the dev PC to interact with it. In the future, we'll set up the Pi software to run automatically on startup so that it can do things without a PC connected, although most of the time it will be just easier to have the PC connected (over Wi-Fi) so we can visualise, and perform more complex tasks.
@gooseisloose4015
@gooseisloose4015 Місяць тому
hi! what if i want to make a robot that is completely disconnected from my arduino UNO and can self run. Basically I upload some preset direction code and take it off the arduino UNO then run it. Is this possible with these motors ?
@Mateus-vj6fy
@Mateus-vj6fy Рік тому
Hello Josh, I'm trying to use the Arduino Mega with this example, but I'm having trouble with the encoder's ports, I think that ports C doesn't work as it should using Arduino mega, how can I switch from port C to port F? And is it harder to change this code to work in the Arduino mega?
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Ooh it's been a while since I've written Arduino code and I've never used the mega before. I am quite certain it will be a very simple fix - just a matter of knowing the right thing. I would have thought it's a matter of just changing the defines in encoder.h to be the new pins?
@ByteHendTechX
@ByteHendTechX Рік тому
@Mateus did u solve it??
@whysoairyair
@whysoairyair 2 місяці тому
did you solve this?
@vetriselvam5152
@vetriselvam5152 6 місяців тому
first of all thanks this series is awesome but i have one doubt how can i find revolution value i am using Orange OG555 High Torque DC Motor 12V 100RPM 173.6N-cm Encoder Compatible but you said 34 revolution for your motor but how could i find revolution for my motor
@jersonimmanuvel2036
@jersonimmanuvel2036 6 місяців тому
Same doubt
@AnweshAdhikari
@AnweshAdhikari 4 місяці тому
@mansurul8293
@mansurul8293 Рік тому
Do you have any BLDC Hub motor or DC motor controller explanation?
@ArticulatedRobotics
@ArticulatedRobotics Рік тому
Not at the moment, but I'd like to!
@mansurul8293
@mansurul8293 Рік тому
@@ArticulatedRobotics Can I get your professional contact details?
@MC-DevaPrasanthM
@MC-DevaPrasanthM Місяць тому
I'm getting in error #include WProgram.h while compiling in arudino.... Could you help me to fix this sir
@user-xp3kk8og6p
@user-xp3kk8og6p 5 місяців тому
hello bro, how do you know the max rev per second of this motor equals 1.5 ???
@whysoairyair
@whysoairyair 2 місяці тому
use it at max pwm, ie, 255 and measure the encoder ticks or the rpm
@-CHARUAHAMED
@-CHARUAHAMED 3 місяці тому
How can i choose the rpm of the motor
How do we add LIDAR to a ROS robot?
22:45
Articulated Robotics
Переглядів 119 тис.
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Переглядів 563 тис.
In 10 Minutes This Room Will Explode!
10:00
MrBeast
Переглядів 49 млн
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Переглядів 3,2 млн
How to control a DC motor with an encoder
9:30
Curio Res
Переглядів 401 тис.
What's the difference? Arduino vs Raspberry Pi
6:21
Tinkernut
Переглядів 1,8 млн
The coolest robot I've ever built!
19:40
Thomas Burns
Переглядів 4,3 млн
Building an Internal Cycloidal Robotic Actuator
19:01
Aaed Musa
Переглядів 364 тис.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Rachel De Barros
Переглядів 352 тис.
How To Size Electric Motors for Any Project: A Beginners Guide #085
11:21
Jeremy Fielding
Переглядів 621 тис.
How to use Cameras in ROS (Sim Camera and Pi Camera)
32:01
Articulated Robotics
Переглядів 76 тис.
How I Started in Electronics (& how you shouldn't)
7:05
The AM Tech
Переглядів 580 тис.