8. Move Field Centric

This project is based on the previous project to combine the compass function to the movement of Zeus Car. While you control the Zeus Car movement with the remote control, if it is deflected by an external force (e.g. kicked by a dog), it will automatically deflect back to the original direction.

How to do?

  1. The ESP32-CAM and the Arduino board share the same RX (receive) and TX (transmit) pins. So, when you’re uploading code, you’ll need to first disconnect the ESP32-CAM to avoid any conflicts or potential issues.

    ../_images/unplug_cam1.png
  2. Open the 8_move_field_centric.ino file under the path of zeus-car-main\examples\8_move_field_centric.

  3. After the code is uploaded successfully, slide the power switch to ON to start the Zeus Car.

  4. Then use the number 1 ~ 9 on the remote control to control the car in 8 directions. After pressing a key, the Zeus Car will keep moving until you press ir_power or the number key 5.

    ../_images/zeus_move.jpg
  5. When you press ir_return once, the car will rotate counterclockwise with the body as the center and will stop until you press ir_power or the number key 5.

    ../_images/zeus_turn_left.jpg
  6. Similarly, pressing ir_usd once will make the car rotate clockwise, and then it will stop until you press ir_power or the number key 5.

    ../_images/zeus_turn_right.jpg
  7. Press the ir_minus key, the car will drift to the left.

    ../_images/zeus_drift_left.jpg
  8. Press the ir_plus key, the car will drift to the right.

    ../_images/zeus_drift_right.jpg

Note

  • If the Zeus Car does not move well, the compass may not be calibrated properly, you need to press ir_mute to calibrate it.

  • If you pick up the car from the ground to the table, the magnetic field will change and you need to recalibrate it.