Build your own smart car

Continuing from the previous article, here we describe the use of tf card images to operate the car.

(1) Burn system image

The image file will be placed on Quark Network Disk in the future
Link: https://pan.quark.cn/s/9ffc6eb10e65

1.1 Burn TF card image

Insert the 32G TF card into the card reader, insert it into the laptop, and use the Win32 DiskImager_v
1.0) to write the image file "mRobotit.img" to the TF card. As shown below. Exit after waiting for completion.
Insert image description here

1.2 Modify WiFi startup configuration file

Open the VirtualBox virtual machine, start Ubuntu normally and open the desktop, as shown below:
Insert image description here
Insert the card reader with the TF card installed into the computer, and check the menu bar of the VirtualBox virtual machine "USB/Generic Mass
Storage Device", connect the TF card to the virtual machine, as shown in the figure below:
Insert image description here
In the "etc/init.d" of the TF card "Open the terminal in the directory, enter the following command, edit the "wifi_start.sh" file:
Insert image description here
Modify "sudo create_ap wlan0 eth0 littlecar 12345678" to "sudo create_ap wlan0 eth0 littlecar-XX 12345678", as follows As shown in the figure. Close the file after saving.
The littlecar-XX here is your subsequent wifi
Insert image description here

(2) Run the test

Insert the TF card into the Raspberry Pi 4B motherboard of the car, as shown in the figure below:
Insert image description here
Turn on the power switch of the car, wait for the car to start the system, and turn on the wireless hotspot. In the wireless network of the personal computer, find the wireless network named "littlecar-XX" and join it. The password is "123
45678", as shown in the figure below.
Insert image description here
Use Xshel software to remotely connect to the Ubuntu system of the mRobotit car, as shown in the figure below:
Insert image description here
Enter the password "ubuntu" in the next window, as shown in the figure below :
Insert image description here
If the connection is successful, the following results will appear:
Insert image description here
Enter the following command:
Insert image description here
Re-establish an SSH connection, and then run the following command , start the keyboard control node:
Insert image description here
After the operation is successful, you can use the following keyboard keys to control the movement of the car:
Insert image description here
The operation here is basically successful. I don’t know your car. Did it run successfully?
Here are some pictures of how I installed the car and the process of using ros:
Please add image description
Please add image description
Please add image description
Please add image description
Please add image description
Please add image description
My car can run, what about yours?
Insert image description here
The following are the links of ros:
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here

Insert image description here
Insert image description here
The whole experiment was completed by a friend and I. We divided the labor and cooperated. I was mainly responsible for loading the car, and he was mainly responsible for processing and connecting its image files.

Think about it, now we just control the movement of the car. Just imagine, what would it be like to install a camera or self-sensing radar on it?

Guess you like

Origin blog.csdn.net/YYANyk/article/details/130329853
Recommended