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 #80 background imageLoading...
Page #80 background image
Need support? support.freenove.com
76
Chapter 3 Module test (necessary)
Buzzer
Run the program
Enter the following command in the terminal to test buzzer.
If the terminal displays the directory as below (where test.py is located). You can directly execute the test.py
command.
1 If not, execute the cd command:
cd ~/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server
2 Execute test.py command:
sudo python test.py Buzzer
Result:
The buzzer will be turned on and last for 3s. Then the program will automatically end or you can press "Ctrl
+ C" to end the program.
The code is as below:
1
2
3
4
5
6
7
8
9
10
11
12
from Buzzer import *
buzzer=Buzzer()
def test_Buzzer():
try:
buzzer.run(cmd.CMD_START)
time.sleep(1)
print "1S"
time.sleep(1)
print "2S"
time.sleep(1)
print "3S"
buzzer.run(cmd.CMD_STOP)
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.