2. Play Mode¶
This Pico-4wd is shipped with the code pre-uploaded so that you can control it directly with the APP after powering up.
Here, the SunFounder self-developed App - SunFounder Controller is used. With this app, users can customize a controller to control their robot. It is compatible with Raspberry Pi, Raspberry Pi Pico/Pico W and Arduino boards.
Let’s see how to control Pico 4WD car with this APP.
main.py file in the Raspberry Pi Pico has been modified, but you still want to use Play Mode, then you just need to save the
app_control.py file under the
pico_4wd_car\examples\app_control path as
Quick User Guide¶
Install SunFounder Controller from APP Store(iOS) or Google Play(Android).
Let’s start the Pico 4WD Car.
When first used or when the battery cable is unplugged, Pico RDP will activate its over-discharge protection circuitry(Unable to get power from battery).
Therefore, you’ll need to plug in a Type-C cable for about 5 seconds to release the protection status.
At this time look at the battery indicators, if both battery indicators are off, please continue to plug in the Type-C cable to charge the battery.
Additionally, the LED on the ESP01S module will blink indicating that your mobile device is not connected.
Your mobile device should now be connected to Pico 4WD Car’s LAN so that they are on the same network.
my_4wd_caron the WLAN of the mobile phone (tablet), enter the password
12345678and connect to it.
The default connection mode is AP mode. So after you connect, there will be a prompt telling you that there is no Internet access on this WLAN network, please choose to continue connecting.
Create a controller.
Open SunFounder Controller and click on the + to create a new controller.
We have preset controller for Pico-4wd, you can choose it directly.
Define a name for this Controller and click Confirm.
Connect and run the Controller.
You need to make sure that your mobile device is connected to the
my_4wd_carLAN, if you are not seeing the above message for a long time.
After the “Connected Successfully” message appears and the product name will appear in the upper right corner.
At the same time, the LED on the ESP01S module will stop flashing.
Here are the functions of the widgets.
Movement(K): Control the car to move back and forth, left and right.
Throttle(Q): Set the power of the car to move.
Cliff(M): Switch to cliff detection mode. As long as it’s enabled, the car will stop automatically when it reaches the edge of a table or staircase when using the Movement(K) widget to move it. After you get it back to a safe area, you can control it to keep moving.
- RGB Boards Related
Underglow(E): Turn on/off the bottom RGB Boards.
Color(F): Switch to different colors.
STT（I）: Switching to STT(Speech to Text) mode.
- Grayscale Module Related
Grayscale Value(A): Shows the grayscale values detected by the Graycale module and status indication in three different environments.
Line Track(N): Switching to line track mode.
- Ultrasonic Module Related
Sonar(D): Shows obstacles detected by Ultrasonic module.
Distance(J)：Shows the distance of obstacles.
Obstacle Avoidance(O): Switching to obstacle avoidance mode.
Follow(P): Switch to follow mode.
Speed(B): Shows the speed of the car.
Mileage(C):Shows the mileage of the car in motion.
As shown in the figure, the four modes run at different priority levels and cannot be enabled together.
Android devices cannot use the STT(Speech to Text) mode this time(AP Mode). Because the STT mode requires the Android mobile device to be connected to the Internet and to install the Google service component.
While iOS devices use offline voice recognition engine, no network connection is required, AP and STA mode connection are both available.
If you want to use the STT mode on your Android device, please refer to Q4：How can I use the STT mode on my Android device?.
The Pico 4WD Car can also be controlled using STT in SunFounder Controller. Pico 4WD Car will perform the set actions based on the commands you say to your mobile device.
Now tap and hold the STT(I) widget and say any of the following commands to see what happens.
stop: All movements of the car can be stopped.
forward: Let the car move forward.
backward：Let the car move backward.
left：Let the car turn left.
right：Let the car turn right.