Controlled by APP

To control Zeus Car from your mobile device, you must download the APP (SunFounder Controller) on your device, connect to the Zeus Car LAN, and then create your own controller on the APP.



Quick Guide

This is a quick tutorial video. Please watch the video first, and then follow the instructions provided below.



  1. Let’s start the Zeus Car.

    • When first used or when the battery cable is unplugged, Zeus Car Shield will activate its over-discharge protection circuitry.

    • So you’ll need to plug in the Type-C cable for about 5 seconds.


    • If the power indicator lights up, it means that the protection status has been released. 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.

    ../_images/zeus_power.jpg
    • Now, you’ll need to flick the smaller switch to the right to establish communication between the car and the ESP32 CAM. Afterward, press the Reset button to reboot the code. At this point, you’ll observe the undercarriage lights transition from orange to a light blue.


  2. Install SunFounder Controller from APP Store(iOS) or Google Play(Android).

  3. Connect to Zeus_Car WLAN.

    Now, connect your mobile device to the local area network (LAN) broadcast by the Zeus Car. This way, your mobile device and the Zeus Car will be on the same network, which will facilitate communication between the applications on your mobile device and the Zeus Car.

    • Find Zeus_Car on the WLAN of the mobile phone (tablet), enter the password 12345678 and 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.

    ../_images/app_no_internet.png
  4. Create a controller.

    • To add a controller on SunFounder Controller, click the + icon.

    ../_images/app1.png
    • Preset controllers are available for some products, here we choose Zeus Car. Give it a name, or simply tap Confirm.

    ../_images/app_preset.jpg
    • Once inside, the app will automatically search for the Zeus Car. After a moment, you will see a prompt saying “Connected Successfully.”

    ../_images/app_edit1.jpg
    • Now, tap the app_run button enables you to view the live video feed from the camera and control the car using the provided widgets.

    ../_images/app_run123.png
  5. Here are the functions of the widgets.

    • Calibration(E): Turn on compass calibration.

    • Stop(F): Stop all movements of the car.

    • Reset Heading(G): After placing the car in one direction with your hand, click on this widget to make this direction as the front of the car movement. This allows you to quickly specify a direction instead of slowly rotating the car to that direction with other widgets.

    • Speech(I): Switching to speech control mode.

    • Drift Enable(J): Activate the drift function.

    • Move in All Directions(K): Control the car to move in all directions.

    • Line Track: The following two widgets can both switch to line track mode.

      • Line no Mag(M): Switch to line track mode, but not affected by the magnetic field. During the line tracking process, the Zeus Car’s orientation will continuously change.

      • Line(N): Switching to line track mode, due to the presence of the magnetic field, the Zeus Car’s orientation during line tracking will be oriented towards a specific direction.

    • Follow(O): Switching to follow mode.

    • Avoid(P): Switch to obstacle avoidance mode.

    • Control the Drection(Q): Used to control the head direction.

Calibration(E)

Turn on compass calibration by clicking the app_cali_e button.

Place the Zeus car on the ground. Upon turning on the compass calibration, the car will start rotating counterclockwise and will stop in about 1 minute. If it rotates longer than 2 minutes, the magnetic field here is complicated. Try changing the location and calibrating again.

Drift Enable(J)

Click the app_drift_j button to enable the drift function.

  • By sliding the app_rotate_q widget counterclockwise, you will see Zeus Car drift to the right. Upon releasing the hand, the car will stop at its current position.

../_images/zeus_drift_left.jpg
  • Similarly, if you slide the app_rotate_q widget clockwise, the Zeus Car will drift to the left and stop in the current position.

../_images/zeus_drift_right.jpg

Move in All Directions(K)



The Zeus Car will move in the appropriate direction when you swipe the app_move_k widget.

../_images/joystick_move.png

The car moves once every time you slide, so if you don’t release your hand all the time, the car keeps moving.

../_images/zeus_move.jpg

Speech(I)

By pressing the app_speech_m widget, you can activate the STT feature, where STT stands for Speech to Text.

The SunFounder Controller app integrates with your mobile device’s voice recognition engine. Hence, when you tap and hold the Speech(I) widget on the SunFounder Controller and speak into your mobile device.

Your device will capture your speech, convert it into text, and send it to the Zeus Car. If this text matches the pre-set commands in your code, the Car will carry out the corresponding actions.

The following are the commands currently preset in the code. Speak any of the following commands and observe how the Zeus Car responds.

  • stop: All movements of the car can be stopped.

  • pasue: The function is basically the same as Stop, but if the head of the car is not facing the direction originally set, it will slowly move to the set direction.

  • forward

  • backward

  • left forward

  • left backward

  • right forward

  • right backward

  • move left

  • move right

