This isn't just a great informative channel, but a place where I can find happiness. I don't know you in person, but I can say that you have a beautiful heart. Thank you so much!
This is a great series to get into robots for someone that doesn't know much about computers or robotics! It took about an hour to figure out curses must be run from the terminal and not inside idle to work properly.
I’ve done it! Today I made a working robot like yours. I know this is an old video but I recently found your channel. Next I am going to add streaming video using the pi cam and design a 3D body. Am I showing off? Yes, yes I am! Thank you Chris!!
Very nice tutorail and i will most certainly view the other ones. Little hint for anyone doing any programming (might already be mentioned in the older comments ine here) try to avoid any copy paste madness. If you need to repeat anything (like his dancing sequence) you can just make the movements into functions. This saves time, headaches and in more complex robotics filesize(not THAT important but you never know) + its generally a good habit to learn in programming. O and excuse any mistakes i may have made :D Ex. with the move forward function elif char == curses.KEY_UP: GPIO.output(7,False) GPIO.output(11,True) GPIO.output(13,False) GPIO.output(15,True) instead you can do this: elif char == curses.KEY_UP: moveForward() ~(the rest of the code) (this needs to be waaaay at the bottom and not inside the main part of the code or else it isn't a proper function) def moveForward(): GPIO.output(7,False) GPIO.output(11,True) GPIO.output(13,False) GPIO.output(15,True) def moveBackward(): ~ def turnLeft(): ~ def turnRight(): ~
maybe you could add another video to this series where you optimize the code a bit. Maybe write unctions for forward, backward, etc.. and then just call functions to perform the little predetermined pattern. You wont need to write aqll that code every time.. Great beginners tutorial. Thanks.
👍👍 Tips and advice aplenty. Only yesterday I had to cut some plasticard for the first time. I used a dremel with a circular saw attachment. The resultant line was like a dog's hind leg. The plastic melted in caterpillar-like blobs which had to be snapped off and there was much filing and sanding done to make the job look presentable. Dear oh dear.
Thank you for this serie of videos! It's hard to find tutorials of this quality in French. You improved significantly my knowledge of electronics and robotics technologies!
Hi Christopher i said before i had built one on a cheap chassis since then i have added a camera using motioneyes software downloaded on raspbian all running on a 512 meg pi model b i intend to control the camera pan and tilt using adafruit 16 servo control board and a really cheap mount i bought on ebay as i am 72 years old it amazes me how easy this type of computing/robotics have becomekeep up the good work
I know I'm a bit late to the party, but thanks for this and all your other tutorials, very clear and concise, and well presented. I am currently waiting for my postman to battle his way through the snow with the required parts.
Thank you for this! I've already built a much similar robot that I got moving with python and my pi3. Was wondering how to write python code for key inputs and this is exactly what I needed. People who make videos on niche topics like this are more important than they think. You have probably made many more people happy than me, not everyone writes a comment about it. I'll have to check out your other videos.
Mr Barnatt you are the best teacher very easy to follow your video, I'm building a robot and would like to see you with another video on how to control about ten functions ,forward, backward ,arms up arms down also elbows up and down, all these functions with keystrokes all done wirelessly,I'm salivating waiting for an answer thank you again
Thank you for a wonderful video! We are ordering the parts to make a robot kit for my son's birthday next month. Should be great fun and a good starting point to teach him computers.
If I had a kid, this is what I would buy him for Christmas. Then we would build it together. Regarding the "movement sequences", you could have created a separate function for each direction, calling each function for an arbitrary period of time in an arbitrary sequence instead of writing a bunch of lines. This was very interesting nonetheless. *That happy little robot needs a friend. Because everybody needs a friend.*
Your build is good because you use a battery really nice, I have one at home like yours but my is green, but it the same work like yours. Now I only need motors to build
What a fantastic video to stumble upon. Absilutely Brilliant Content and delivery. Well done sir. I look forward to viewing more from your channel. Thank you.
ExplainingComputers out of curiosity. Is there any Content you have or could recommend for controlling a brushless motor? Or is it the same idea as the video? Thanks
As far as I am aware, controlling a brushless motor is no different to what we have here -- you need a motor controller to allow low-level digital signals to allow a high power electro mechanical device to be controlled. Note that the L298N used here can also be used to speed control the motor -- something I will be covered in video in early 2019.
Olá sou brasileiro, gostei muito do seu canal, infelizmente temos a barreira do idioma não sei falar englês, pois consigo entender algumas coisas apenas. Acho muito legal as experiências e conteúdo que é passado no seu canal. Agradeço e continue assim obrigado!.
Thanks for this -- the wonders of Google Translate allowed me to read your comment. Here is Google's attempt to translate this back: Obrigado por isso - as maravilhas do Google Translate me permitiram ler o seu comentário. Aqui está a tentativa do Google para traduzir isso de volta:
"A very happy little robot, indeed." Made me laugh and got me (off topic) wondering.... What is the funniest movie (or show) you have seen? Thank you for indulging me and for your excellent RU-vid channel. :)
You are an absolute genius!! Thanks so much for this,,Absolutely brilliant program , and excellent explanation!! second to nobody ,and the website is so interesting,hope to hear from you very soon
What an awesome video... thank you so much for sharing it... it is a game changer for learners like me. Please keep doing more. Loved it thoroughly !!!
Hey! This is a really nice project. One thing i would change: I would change the code in that way, so the robot moves as long as a button is pressed. So it will be more controlable.
Agree on the code, but harder to do -- at least in a manner that can be relatively easily explained, and implemented consistently in any version of Python. :)
You can add the time function in the first place and configure it to run around 0.1 seconds each time the key is pressed which eliminates the need to add the stop key (like a RC car).
Thank for helping us . BUT plz explain what each line of code does, because instead of learning them by heart we can understand them ( I am talking about the Curses lines of code ).
The Rasp PI IO is a 3.3V logic while the L298N is TTL (5V). You may want to use level shifters to protect the PI from possible damage and power supply leakage.
Now I suppose I'll have to learn to make the keys behave in a momentary fashion, that is to say the motors only operate as long as the buttons remain depressed.
Yes, it did take me a bit of time to get back to this! :) I started toying with this over 18 months ago, but somehow other things got in the way. But I will return to the robot quicker next time! :)
Just stumbled on this video, would like you to put a list of sources for everything you used for this project, and maybe I missed it, but explain or show the ultimate finished project as you indicate sensors for a wire following robot ( and maybe how to set up and program a sensor robot that can detect obstacles). Very well done video. I was looking to decide whether to buy an arduino or a Rasberry Pi, and I think it might be well worth it to go for the Rasberry Pi
There is a web page for this project and its five videos (to date!) here: www.explainingcomputers.com/rasp_pi_robotics.html This includes links to parts, and the final video (for now) is for the line follower. :)
what about transmitting the A/V signal ( video) over the Transreciver ( Transmitter RF) and using an other Transreciver ( reciver RF ) to gey the video for either coding or riding around with the camera also mounted ? the RF modules nowdays are common and cheap things and it would be fairly easy on Zero to get the AV signal out straight from the solder points on the board . Might be a nice video ;)
great video, now that the Pi Zero version 1.3 comes with a camera, you can take pictures or color detection, etc... can you do a heat benchmark on the New Pi Zero... thanks, you make good videos.
Understand why the motor battery ground wire is connected to the driver, but why is it also connected to the raspberry pi? Doesn't that defeat having optical isolated? Or does your driver not have optical isolation? Thanks for the videos.
+ExplainingComputers / Christopher Good video and also a good introduction into the usage of Python. I am personally interested in the Broadcom Y USB / WiFi access point adapter and can foresee a host of IoT styled projects that this device could be used within. I have been reading about how this device could be used with the Broadcom WICED Sense device (bluetooth / USB device with gyroscope / accelerometer, compass, pressure and humidity / temperature sensors) and would be interested in seeing any future projects that incorporates these or similar devices. As usual, you are providing informative and interesting content, keep up with the good work!
Yes, it is a very nice piece of hardware. Made by the manufacturers of the SoC for the Pi, so highly compatible with the Pi, and also very low power drain.
One thing, you don't blow your RPi by connecting the motor directly, it simply doesn't supply enough current and the motor doesn't even move -- I know this because I've tried it :)
Yes, you may not destroy the whole Raspberry Pi. But I can assure you that it is fairly easy to damage the GPIO pins on a Raspberry Pi by drawing too much current from them. They have no overload protection. Even an LED connected without a current-limiting resistor could do it.
Where can I get ahold of the library for modules like time and curses. I understand how to import them but how do you know how to use them? For example: time.sleep... where can I find out about the "sleep" part of the time module and what other commands can be used with the time module?
its cool but in your robotics project is it possible to put a camera on that? if possible please make a video tutorial about adding a camera/video to the robotic projects thanks
For some reason when I run this code, after about ten seconds one of the motors will stop responding. It will still respond to forward and left commands but not back and right, whilst the other motor is fine. Initially it will respond fine to all commands but like I said after a few seconds it will only go in one direction. I have tried two Pi W's admittedly with the same SD card. I also made the Pico W version Robot and that had no problems at all. Perhaps I need a new SD or something for the Pi W. Strange.
This is strange. By trying two different Pi Ws, you have ruled out issues with a particular GPIO pin. It could be an issue with a connection to the motor controller, and out to the motor on that side. You could check for a motor controller issue by switching the motors over (A to B and B to A, as it were). If the problem persists, but on the other side, then you will know the issue is with the L298N. Unrelated, you may be interested in the better control code that I put together in this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-H1PIzxNdGGk.html
@@ExplainingComputers Thanks for the help, I installed a new version of raspbian and that seems to have solved it. I wanted to use that pygame code but I could not get pygame to run via ssh as I wanted to control the robot through a networked computer. I have tried so many things for almost the past week, many many bits of code, endless googling and watching videos. Turns out all I needed to do was run the pi over VNC and now it works perfectly. It's going to be for an Escape Room. The robot will actually be controlled by touch sensors using the Bare Conductive touch board and the HID Keyboard function. I should probably send you some commision if the Escape Room is successful. Thanks Christopher.