element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Smartphone Controlled DIY Rover Using Websockets -- Episode 438
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 18 Mar 2020 3:14 PM Date Created
  • Last Updated Last Updated: 20 Mar 2020 8:24 AM
  • Views 3109 views
  • Likes 6 likes
  • Comments 12 comments

Smartphone Controlled DIY Rover Using Websockets -- Episode 438

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image
 

Who doesn't love robots? In this episode, I build a hardware kit and program the software to drive a small, wheeled, non-autonomous robot. The hardware is based around a Raspberry Pi 4 and a Motor HAT used to drive a couple of DC motors. The software is based on Python, using the Flask module to run a web server, the socket io module for sending and receiving commands, and HTML and JavaScript to build a simple Graphical User Interface (GUI) for driving the rover..

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
Development Kit, STS-Pi Roving Robot Kit For Raspberry Pi Pimoroni 1 Buy Now
Raspberry Pi DC Stepper Motor Hat Development Board Adafruit 1 Buy Now
Single Board Computer, Raspberry Pi 4 Model B Adafruit 1 Buy Now

 

Supplemental Content:

 

  • Smartphone Controlled DIY Rover Using Websockets: SSH Setup
  • Getting Started with Flask and Websockets
image
Smartphone Controlled DIY Rover Using Websockets

element14 presents  |  About Cisco |  Project Videos

  • visualization
  • webserver
  • cisco
  • webapp
  • e14p_CA
  • ide
  • python
  • fusion 360
  • rc
  • e14presents_makerbro
  • project
  • internet of things
  • web
  • sensors
  • build
  • developer
  • robotics
  • robots
  • pimoroni
  • robot
  • os x
  • 3D Printing
  • diy
  • programming
  • cad
  • weather
  • stepper motor
  • embedded
  • micropython
  • sparkfun
  • raspberry pi
  • windows
  • tutorials
  • nodemcu
  • friday release
  • app
  • iot
  • engineering
  • wireless
  • datalogger
  • c++
  • data
  • server
  • arduino
  • introduction
  • friday_release
  • sensor
  • communication
  • linux
  • beginner
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • tariq.ahmad
    tariq.ahmad over 5 years ago in reply to dougw +4
    Hi dougw , thanks for the heads up. Its fixed.
  • dougw
    dougw over 5 years ago +3
    Great project. tariq.ahmad I think these element14 Presents postings should include the name of the presenter somewhere on the page. Even the link to Maker Bro is confusing - it goes to AirborneSurfer…
  • DAB
    DAB over 5 years ago +3
    Very good episode. My dog would quickly destroy both the toy and the rover if it moved like prey. DAB
  • acrobotic
    acrobotic over 5 years ago in reply to celcius1

    Hey, Paul. Yes you can drive 1 stepper motor. There's a limit into how much current the board can handle, but it should be fine for a NEMA-17 or even a NEMA-23. The HaTs are stackable as they use i2c so you can connect more motors if needed. HTH!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • celcius1
    celcius1 over 5 years ago

    Can you drive Stepper motors with that Pi Hat

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • acrobotic
    acrobotic over 5 years ago in reply to dubbie

    Heya. I'm glad you liked it. We all started from scratch, so don't be discouraged. I agree that the info at times is terse, and assumes some experience instead of breaking down each step. By all means shoot me any questions you have, and keep at it! image

     

    Cheers,

    -Cisco (ACROBOTIC)

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 5 years ago

    I liked the mobile robot chassis construction, especially the two batteries/power banks and the custom made 'wings' for holding them. That's a great approach that I will have to think about using in some way. However, while I followed the beginning of the software design I was soon lost. I guess it all depends on how much background in the subjects you have.

     

    Dubbie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • acrobotic
    acrobotic over 5 years ago in reply to DAB

    Still getting used to the site so trying this again. I'm glad you enjoyed the episode! image

     

    I had the same thoughts about my youngest dog (featured in the vid) so I recorded those scenes last. I was surprised she completely ignored it—probably due to the noise of the motors. Nonetheless, poor little Yoda was promptly skinned as soon as it was taken off the rover.

     

     

     

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • acrobotic
    acrobotic over 5 years ago in reply to photojames

    Thanks! Here's the direct link to the code repo.

     

    By all means let me know if you have any questions!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 5 years ago

    Very good episode.

     

    My dog would quickly destroy both the toy and the rover if it moved like prey.

     

    DAB

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • photojames
    photojames over 5 years ago

    Great project!

    Since I'm going to have a little bit of time off I'd like to try to build one. Am I missing something? Is there a place to find the python code? Thanks in advance

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • tariq.ahmad
    tariq.ahmad over 5 years ago in reply to dougw

    Hi dougw , thanks for the heads up.  Its fixed.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 5 years ago

    Great project.

    tariq.ahmad I think these element14 Presents postings should include the name of the presenter somewhere on the page.

    Even the link to Maker Bro is confusing - it goes to AirborneSurfer.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube