Continuing from the previous article, here we describe the use of tf card images to operate the car.
Build your own smart 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.
1.2 Modify WiFi startup configuration file
Open the VirtualBox virtual machine, start Ubuntu normally and open the desktop, as shown below:
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:
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:
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
(2) Run the test
Insert the TF card into the Raspberry Pi 4B motherboard of the car, as shown in the figure below:
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.
Use Xshel software to remotely connect to the Ubuntu system of the mRobotit car, as shown in the figure below:
Enter the password "ubuntu" in the next window, as shown in the figure below :
If the connection is successful, the following results will appear:
Enter the following command:
Re-establish an SSH connection, and then run the following command , start the keyboard control node:
After the operation is successful, you can use the following keyboard keys to control the movement of the car:
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:
My car can run, what about yours?
The following are the links of ros:
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?