I just started learning python recently. Coming from a 3D graphics and animation background, my initial purpose for learning the language was to be able to drive some controls and create expressions in Autodesk maya. But since I've also studied Computer Engineering in the university, I've found these videos quite fascinating. Now i know that python is really going to open a broader door for me to explore. I'll strive until i get to the point where Computer Engineering and 3D meets. I can't wait to get my raspberry pi. You've really inspired me :)
Hello Christopher! I just wanted to tell you how much I enjoy your videos. I always watch them no matter what you make the video about because I enjoy your production, your delivery and your methods very much. Keep up the good work!
Sir you must Comment frequently at LinuxTechtips, unboxtherapy,etc. so you can gain more subscribers out there. When someone knew Explainingcomputers what youve comment.instantly theyll press like button and then someone will try to peep your channel and begin to subscribe absolutely..You are really desrving.
This is the best series I’ve seen from you which is a massive statement. I never thought I’d be able to understand how a remote robot was built. I didn’t even fully understand how IP addresses work. I thoroughly enjoyed the series and this is definitely a future project. It would be nice to think Rex Garrod saw this series before passing, it’s quite possible he would have still been able to understand what you were doing. I'm certain before he had dementia he would have applauded such a clear, easy to follow series that shows robot building in an accessible way.
"In 2017, robots will run on pies" In the 20th century, that was in the realm of the impossible. Thank you for the information on SSH. Love your channel.
I've been wondering about these exact subjects for so long now.. RasPi GPIO access, Linux, Python programming, SSH... this series has been an massive eye-opener for me... what a fantastic way to start a weekend! And oh, what a coincidence... the hexapod robot I've been building, with intentions of driving with 8-bit PICs, will perfectly fit a full-size RasPi.... oh, the world you've just opened.
Thanks for this feedback. I hope that you enjoy the final part of the series -- posted last week -- where I turn the robot into a line follower. You may also be interested in my Raspberry Pi GPIO inputs video -- ua-cam.com/video/NAl-ULEattw/v-deo.html -- which kind of completes the set. Your hexapod robot sounds interesting, and a great project to drive with a Pi! Good luck with this. :)
You can also shorten your dhcp range from 2-199 in your router and then use fixed addresses from 200 upwards, this prevents conflicts. In putty you can give a name to your ip-address and save it, next time you can choose it from the list.
Just as further explanation: 1- MAC addresses can be changed in some hardware configurations. 2- Since some WiFi router devices could lack a DHCP address reservation function, or router config pages can change an awful lot between different devices, I would have used the dhcp daemon on the client side. The RPi0 is pretty much the same everywhere given the same OS layer; that said, it is possible to set dhclient (or other clients such as dhcpd or dhcpcd) to request a fixed DHCP address from the router/access point. This requires additional work, config file digging and some Linux VT skills, but it works much better IMO.
Thanks for this one Chris. I have one of those 'plastic card' TV antennas, and a Pan & Tilt with two servos to adjust it. It's been a pet project on the shelf for a few months now, and this will help a lot towards completion. Just need to adjust the code for small movements instead of continuous, and it should work fine. Thanks again!
Not so much into robots (yet) but, that "address reservation" thing as general idea helped me to figure out something about my damn LAN configuration. Thanks!
Great series, looking forward to the next ones. I've only recently found your channel, but been watching a ton of your videos recently. You explanations and presentation is fantastic. Yes, of course I subscribed ... are there really people out there that haven't?! Surely not.
How about implementing a Web server on board and controlling over WIFI? maybe have the web server host a simple web page with touch buttons ( tablet / cellphone) and using a Keyboard controls? Add a camera module and make a simple webcam, wifi controlled rover? Great Videos KEEP THEM UP!
Id love this, i tried to make a robot on a beaglebone but only got as far as a webpage that could control the robot which worked well but getting the stream to work properly was such a pain i ended up binning the project.
Why do you hide the Mac ID? is it possible to connect via WiFi or LAN to a device you know ID number of even if it's already connected to another network? I know every item has its own unique code, but are they ever repeated? for example will all PlayStation 4 have same Mac ID?
Hi Chris, Been following this series, and am building my own. After trying to run PuTTY. I got a connection refused error. Fixed by turning the SSH option to ENABLE in the Raspberry Pi Configuration menu. From the Raspian desktop, Raspberry - Preferences-Raspberry Pi Configuration. Interfaces then enable SSH click OK and reboot. Then the Pi will work from PuTTY. Raspian was from NOOBS version 2.8.1 released 2018-04-24. Hope this helps others that have the same problem when following. Keep up the good work. Andrew D
that is some really useful info.....heard about ssh before but had no idea that it is so cool....remotely control any device through the terminal.....fook yeah!!
Great set of tutorials. I am in the process of building my first ever robot using these tutorials and my own updates and changes. When it is done, I'll let the channel know how it went.
My desktop here is a still from a CG film that I made many years ago. It was/is a very nice place that I "worked" in making the film for about 18 months. :)
oh yeah.. hummin' right along with you, digin' it all.. yeah, yeah got it.... until I tried to get into my router.. "oh yeah" I said to myself "I changed the name and password, now where is that password list?" Well it was so long ago it is not on my list ! I did this to keep my son out of it years ago and I do mean years.. so now I guess it is about time to change my router anyway..I already have three of them sitting in the back why not make it an even four... Oh how I love getting old.. heck I am still looking for the eggs I hide last easter.. even the kids got tired of helping... Well good on ya my friend.. enjoying the heck outta your vids...
Really nice project, thanks a lot for sharing. May I suggest an alternative with Bonjour protocol to let the Pi announce itself on the network. That way, there are no more pain to reserve/maintain IP, just connect to, for example, zummo.local and that's it.
a cool next step would be using the new raspberry zero revision that incorporates a camera connector, so you can cast live images from the robot to the laptop or tablet.
Very helpful but just found one thing to add. Needed to ensure that ssh service was running on the Pi. # to start one time sudo service ssh restart # to ensure start on boot sudo systemctl enable ssh
Here's an idea for a future project: Add a camera, implement web based controls and open the server to Internet (and probably put it on a separate subnet and firewall it off from everything else) and let your viewers drive the robot around your studio.
I noticed you debadged the netbook. I took it to another level being cheeky by putting the stickers of a first-gen core i7 and windows 7 on my laptop even though it is 7th gen and windows 10 hahah
Very nice and complete tutorial. Just one thing. You do not need to hide your MAC, since outside visitors can see only the MAC of your router. The router normally replaces the MAC with its own. However, if you plan to use your robot outside your network, maybe hiding isn't a bad thing 😊 I have tried to lock out hackers by MAC, but failed due to the mechanisms of routers.
good morning sir, i'm very fond of your tutorial videos. Being a student, i hereby request you to clarify my following doubts by making further videos thereon- 1) How can raspberry pi smartsim be attached to Zumo, if it can replace external WiFi USB for controller connectivity ? 2) How can the board's WiFi be put to use for controller connectivity ? 3) How to make a webpage consisting of Zumo control keys not restricted to up,down, right and left, using it IP address ? LOOKING FORWARD TO YOUR REPLY AS FURTHER VIDEOS IN THIS SERIES ON THE REQUESTED TOPICS !
I purchased the 'Scratch Programming - In Easy Steps' book and have been working through it with my children. Towards the end of the book it introduces you to the Raspberry Pi and suggests that you continue from there. So I did a search for Raspberry Pi projects and found this; we've been following and enjoying your tutorials ever since. Please keep them coming, we can't get enough!!! :-) A couple of suggestions that we have sat and thought about. 1. Would it be possible to purchase a basic USB solar panel and attach it to the top of our robot and have it charge the portable USB power bank? 2. How about adding a Pan-Tilt HAT so that we can attach and control the Raspberry Pi camera remotely? We eagerly await your next video for this project. Thanks
Thanks for this -- I'm glad you enjoy my videos! :) There will be some additions to this robot in future videos, and I'll also be working on a larger robot -- and a camera will feature! :)
Unsure if this question has been answered already - apologies if so: If you are assigning the Pi its own IP through your personal router, if you were to take the device and access it on a completely different desktop connected to different network; would this same prescribed IP work as an access point? Great video - Learnt so much from you, thank you!
nice video. looking forward to the line following aspect of it. Are you planing on using ultrasonic sensors to detect objects on front or drops in elevation (stairs etc). Thank you for sharing.
Hey Chris, really like the videos especially the single board demos. Have you messed about with the BBC MicroBit? What's your thoughts on a Sunday video for this? Keep up the stellar work.
I've seen people suggest adding a camera. I can say that I have done this and it is pretty cool but my one problem is that I can't have the control and camera on the same device so I'm connecting camera to phone and robot to rii keyboard. Is there a workaround to this? Ps I'm using a GoPro if that makes a difference
Been watching the videos. Thanks for making them theyre perfect for people that have some computer knowledge just getting in to raspberry pi. Question: How hard would it be to make a standalone program (for a touchscreen monitor) with the forward/backward/left/right/stop buttons on it?
@@ExplainingComputers thanks for your reply. I do have it (pi 4) currently hooked up to a 3.5" lcd touch display. My goal is to create a (joke) device that will sit in my hallway and play one of several pre-recorded sounds any time one of my roomates walks down the hallway. (I have a motion sensor as well). I would like to put buttons on the display to add new sound bytes or delete previous ones from a list.
Is it possible to tinker with the CPU voltage and overclock the pi to.. maybe 2Ghz with that Extreme Passive Cooling you did? From the videos I've looked at it seems to be limited to 1.4Ghz :( Really would love to see it if you can push it to 1.8Ghz or something with the Extreme Passive Cooling you did
squalazzo I'm aware it's not standard, but then again certain distros or people in general just do what they want to make it easier for them. I generally use them as-is.
I always lock all my devices on my network via MAC to a reserved IP address. The DHCP Leases page on my router is normally where I go to find out the IP and MAC address quickly. I have two IPs reserved for my Pi3, one for the LAN and one for the WiFi. Have you thought about mounting a camera on it? Set the camera up as an IP camera for remote viewing and drive it using your Android tablet to areas where you can not actually see it.
I build this project with your interesting 4 videos thanks a lot I'm beginner user but I have a question? how I make the motor only walk when I pressed key and stop when I don't pressed
@@ExplainingComputers any chance you could provide a link to websites that show this working please or maybe show this working soon(ish) I just really need it for a university project by the end of this coming week!
Hi Chris, Your Videos Really Help Me With Computers. Can You Do A Series About Electrics Such As Circuit Boards And Components Like Resistors And Capacitors? Thanks!!!
Hello, thanks for all these videos. I'm interested in learning these things and could use some tips on the topics to grasp. I'm learning phython right now wondering what's next. Thanks.
I know this is an old request, but if you install motion from crisian it is pretty easy to add a webcam (Picam, Pi Noir or USB- works with all of them!) that you can view from a webpage.
Out of curiosity, why do you use dir rather than ls in the terminal? It takes 50% longer to type, and doesn't do highlighting to differentiate between files, directories etc. Oh, and thanks. Over an hour of Sunday eaten up watching this series. I have Netflix stuff to watch, you know ;)
Can't I do so I simply add a port in which the Router will try to avoid giving to other devices, but when a device on the network asks for that number it will happily give that free spot to whoever is asking for it. Because later on I would like to add more devices on the network with a static IP, so when I'm in the Router configs I can simply make 4-5 new spots all at once and then set the devices one at a time to their respective spot. A pre-selected spot for ANY device who has a matching static IP address on the same network but will avoid giving those spots to none static addresses, is this possible? And something completely different, you log in with your standard gateway to get to the Router config page right? I got a different number than yours, but I still cannot access the Router page through any browser I have installed (Chrome, FireFox, Explorer). You got any tips what I should look up to gain access? And I would love if you could do more hardware tutorials, stuff such as how to use and install a LCD screen (I got a Adafruit 16x2 cha. monitor who most people buy when they want to experiment with new devices), different buttons such as roll buttons you find at most console controllers, etc.
This is amazing and I'm doing the same thing but can you show us how to change the drive system to eliminate using the enter key? Thanks and keep up the great work!
One solution is to put in a time delay -- something like time.sleep(0.1) -- at the end of the while loop, then turn all motors off before the loop repeats.
is possible to connect some sim card adapter turn on data and add camera? that will be cool. You will can go like 50 km far and will be still working you will see where are pi
Hi again Christopher - I'm trying to figure out how to get the keyboard control script (key_robot.py) to run when I start up my Pi. There seem to be a number of approaches, the only thing I've made any progress on is getting the terminal to load at start up via the startup file here: /home/pi/.config/lxsession/LXDE-pi/autostart. I have not been able to get the python script to actually run on startup. Is this possible? I thought I heard you mention it somewhere but I haven't been able to find the video. Thanks again!
Greetings -- I covered this fairly recently in this video -- ua-cam.com/video/j6mglfhWZrQ/v-deo.html -- a different robot, but uses the same approach. Hopefully this will work for you. Code is here: www.explainingcomputers.com/pi_devastator_videos.html
Dang. I was doing pretty well and the terminal actually opened and looked like it was going to work, but I got no response form the keyboard. Now I'm getting "curses.error: setupterm: could not find terminal" even when I try to just run the script in a python shell. Not sure if I hosed something up or what, your change was pretty straightforward.
You have to run the code in a terminal window or it will not work, as the curses method of obtaining keystrokes does so from a terminal window (hence the error you get above). All I can say is that the method in my Devastator window works! :) Good Luck!
Can I control the robot if the robot is far away like 300 km from me, the robot connect to a WiFi and I control it with my laptop. Can I do that ? Sorry for my English !
Hi, Great videos! Thanks. #4 has inspired me to write couple of Android apps to control my CamJam robot rather than using SSH. Both send commands to the robot using UDP, one app controls it using the motion sensors and the othere app allows tracing a route on the android screen which is then translated into a series of moves. Pretty pleased with myself! However, the motors are either full on or off and I really need a way to control their speed. I'm sure that I've seen a video of yours where you muse on using PWM (plus an L298, I think). Was I dreaming that or did you do one and, if so, can you point me to it. Thanks.
Thanks for this -- and great to hear about your Android apps! :) I've yet to make the speed control video. But, as you note, it can be done, by connecting the single PWM output pin on the Pi to both of the PWM pins on the L298N (they are by default jumpered out of action on most boards, so the motors just turn on or off as you say). But the Pi can send a PWM signal for speed control, which would have to be identical for each motor (as the Pi has only oe PWM pin), but this would allow speed control. My video on this is probably two months away due to other stuff in the schedule. :)
Thanks for a very quick reply. I'm actually using an H bridge that came with the CamJam kit and I don't think that has the ability to change speed which is why I was thinking of the L298. If the Pi only has a single PWM pin would that not mean that you can only control speed in one direction? And, as you say only equally for both motors. What I need to be able to do is to control the motors separately as one is faster than the other. I'm toying with replacing the Pi with an Adafruit Feather which has many more PWM pins but that is off topic here. Finally, do consider using UDP to control your robots, it is really simple and makes things far more portable (around the living room!).
On the PWM and the L298N, this would set the speed, but the four GPIO inputs would still control each motor forwards or backwards just the same, so full control would be possible. In effect the Pi would send two sets of signals; one for motor on/off direction control, and another for motor speed. :)
There are links for UK and US suppliers of the robot parts about half way down my Pi robotics page here: www.explainingcomputers.com/rasp_pi_robotics.html I personally find I great great service from shop.pimoroni.com/
sir i am an ECE student and i want make a camera surveillance with this robot and also access control over the robot and camera using an android application.my another doubt is that i want to run the program corresponding to this when ever the pi is turned on......expecting your suggestions
i'll start by saying i'm complete newcomer to computers. iv'e downloaded some games but some of them wont play can i upgrade the graphics radeon5 on hp notebook 8 ram thanks and regards
Generally speaking laptops are the worst choice for upgrading because of the form factor and because of that, everything is soldered right onto the board. As far as graphics, you would have to buy a high-end "gaming laptop" to have a GPU that can be used for gaming, or even if you wanted to, a laptop with Thunderbolt or Type-C that can connect via the PCIe bus which then you can just buy an enclosure for your GPU. Even then you would encounter some form of performance decrease. Another way is to buy one of those cheap adapters - but it won't be guaranteed that it would work with your particular laptop - some will have their firmware locked in a way to not accept external GPUs.
Nice video, but can you also do another video where you connect a webcam to your raspberry robot and remote control using ssh and a public IP to control anywhere in the world
I'm just a little confused as to why you have to use Putty. Can't you just SSH from the laptop terminal into the pi and navigate to the directory where the Python code is and run it and control the robot? You're videos are top notch professional and great!
The laptop is running on a pre-Windows 10 OS and won't have SSH integrated and he would have to resort to a third-party application providing the function of a SSH client or otherwise run any flavor of Linux in a virtual machine.
Putty is such a nice easy to use program though compared to a terminal as it can store configuration settings into a file so you don't need to type them every time. I can use it to quickly connect to my Pi or my cheap little USB NAS unit I use to on my Printer to share it on my Network. I have been using it for quite some time on Windows as a replacement for the Terminal program Microsoft decided not to continue using in Windows 7 and higher. I used to use it in my old job to configure some of the older model WiMax aerials my boss had that did not have the built-in Web interface for setting them up to link to the correct channel and base station. I use the PuTTYPortable version from portableapps.com a Widows version of it made to run off of a USB stick without needing to first be installed on the computer.
TheNZJester Heh. I remember when I was in class we got interrupted with a "website creation crash course" that used PuTTY. Jeffrey Taffuri Not me. I'm actually using Linux right now. Although I try to minimize the use of Windows-dependent stuff whenever I can (the only times I have to use it is with specific applications that were required for certain courses in school)
I am a complete novice to Raspberry Pi and networking and Python. I have found your videos extremely helpful in getting myself up and running.
I just started learning python recently. Coming from a 3D graphics and animation background, my initial purpose for learning the language was to be able to drive some controls and create expressions in Autodesk maya. But since I've also studied Computer Engineering in the university, I've found these videos quite fascinating. Now i know that python is really going to open a broader door for me to explore. I'll strive until i get to the point where Computer Engineering and 3D meets. I can't wait to get my raspberry pi. You've really inspired me :)
This is great to hear!
P1p11
Hello Christopher! I just wanted to tell you how much I enjoy your videos. I always watch them no matter what you make the video about because I enjoy your production, your delivery and your methods very much. Keep up the good work!
Many thanks. :)
We love it when you upload videos about single board computers, keep them coming
Will do! :)
ExplainingComputers
Yeah, I love your videos too. Thanks so much for doing them.
Sir you must Comment frequently at LinuxTechtips, unboxtherapy,etc. so you can gain more subscribers out there. When someone knew Explainingcomputers what youve comment.instantly theyll press like button and then someone will try to peep your channel and begin to subscribe absolutely..You are really desrving.
@@ExplainingComputers sir can you explain c programming language
How do I control a raspberry pi robot via a global network
This is the best series I’ve seen from you which is a massive statement. I never thought I’d be able to understand how a remote robot was built. I didn’t even fully understand how IP addresses work. I thoroughly enjoyed the series and this is definitely a future project.
It would be nice to think Rex Garrod saw this series before passing, it’s quite possible he would have still been able to understand what you were doing. I'm certain before he had dementia he would have applauded such a clear, easy to follow series that shows robot building in an accessible way.
Thanks for this, you may also appreciate my "Devastator" robot series, which improves the control code. :)
@@ExplainingComputers Thank, I'll make sure to watch it.
"In 2017, robots will run on pies"
In the 20th century, that was in the realm of the impossible.
Thank you for the information on SSH. Love your channel.
Many thanks.
I've been wondering about these exact subjects for so long now.. RasPi GPIO access, Linux, Python programming, SSH... this series has been an massive eye-opener for me... what a fantastic way to start a weekend!
And oh, what a coincidence... the hexapod robot I've been building, with intentions of driving with 8-bit PICs, will perfectly fit a full-size RasPi.... oh, the world you've just opened.
Thanks for this feedback. I hope that you enjoy the final part of the series -- posted last week -- where I turn the robot into a line follower. You may also be interested in my Raspberry Pi GPIO inputs video -- ua-cam.com/video/NAl-ULEattw/v-deo.html -- which kind of completes the set.
Your hexapod robot sounds interesting, and a great project to drive with a Pi! Good luck with this. :)
This is the first time I see the command `poweroff`. I used to use `sudo halt -p`. `poweroff` is much easier to remember. Thanks!
Alternatively, some distros have `shutdown -h now` to immediately go down into shutdown or `shutdown -h ` to shut down at a given time.
You have many ways to do the same thing.
You can also shorten your dhcp range from 2-199 in your router and then use fixed addresses from 200 upwards,
this prevents conflicts. In putty you can give a name to your ip-address and save it, next time you can choose it from the list.
Haefzafgzsfh
The way your teach us this stuff is great ! I enjoy it thanks.
Just as further explanation:
1- MAC addresses can be changed in some hardware configurations.
2- Since some WiFi router devices could lack a DHCP address reservation function, or router config pages can change an awful lot between different devices, I would have used the dhcp daemon on the client side. The RPi0 is pretty much the same everywhere given the same OS layer; that said, it is possible to set dhclient (or other clients such as dhcpd or dhcpcd) to request a fixed DHCP address from the router/access point. This requires additional work, config file digging and some Linux VT skills, but it works much better IMO.
Thanks for this one Chris. I have one of those 'plastic card' TV antennas, and a Pan & Tilt with two servos to adjust it. It's been a pet project on the shelf for a few months now, and this will help a lot towards completion. Just need to adjust the code for small movements instead of continuous, and it should work fine. Thanks again!
Not so much into robots (yet) but, that "address reservation" thing as general idea helped me to figure out something about my damn LAN configuration. Thanks!
Great series, looking forward to the next ones.
I've only recently found your channel, but been watching a ton of your videos recently.
You explanations and presentation is fantastic.
Yes, of course I subscribed ... are there really people out there that haven't?! Surely not.
How about implementing a Web server on board and controlling over WIFI? maybe have the web server host a simple web page with touch buttons ( tablet / cellphone) and using a Keyboard controls? Add a camera module and make a simple webcam, wifi controlled rover?
Great Videos KEEP THEM UP!
Nice idea -- noted in my video slate! :)
You can do it in the same way with ssh, using the public IP, you just need redirect the Port used by the program in the router
Id love this, i tried to make a robot on a beaglebone but only got as far as a webpage that could control the robot which worked well but getting the stream to work properly was such a pain i ended up binning the project.
Why do you hide the Mac ID? is it possible to connect via WiFi or LAN to a device you know ID number of even if it's already connected to another network? I know every item has its own unique code, but are they ever repeated? for example will all PlayStation 4 have same Mac ID?
MAC addresses can be used in identity theft. I will say no more here! :)
Hi Chris, Been following this series, and am building my own. After trying to run PuTTY. I got a connection refused error. Fixed by turning the SSH option to ENABLE in the Raspberry Pi Configuration menu. From the Raspian desktop, Raspberry - Preferences-Raspberry Pi Configuration. Interfaces then enable SSH click OK and reboot. Then the Pi will work from PuTTY. Raspian was from NOOBS version 2.8.1 released 2018-04-24. Hope this helps others that have the same problem when following. Keep up the good work. Andrew D
Thanks for this. I can not account for how Raspbian configs change! :) Glad you got it working, and great you are building one too. :)
Thank you for continuing your series on Pi Zumo robot. Keep up the good work!
I’ve been thinking about controlling a battery powered garden railroad loco remotely. Exactly what I was looking for. Thanks
Ah, yes -- I can see where you are headed here!
I love this man's videos
Absolutely love his content :)
Great to hear!
Another great video. Look forward to these every week.
Thanks. :)
that is some really useful info.....heard about ssh before but had no idea that it is so cool....remotely control any device through the terminal.....fook yeah!!
Exactly. This is not just a video about a Raspberry Pi robot . . .
Great set of tutorials. I am in the process of building my first ever robot using these tutorials and my own updates and changes. When it is done, I'll let the channel know how it went.
This is good to hear! :)
in your video at 4:44, is that your dream house backyard? I like the brick patio pattern and the window buildings in the background.
My desktop here is a still from a CG film that I made many years ago. It was/is a very nice place that I "worked" in making the film for about 18 months. :)
great video Chris...the possibilities are endless...
oh yeah.. hummin' right along with you, digin' it all.. yeah, yeah got it.... until I tried to get into my router.. "oh yeah" I said to myself "I changed the name and password, now where is that password list?" Well it was so long ago it is not on my list ! I did this to keep my son out of it years ago and I do mean years.. so now I guess it is about time to change my router anyway..I already have three of them sitting in the back why not make it an even four... Oh how I love getting old.. heck I am still looking for the eggs I hide last easter.. even the kids got tired of helping... Well good on ya my friend.. enjoying the heck outta your vids...
My new favourite channel
Excellent! :)
Marvellous, marvellous marvellous. Thank you sir.
So nice of you.
Really nice project, thanks a lot for sharing.
May I suggest an alternative with Bonjour protocol to let the Pi announce itself on the network.
That way, there are no more pain to reserve/maintain IP, just connect to, for example, zummo.local and that's it.
Nice idea -- noted. :)
If you want to continue with projects with the Pi Zero, they just came out with the Pi Zero Wireless, with added WiFi and Bluetooth. Try it out!
a cool next step would be using the new raspberry zero revision that incorporates a camera connector, so you can cast live images from the robot to the laptop or tablet.
Very helpful but just found one thing to add. Needed to ensure that ssh service was running on the Pi.
# to start one time
sudo service ssh restart
# to ensure start on boot
sudo systemctl enable ssh
Here's an idea for a future project: Add a camera, implement web based controls and open the server to Internet (and probably put it on a separate subnet and firewall it off from everything else) and let your viewers drive the robot around your studio.
I noticed you debadged the netbook. I took it to another level being cheeky by putting the stickers of a first-gen core i7 and windows 7 on my laptop even though it is 7th gen and windows 10 hahah
Very nice and complete tutorial.
Just one thing. You do not need to hide your MAC, since outside visitors can see only the MAC of your router. The router normally replaces the MAC with its own. However, if you plan to use your robot outside your network, maybe hiding isn't a bad thing 😊
I have tried to lock out hackers by MAC, but failed due to the mechanisms of routers.
Thanks for this, but I assure you there are good reasons for hiding a MAC address.
ExplainingComputers Now you make me curious. What could possibly go wrong with MAC's behind a firewall?
good morning sir, i'm very fond of your tutorial videos. Being a student, i hereby request you to clarify my following doubts by making further videos thereon-
1) How can raspberry pi smartsim be attached to Zumo, if it can replace external WiFi USB for controller connectivity ?
2) How can the board's WiFi be put to use for controller connectivity ?
3) How to make a webpage consisting of Zumo control keys not restricted to up,down, right and left, using it IP address ?
LOOKING FORWARD TO YOUR REPLY AS FURTHER VIDEOS IN THIS SERIES ON THE REQUESTED TOPICS !
These are large and complex questions which I cannot answer in a simple comment here. I do have other videos. :)
An interesting demonstration of SSH. Thanks!
I purchased the 'Scratch Programming - In Easy Steps' book and have been working through it with my children. Towards the end of the book it introduces you to the Raspberry Pi and suggests that you continue from there. So I did a search for Raspberry Pi projects and found this; we've been following and enjoying your tutorials ever since. Please keep them coming, we can't get enough!!! :-)
A couple of suggestions that we have sat and thought about.
1. Would it be possible to purchase a basic USB solar panel and attach it to the top of our robot and have it charge the portable USB power bank?
2. How about adding a Pan-Tilt HAT so that we can attach and control the Raspberry Pi camera remotely?
We eagerly await your next video for this project.
Thanks
Thanks for this -- I'm glad you enjoy my videos! :) There will be some additions to this robot in future videos, and I'll also be working on a larger robot -- and a camera will feature! :)
Love it... good work man... Thanks for these videos they are so much appreciated
Unsure if this question has been answered already - apologies if so:
If you are assigning the Pi its own IP through your personal router, if you were to take the device and access it on a completely different desktop connected to different network; would this same prescribed IP work as an access point?
Great video - Learnt so much from you, thank you!
Any local IP assigned on a router is only for that local network. You would need to assign again on another.
nice video. looking forward to the line following aspect of it. Are you planing on using ultrasonic sensors to detect objects on front or drops in elevation (stairs etc). Thank you for sharing.
Thank you for your nice and wonderful video. Please, could you list all devices did you use and how can I buy it.
Web page for project here: www.explainingcomputers.com/rasp_pi_robotics.html
awesome content!! thank you for this..I hope the next video comes very very soon..
Thanks. I post a new video every Sunday. :)
Hey Chris, really like the videos especially the single board demos. Have you messed about with the BBC MicroBit? What's your thoughts on a Sunday video for this? Keep up the stellar work.
I've seen people suggest adding a camera. I can say that I have done this and it is pretty cool but my one problem is that I can't have the control and camera on the same device so I'm connecting camera to phone and robot to rii keyboard. Is there a workaround to this? Ps I'm using a GoPro if that makes a difference
Been watching the videos. Thanks for making them theyre perfect for people that have some computer knowledge just getting in to raspberry pi. Question: How hard would it be to make a standalone program (for a touchscreen monitor) with the forward/backward/left/right/stop buttons on it?
This should be possible (in Python) providing you have a display with the right drivers.
@@ExplainingComputers thanks for your reply. I do have it (pi 4) currently hooked up to a 3.5" lcd touch display. My goal is to create a (joke) device that will sit in my hallway and play one of several pre-recorded sounds any time one of my roomates walks down the hallway. (I have a motion sensor as well). I would like to put buttons on the display to add new sound bytes or delete previous ones from a list.
How would you approach using a long range controller or something that can send video back to the user?
Is it possible to tinker with the CPU voltage and overclock the pi to.. maybe 2Ghz with that Extreme Passive Cooling you did? From the videos I've looked at it seems to be limited to 1.4Ghz :( Really would love to see it if you can push it to 1.8Ghz or something with the Extreme Passive Cooling you did
the command to list files is "ls", not "dir"... "dir" is just an alias for the "windows people", and not always present in every distro...
He could have just as easily made a symlink to /bin/ls as well.
ki2ne whatever you want, but it's not standard...
Noted. Though I've yet to find a Linux distro that it is not in, and it is certainly in every mainstream/supported distro on the Raspberry Pi. :)
squalazzo I'm aware it's not standard, but then again certain distros or people in general just do what they want to make it easier for them. I generally use them as-is.
sir did you manage to change the controls so that you dont have to press the stop button?
This is not something I've worked on yet I'm afraid.
I always lock all my devices on my network via MAC to a reserved IP address. The DHCP Leases page on my router is normally where I go to find out the IP and MAC address quickly. I have two IPs reserved for my Pi3, one for the LAN and one for the WiFi.
Have you thought about mounting a camera on it? Set the camera up as an IP camera for remote viewing and drive it using your Android tablet to areas where you can not actually see it.
Yes, it will get a camera! :)
Have you upgraded the motors for mine i got 298:1 so i just might think that that one is very fast
I build this project with your interesting 4 videos
thanks a lot
I'm beginner user
but I have a question?
how I make the motor only walk when I pressed key and stop when I don't pressed
Thanks. Very enjoyable presentation.
How would I then add a camera to this as well so I can live video stream to the laptop while controlling the robot from the laptop?
It can be done. I will cover this in a video, eventually! :)
@@ExplainingComputers any chance you could provide a link to websites that show this working please or maybe show this working soon(ish) I just really need it for a university project by the end of this coming week!
Just use mjpg-streamer :) its super easy!
Hi Chris, Your Videos Really Help Me With Computers. Can You Do A Series About Electrics Such As Circuit Boards And Components Like Resistors And Capacitors? Thanks!!!
Go search for bigclive. He does that sort of stuff.
and Julian Ilet
great video!
can't wait to see what you do with the brand new "Pi Zero W".
How would I do this where the pi navigates to a page on a domain and
does bi-directional data sending and receiving json data?
Hello, thanks for all these videos.
I'm interested in learning these things and could use some tips on the topics to grasp.
I'm learning phython right now wondering what's next.
Thanks.
Great video! Are there similar programs that can redirect the graphical layout of the controlled computer aswell?
There are indeed -- and I will come to them in another video fairly soon! :)
Now connect a camera to it and make a little web interface for it to control it with live video
Yes, I will be adding a camera. :)
I know this is an old request, but if you install motion from crisian it is pretty easy to add a webcam (Picam, Pi Noir or USB- works with all of them!) that you can view from a webpage.
Out of curiosity, why do you use dir rather than ls in the terminal? It takes 50% longer to type, and doesn't do highlighting to differentiate between files, directories etc. Oh, and thanks. Over an hour of Sunday eaten up watching this series. I have Netflix stuff to watch, you know ;)
what is the source you refer to before doing the video ?Can you suggest some source to learn robotics( book or online source).
I check stuff all-over; I've no one source I'm afraid. Sorry.
Nice sharing! 🤘😎 thanks EC
love it, I was wondering how to do this exact thing last week, though I was also hoping you'd show how to power the pi off a battery as well
Nice Chris. Well done.
Can't I do so I simply add a port in which the Router will try to avoid giving to other devices, but when a device on the network asks for that number it will happily give that free spot to whoever is asking for it. Because later on I would like to add more devices on the network with a static IP, so when I'm in the Router configs I can simply make 4-5 new spots all at once and then set the devices one at a time to their respective spot.
A pre-selected spot for ANY device who has a matching static IP address on the same network but will avoid giving those spots to none static addresses, is this possible?
And something completely different, you log in with your standard gateway to get to the Router config page right? I got a different number than yours, but I still cannot access the Router page through any browser I have installed (Chrome, FireFox, Explorer). You got any tips what I should look up to gain access? And I would love if you could do more hardware tutorials, stuff such as how to use and install a LCD screen (I got a Adafruit 16x2 cha. monitor who most people buy when they want to experiment with new devices), different buttons such as roll buttons you find at most console controllers, etc.
This is amazing and I'm doing the same thing but can you show us how to change the drive system to eliminate using the enter key?
Thanks and keep up the great work!
One solution is to put in a time delay -- something like time.sleep(0.1) -- at the end of the while loop, then turn all motors off before the loop repeats.
ExplainingComputers Many thanks for your quick reply I will definitely try it out!
is possible to connect some sim card adapter turn on data and add camera? that will be cool. You will can go like 50 km far and will be still working you will see where are pi
*you will control it with phone or pc.
This will all be happening in future pi robotics videos. I have quite a few planned. :)
Thnx a lot :)
Hi again Christopher - I'm trying to figure out how to get the keyboard control script (key_robot.py) to run when I start up my Pi. There seem to be a number of approaches, the only thing I've made any progress on is getting the terminal to load at start up via the startup file here: /home/pi/.config/lxsession/LXDE-pi/autostart. I have not been able to get the python script to actually run on startup. Is this possible? I thought I heard you mention it somewhere but I haven't been able to find the video. Thanks again!
Greetings -- I covered this fairly recently in this video -- ua-cam.com/video/j6mglfhWZrQ/v-deo.html -- a different robot, but uses the same approach. Hopefully this will work for you. Code is here: www.explainingcomputers.com/pi_devastator_videos.html
Dang. I was doing pretty well and the terminal actually opened and looked like it was going to work, but I got no response form the keyboard. Now I'm getting "curses.error: setupterm: could not find terminal" even when I try to just run the script in a python shell. Not sure if I hosed something up or what, your change was pretty straightforward.
The python script will run if I kick it off in a terminal window. but not if I try to "run" the file in a python window.
You have to run the code in a terminal window or it will not work, as the curses method of obtaining keystrokes does so from a terminal window (hence the error you get above). All I can say is that the method in my Devastator window works! :) Good Luck!
I love your videos thank you for all you taught me good sir
Can this be done with the pico W?
See my reply elsewhere. :)
Can I control the robot if the robot is far away like 300 km from me, the robot connect to a WiFi and I control it with my laptop. Can I do that ? Sorry for my English !
Hi Sir Just Want to comfirm that You using resberry pi Zero or resberry pi Zero wireless
Hi , how many minutes it run with battery and battery capacity ? Thanks .
Where did you get the controller I think I missed the name if you said it
Is there a way use curses to stop the robot on key release? Pygame will not work over SSH =/
and how can you power the pi from the batterys aswell
can we make the zumo robot standby on coin 3V battery and turn on by WOL?
can you show us how to get it to run the code at boot
Okay. This was cool. You've got my sub. :)
Thanks -- and welcome aboard! :)
No worries.
Yes Chris loving it!
Whaf if you can control the robot over LoRa? though it's laggy but sturdy. it is usually for IoT.
Hi, Great videos! Thanks. #4 has inspired me to write couple of Android apps to control my CamJam robot rather than using SSH. Both send commands to the robot using UDP, one app controls it using the motion sensors and the othere app allows tracing a route on the android screen which is then translated into a series of moves. Pretty pleased with myself!
However, the motors are either full on or off and I really need a way to control their speed. I'm sure that I've seen a video of yours where you muse on using PWM (plus an L298, I think). Was I dreaming that or did you do one and, if so, can you point me to it. Thanks.
Thanks for this -- and great to hear about your Android apps! :) I've yet to make the speed control video. But, as you note, it can be done, by connecting the single PWM output pin on the Pi to both of the PWM pins on the L298N (they are by default jumpered out of action on most boards, so the motors just turn on or off as you say). But the Pi can send a PWM signal for speed control, which would have to be identical for each motor (as the Pi has only oe PWM pin), but this would allow speed control. My video on this is probably two months away due to other stuff in the schedule. :)
Thanks for a very quick reply. I'm actually using an H bridge that came with the CamJam kit and I don't think that has the ability to change speed which is why I was thinking of the L298. If the Pi only has a single PWM pin would that not mean that you can only control speed in one direction? And, as you say only equally for both motors. What I need to be able to do is to control the motors separately as one is faster than the other. I'm toying with replacing the Pi with an Adafruit Feather which has many more PWM pins but that is off topic here.
Finally, do consider using UDP to control your robots, it is really simple and makes things far more portable (around the living room!).
On the PWM and the L298N, this would set the speed, but the four GPIO inputs would still control each motor forwards or backwards just the same, so full control would be possible. In effect the Pi would send two sets of signals; one for motor on/off direction control, and another for motor speed. :)
Hi Chris,
Can I make this project using Raspberry pi 3 instead of a Raspberry pi 0 ?
Hope you reply :)
Yes, this work with any Pi. :)
Thanks!
I am gonna make this robot!
+ExplainingComputers where can i buy the kit?
There are links for UK and US suppliers of the robot parts about half way down my Pi robotics page here: www.explainingcomputers.com/rasp_pi_robotics.html I personally find I great great service from shop.pimoroni.com/
I like to use zeroconf instead of setting an address reservation or a static ip.
Sir, how we can run vehicle car by Joystick over sab, please guide
I Am Following This Exact Build But I Will Add A Camera On Mine That I Will Transmit Through The Python Script. On Screen Can You Post More Of These?
Yes, I will be posting more of these, including adding a camera. :)
Hi
Can you make the camera stream live to a display over the WiFi network
This can be done, although this robot does not have a camera -- yet! :) I will be covering this in a future video.
Is there any way to control it over the internet?
There is -- I will get to this!
sir i am an ECE student and i want make a camera surveillance with this robot and also access control over the robot and camera using an android application.my another doubt is that i want to run the program corresponding to this when ever the pi is turned on......expecting your suggestions
My more recent series on the "Pi Devastator Robot" is progressing towards this.
i'll start by saying i'm complete newcomer to computers. iv'e downloaded some games but some of them wont play can i upgrade the graphics radeon5 on hp notebook 8 ram thanks and regards
Generally speaking laptops are the worst choice for upgrading because of the form factor and because of that, everything is soldered right onto the board. As far as graphics, you would have to buy a high-end "gaming laptop" to have a GPU that can be used for gaming, or even if you wanted to, a laptop with Thunderbolt or Type-C that can connect via the PCIe bus which then you can just buy an enclosure for your GPU. Even then you would encounter some form of performance decrease. Another way is to buy one of those cheap adapters - but it won't be guaranteed that it would work with your particular laptop - some will have their firmware locked in a way to not accept external GPUs.
Can you do a video about getting a remote desktop environment to a raspberry pi over SSH?
I will indeed be accessing the Pi's desktop remotely in a future video. :)
Nice video, but can you also do another video where you connect a webcam to your raspberry robot and remote control using ssh and a public IP to control anywhere in the world
Could a computer be connected directly to the pi without the router?
Yes, this could be done -- a peer-to-peer WiFi connection.
@@ExplainingComputers I love your videos thank you for making them. They inspire me very much. Have you done any video on pear to pear WiFi Thank you
@@SNStuart Thanks. I have not made such a video, but will add it to my list! :)
You can use git bash instead of putty for ssh if you want a simpler lighter tool.
I would like to know if you could upgrade the robot with the new Pi Zero Wireless.
Yes, this can be done -- and I will be doing it! :) I now have a Pi Zero W on order, and hope to feature it in a video in a week or so.
I'm just a little confused as to why you have to use Putty. Can't you just SSH from the laptop terminal into the pi and navigate to the directory where the Python code is and run it and control the robot? You're videos are top notch professional and great!
The laptop is running on a pre-Windows 10 OS and won't have SSH integrated and he would have to resort to a third-party application providing the function of a SSH client or otherwise run any flavor of Linux in a virtual machine.
Silly me didn't realize you were using W#_$&&-s, sorry.
Putty is such a nice easy to use program though compared to a terminal as it can store configuration settings into a file so you don't need to type them every time. I can use it to quickly connect to my Pi or my cheap little USB NAS unit I use to on my Printer to share it on my Network. I have been using it for quite some time on Windows as a replacement for the Terminal program Microsoft decided not to continue using in Windows 7 and higher. I used to use it in my old job to configure some of the older model WiMax aerials my boss had that did not have the built-in Web interface for setting them up to link to the correct channel and base station. I use the PuTTYPortable version from portableapps.com a Widows version of it made to run off of a USB stick without needing to first be installed on the computer.
TheNZJester Heh. I remember when I was in class we got interrupted with a "website creation crash course" that used PuTTY.
Jeffrey Taffuri Not me. I'm actually using Linux right now. Although I try to minimize the use of Windows-dependent stuff whenever I can (the only times I have to use it is with specific applications that were required for certain courses in school)
sir
please suggest me
how to control gpio pin of raspberry pi using android apps over internet with different network (Remotely)