EasyManua.ls Logo

Freenove 4WD Smart Car Board for Raspberry Pi User Manual

Default Icon
132 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #131 background imageLoading...
Page #131 background image
Need support? support.freenove.com
127
Chapter 7 Smart video car
www.freenove.com
Buzzer. For more details, please refer to Buzzer.
1
2
3
4
5
6
from Buzzer import * #import Led
from Command import COMMAND as cmd #import Led
buzzer=Buzzer() #create an object
buzzer.run(1) #Start
time.sleep(3) #wait 3s
buzzer.run(0) #Stop
Servo. For more details, please refer to Servo.
1
2
3
4
5
6
7
8
9
10
from servo import * #import Led
pwm = Servo() #create an object
#Servo rotates from 30 degrees to 150 degrees
for i in range(30, 150, 1) :
pwm.setServoPwm('0', i)
time.sleep(0.01)
#Servo rotates from 150 degrees to 0 degrees
for i in range(150, 30, -1) :
pwm.setServoPwm('0', i)
time.sleep(0.01)
Ultrasonic module. For more details, please refer to Ultrasonic module.
1
2
3
4
from Ultrasonic import * #import Led
ultrasonic=Ultrasonic() #create an object
data=ultrasonic.get_distance() #Get the value
print ("Obstacle distance is "+str(data)+"CM")
These codes can be integrated into one code to achieve your requirement.
Question and Answer IconNeed help?

Do you have a question about the Freenove 4WD Smart Car Board for Raspberry Pi and is the answer not in the manual?

Freenove 4WD Smart Car Board for Raspberry Pi Specifications

General IconGeneral
Drive Type4WD
Motor TypeDC Gear Motor
Wireless CommunicationWi-Fi
Motor Channels4
Servo Channels2
Servo Voltage5V
CompatibilityRaspberry Pi
Power Supply6V-12V
Programming LanguagePython
SensorsUltrasonic Sensor
Input Voltage7V-12V
Onboard InterfacesGPIO, I2C, UART

Summary

Welcome and Introduction

About Battery Information

Refers to a separate document for battery details.

Get Support and Offer Input

Provides contact information for technical assistance and feedback.

Safety and Precautions

Lists essential safety guidelines for product usage and handling.

About Freenove

Company Overview and Copyright

Describes the company's mission and intellectual property notices.

Parts List

Smart Car Board Components

Details the main control board of the 4WD Smart Car.

Machinery and Transmission Parts

Lists screws, nuts, motors, wheels, and related hardware for assembly.

Electronic Parts, Tools, and Self-Prepared Items

Lists sensors, tools, and components the user must provide.

Preface

Raspberry Pi Introduction

Explains the role and features of the Raspberry Pi in the project.

GPIO Pinout and Usage

BCM GPIO Numbering

Details the Broadcom SOC channel numbering for GPIO pins.

Physical and WiringPi GPIO Numbering

Explains alternative GPIO numbering schemes: physical and WiringPi.

Chapter 0: Raspberry Pi Preparation

System Installation and Components

Guide to installing the Raspberry Pi OS and required hardware.

Remote Access Setup

Instructions for configuring VNC and remote desktop access.

Chapter 1: Software Installation and Testing

Code Setup and Library Installation

Downloading project code and installing necessary Python libraries.

Interface Configuration

Enabling I2C and VNC interfaces on the Raspberry Pi.

Library Installation Program

Running the script to install all required software libraries.

Chapter 2: Assemble Smart Car

Mechanical Assembly Steps

Step-by-step guide to building the car's chassis and attaching components.

Module Installation Guide

Instructions for installing sensors like line tracking and camera modules.

Chapter 3: Module Testing

Motor and Sensor Testing

Verifying the functionality of motors, ADC, and line tracking sensors.

LED, Buzzer, Servo, and Camera Testing

Testing LEDs, buzzer, servos, ultrasonic, and camera modules.

Chapter 4: Light Tracing Car

Light Tracing Functionality

Explains how the car uses photoresistors to detect and follow light.

Chapter 5: Ultrasonic Obstacle Avoidance Car

Obstacle Avoidance Functionality

Details how the car uses ultrasonic sensors for navigation.

Chapter 6: Infrared Line Tracking Car

Line Tracking Functionality

Explains how the car follows a line using infrared sensors.

Chapter 7: Smart Video Car

Server and Client Setup

Instructions for setting up the server on Raspberry Pi and the client.

Remote Access Clients

Guides for running clients on Windows, macOS, and Raspberry Pi.

Troubleshooting Common Issues

Car Malfunctions and Solutions

Diagnosing and resolving common problems with the car's operation.

Mobile App Control

Android and iOS App Guide

Instructions on downloading and using the mobile application for control.

Free Innovation and Custom Programming

Writing Your Own Programs

Guidance on developing custom code for the smart car.