SunFounder PiCar-X Kit
5.4 Video 1: Motor Move and Steering Control
This video serves as the first project tutorial in the PiCar-X series, focusing on how to control the motors and steering
servo of the PiCar-X. The key contents include:
• Starting and Stopping Motors: Demonstrates how to control the movement of the PiCar-X, including moving
forward and backward.
• Motor Speed Control: Shows how to increase and decrease the speed of the motors.
• Steering Control: Teaches how to turn left and right by controlling the front steering servo.
• Script Execution: Illustrates how to run a program automatically when the Raspberry Pi starts.
• Move.py Code Analysis: Offers an in-depth explanation of the Move.py script, detailing the logic behind con-
trolling motors and steering.
• Testing and Debugging: Practical testing to ensure both the code and hardware function correctly.
This video is an excellent practical guide for beginners to PiCar-X, providing detailed instructions on controlling motors
and steering, laying a solid foundation for further project development.
Video
Related On-line Tutorials
• 1. Let PiCar-X Move
Note: Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook!
Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
• Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
• Learn & Share: Exchange tips and tutorials to enhance your skills.
• Exclusive Previews: Get early access to new product announcements and sneak peeks.
• Special Discounts: Enjoy exclusive discounts on our newest products.
• Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
Ready to explore and create with us? Click [] and join today!
5.5 Video 2: Controlling the PiCar-X using keyboard
In this video tutorial, you’ll learn how to control the PiCar-X robot using a keyboard. It covers:
• Basic Control: Demonstrates controlling the PiCar-X with keyboard commands - “W” for forward, “S” for
backward, “A” for left turns, and “D” for right turns.
• Tilt and Pan of Camera: Teaches controlling the mounted camera’s tilt and pan using “I” (up), “K” (down), “J”
(left), and “L” (right).
• Code Explanation: Provides a detailed explanation of the Python code for keyboard control, including library
imports and control logic.
• Running the Code: Shows how to execute the Python code for keyboard control, including connecting to the
PiCar-X.
96 Chapter 5. Python Video Course