Note

The STT (Speech to Text) function requires an internet connection and Google services on Android devices. However, this doesn’t work with the pre-set AP (Access Point) mode on the Zeus Car.

In AP mode, the Zeus Car creates a local Wi-Fi network that your mobile device can connect to, but it does not provide internet access.

To use the STT function on Android, switch the car’s code from AP to STA mode as outlined in Q3: How can I use the STT feature on my Android device?.

Note

iOS devices, using an offline voice recognition engine, work fine in both AP and STA modes.

After the car receives the above 8 commands, it will keep moving in the corresponding direction unless it receives stop or pasue commands.

../_images/zeus_move.jpg
  • turn left: This command will make the car to turn left 45° with the body as the center, then it will move forward or stop according to the previous state. If the previous state is stop, it will stop after turning left 45°; if it is forward, it will move forward after turning.

../_images/zeus_turn_left.jpg
  • turn right: This command will make the car turn 45° to the right with the body as the center, and again will move forward or stop depending on the previous state.

../_images/zeus_turn_right.jpg

Line Track



Click on the app_line_n widget to switch to the line track mode.

Two modes of line track are available on the Zeus Car, one with its head always facing the direction of movement and one with its head facing a fixed direction. Here, the second mode is selected.

  1. Stick a 3cm wide line

    There are eight sensors on the Omni grayscale module, and the distance between each sensor is between 2 and 3 cm. There must be two sensors to detect the black line simultaneously. Therefore, the line you stick must be at least 3cm wide and the bend angle should not be less than 90°.

    ../_images/map.png
  2. Calibrate the Omni Grayscale module.

    Since each subfloor has different grayscale values, the factory-set grayscale threshold may not be appropriate for your current environment, so you will need to calibrate this module before use. It is recommended that you need to calibrate it whenever the floor color changes a lot.

    • Place the Zeus Car on white surface and turn the potentiometer until the gray sensor light is just illuminated.

    ../_images/zeus_line_calibration.jpg
    • Now let the two greyscale sensors on the side be located just between the black line and white surface, and slowly turn the potentiometer until the signal indicator just goes off.

    ../_images/zeus_line_calibration1.jpg
    • You can move repeatedly over the the black line and white surface to make sure that the lights of the greyscale sensor are off when they are between the the black line and white surface and on when they are on the white surface, indicating that the module is successfully calibrated.

  3. Place the Zeus Car on your stickied line, click the app_line_n widget, and it will track the line.

  4. Due to the high environmental requirements of the Omni grayscale module, it is recommended to calibrate it a few more times if the tracking effect is not satisfactory (off-track).

Follow(O)



Click the app_follow_o widget to switch to follow mode.

The ultrasonic sensor detects obstacles in front (20 cm) and follows them forward. These two obstacle avoidance modules allow the car to follow left or right, but they need to be calibrated (15cm) before use.

  1. Calibrate the IR obstacle avoidance module.

    • Start by adjusting the right obstacle avoidance module. During transportation, collisions may cause the transmitter and receiver on the infrared module to tilt. Therefore, you need to manually straighten them.



    • Place an obstacle about 15cm away from the IR obstacle avoidance module.

    • On the module are two potentiometers, one to adjust the sending power and one to adjust the sending frequency. By adjusting these two potentiometers, you can adjust the detection distance.

    • Then you can adjust a potentiometer, and if at 15cm, the signal light on the module illuminates, the adjustment is successful; if it doesn’t, adjust another potentiometer.

    ../_images/zeus_ir_avoid.jpg
    • Calibrate the other obstacle avoidance module in the same way.

  2. Place Zeus car on a table or the ground and let it follow your hand or other obstacles.

Avoid(P)



When you want to go into obstacle avoidance mode, click the app_avoid_p widget, but first reference the Follow(O) to calibrate the two obstacle avoidance modules.

  • Zeus car will move forward.

  • An ultrasonic module detects obstacles in front, if detected, the car turns left.

  • When the left obstacle avoidance module detects an obstacle, the car turns right, and when the right obstacle avoidance module detects an obstacle, the car turns left.

Control the Drection(Q)

  • When the app_drift_j button is on, the app_rotate_q widget is used to make the Zeus Car drift left and right.

  • When the app_drift_j widget is off, the app_rotate_q widget is used to control the direction of the car’s head.

    • By sliding the app_rotate_q widget counterclockwise, the car will also rotate counterclockwise. Upon releasing the hand, the head of the car will back to the original direction.

    ../_images/zeus_turn_left.jpg
    • Similarly the car will rotate clockwise with the app_rotate_q widget and return to the original direction when released.

    ../_images/zeus_turn_right.jpg