.. note:: Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts. **Why Join?** - **Expert Support**: Solve post-sale issues and technical challenges with help from our community and team. - **Learn & Share**: Exchange tips and tutorials to enhance your skills. - **Exclusive Previews**: Get early access to new product announcements and sneak peeks. - **Special Discounts**: Enjoy exclusive discounts on our newest products. - **Festive Promotions and Giveaways**: Take part in giveaways and holiday promotions. ๐Ÿ‘‰ Ready to explore and create with us? Click [|link_sf_facebook|] and join today! FAQ ================ How to Change Wi-Fi Channel? ---------------------------------- The 2.4GHz Wi-Fi band has channels ranging from 1 to 13. ESP32 supports channels 1 to 11. Other devices operating on the same channel may cause interference, leading to connection issues. To mitigate this, you can try changing the channel. By default, the channel is set to 1. When selecting a new channel, itโ€™s recommended to skip 1-2 channels at a time. For example, if the current channel is 1, try channel 3 first, and if the signal is still poor, proceed to channel 5. .. note:: ESP32 CAM firmware version 1.4.1 or above is required to change channels. Refer to :ref:`update_firmware` for more details. #. Keep the ESP32 CAM inserted into the adapter, then power on the Zeus Car. .. image:: img/plug_esp32_cam.jpg :width: 400 #. To activate the ESP32 CAM, move the mode switch to the **Run** position, and press the **Reset** button to reboot the R3 board. .. image:: img/zeus_run123.jpg :width: 600 #. Find ``Zeus Car`` on the list of available networks on your mobile device (tablet or smartphone), enter the password ``12345678``, and connect to it. .. note:: * The current connection is to the Zeus Car hotspot, so there is no internet access. If prompted to switch networks, please choose "Stay connected". .. image:: img/app_wlan.png :width: 500 #. Open a web browser on your mobile device and navigate to ``http://192.168.4.1`` to access the ESP32 CAM OTA update page. .. image:: img/faq_cam_ota_141.jpg :width: 400 #. Under the **Wi-Fi AP Channel** section, select a different channel. * The default channel is 1. When selecting a new channel, skip 1-2 channels at a time (e.g., from channel 1 to 3, and if needed, to 5). * Click the **Confirm** button to save the changes. .. image:: img/faq_cam_ota_channel.png :width: 400 #. A confirmation popup will appear, prompting you to reset the device. Click **Confirm**. .. image:: img/faq_cam_ota_reset.jpg :width: 400 #. Press the **Reset** button to reboot the device. The Zeus Car is now ready for normal operation. .. image:: img/zeus_run123.jpg :width: 600 .. _update_firmware: How to Update Firmware for ESP32 CAM ----------------------------------------- Follow these detailed steps to update the firmware for your ESP32 CAM: #. Keep the ESP32 CAM inserted into the adapter, then power on the Zeus Car. .. image:: img/plug_esp32_cam.jpg :width: 400 #. To activate the ESP32 CAM, move the mode switch to the **Run** position, and press the **Reset** button to reboot the R3 board. .. image:: img/zeus_run123.jpg :width: 600 #. Find ``Zeus Car`` on the list of available networks on your mobile device (tablet or smartphone), enter the password ``12345678``, and connect to it. .. note:: * The current connection is to the Zeus Car hotspot, so there is no internet access. If prompted to switch networks, please choose "Stay connected". .. image:: img/app_wlan.png :width: 500 #. Click the link below to download the firmware file ``ai-camera-firmware-v1.4.1-ota.bin`` and save it to your mobile device. * :download:`ESP32 CAM Firmware ` #. Open a web browser on your mobile device and navigate to ``http://192.168.4.1`` to access the ESP32 CAM OTA update page. .. image:: img/faq_cam_ota.jpg :width: 400 #. On the OTA page, click the button to select the firmware file. .. image:: img/faq_cam_ota_choose.png :width: 400 #. Choose the previously downloaded ``ai-camera-firmware-v1.4.1-ota.bin`` file from your device and click **OK**. .. image:: img/faq_cam_ota_file.png :width: 400 #. Click the **Update** button to start the firmware update process. .. image:: img/faq_cam_ota_update.png :width: 400 #. Wait for the update to complete. Once the displayed version number changes to ``1.4.1``, the update is successful. .. image:: img/faq_cam_ota_finish.png :width: 400 #. After the update is complete, you can close the web browser. Press the **Reset** button to reboot the device. The ESP32 CAM is now ready for normal operation. .. image:: img/zeus_run123.jpg :width: 600 .. _upload_zeus_code: How to Upload the ``zeus-car.ino`` Code? ----------------------------------------------- By default, the Zeus Car's Uno R3 board comes preloaded with the necessary firmware, allowing you to control it via APP. If your R3 board has been overwritten with other code, but you'd like to return to the default firmware and continue with the :ref:`quick_start` process, follow these steps to re-upload the code to your R3 board: #. Use a USB cable to connect the Arduino to your computer. 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. .. image:: img/unplug_cam.png :width: 400 #. Download the required firmware from the link below: * :download:`R3 Board Firmware File ` #. Extract the downloaded zip file, then double-click the ``update-arduino-firmware.bat`` file to run it. .. image:: img/faq_firmware_file.png #. Type the corresponding number for your Zeus Car's Arduino Uno (e.g., ``1``) and press **Enter** to begin the update. .. note:: * If the correct COM port does not appear, or if you're unsure which one it is, disconnect other USB devices from your computer, leaving only the rover connected. * If you encounter an error like ``avrdude.exe: stk500_getsync() attempt 1 of 10: not in sync: resp=0xXX``, make sure to disconnect the ESP32-CAM as the first step. .. image:: img/faq_firmware_port.png #. After a short while, the new code will be successfully uploaded to the Uno R3 board on Zeus Car. If you fail to upload successfully after multiple attempts, you can run ``update-arduino-firmware-with-bootloader.bat``. .. image:: img/faq_firmware_finish.png .. _ap_to_sta: How to Control the Zeus Car Using Your Home WiFi? ------------------------------------------------- By default, the Uno R3 is preloaded with code configured in APP mode. This means the Zeus Car will broadcast a hotspot, allowing you to connect your mobile device to control it via the SunFounder Controller APP. If you prefer to control the rover using your home WiFi, follow these steps to upload the modified code to the Uno board: #. Download the required files from the following link: * :download:`Zeus Car Codes ` #. Refer to the installation guide: :ref:`install_arduino_ide`. #. Use the **Library Manager** to install the ``SoftPWM`` and ``SunFounder AI Camera`` libraries. For detailed steps, see :ref:`ar_install_lib`. #. Navigate to the ``zeus-car-main\zeus-car`` directory and open the ``zeus-car.ino`` file. .. image:: img/faq_galaxy_code.png :width: 600 #. Comment out lines of AP mode, uncomment lines of STA mode, replace ``SSID`` and ``PASSWORD`` with your home WiFi credentials. .. code-block:: arduino /** Configure Wifi mode, SSID, password*/ // #define WIFI_MODE WIFI_MODE_AP // #define SSID "Zeus_Car" // #define PASSWORD "12345678" #define WIFI_MODE WIFI_MODE_STA #define SSID "xxxxxxxxxx" #define PASSWORD "xxxxxxxxxx" #. Use a USB cable to connect the Arduino to your computer. 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. .. image:: img/unplug_cam.png :width: 400 #. Click the **Upload** button in the Arduino IDE to upload the modified code to the Uno board. .. image:: img/faq_galaxy_upload.png :width: 600 #. After the code is uploaded successfully, you can plug in the ESP32-CAM and then slide the power switch to ON to start the Zeus Car. .. image:: img/plug_esp32_cam.jpg #. To activate the ESP32 CAM, move the mode switch to the **Run** position, and press the **Reset** button to reboot the R3 board. .. image:: img/zeus_run123.jpg :width: 600 #. Ensure your mobile device (tablet or smartphone) is connected to your home WiFi network. .. image:: img/faq_connect_wifi.jpg :width: 400 :align: center #. Open the SunFounder Controller App, tap the "+" icon to create a new controller, select the "Zeus Car" preset, enter a name or tap "Confirm" to proceed. .. image:: img/app_preset.jpg :width: 600 #. The app will automatically search for the Zeus Car. After a moment, you will see a prompt stating "Connected Successfully." .. image:: img/app_edit.jpg :width: 600 #. Now, tap the |app_run| button enables you to view the live video feed from the camera and control the rover using the provided widgets. .. image:: img/app_run123.png :width: 600 How to Invert the Camera? --------------------------- If you find the camera feed upside down while using the SunFounder Controller, you can easily correct it through the app. Follow these steps: 1. Tap the |app_edit| button in the top-right corner. .. image:: img/faq_edit.png :width: 500 2. Click the **camera** button to open a popup. Toggle the **Inverted** switch to turn it on. .. image:: img/faq_inverted.png :width: 500 3. Save your settings. .. image:: img/faq_save.png :width: 500 4. Return to the control interface and click the |app_run| button. .. note:: Occasionally, the camera feed may not appear. If this happens, pause the controller and then click the run button again. .. image:: img/faq_run.png :width: 500 Compilation error: SoftPWM.h: No such file or directory? -------------------------------------------------------------- If you get a "Compilation error: SoftPWM.h: No such file or directory" prompt, it means you don't have the ``SoftPWM`` library installed. Please refer to :ref:`ar_install_lib` to install the required libraries. avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x6e? --------------------------------------------------------------------------- If the following message keeps appearing after clicking the Upload button when the board and port have been selected correctly. .. code-block:: avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 At this point, you need to make sure that the ESP32 CAM is unplugged. 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. .. image:: img/unplug_cam.png :width: 400 :align: center .. _stt_android: How can I use the STT feature on my Android device? ------------------------------------------------------------------------ The STT feature requires the Android mobile device to be connected to the Internet and to install the **Google service component**. Now follow the steps below. #. Modify the AP mode of ``Zeus_Car.ino`` file to STA mode. * Open the the ``Zeus_Car.ino`` file located in the ``zeus-car-main/Zeus_Car`` directory. * Then comment out the AP mode related code. Uncomment the STA mode related code and fill in the ``SSD`` and ``PASSWORD`` of your home Wi-Fi. .. code-block:: arduino /** Configure Wifi mode, SSID, password*/ // #define WIFI_MODE WIFI_MODE_AP // #define SSID "Zeus_Car" // #define PASSWORD "12345678" #define WIFI_MODE WIFI_MODE_STA #define SSID "xxxxxxxxxx" #define PASSWORD "xxxxxxxxxx" * Save this code, select the correct board (Arduino Uno) and port, then click the **Upload** button to upload it to the R3 board. #. Search ``google`` in Google Play, find the app shown below and install it. .. image:: img/google_voice.png #. Connect your mobile device to the same Wi-Fi as you wrote in the code. .. image:: img/sta_wifi.png :width: 400 :align: center #. Open the controller previously created in SunFounder Controller and connect it to ``Zeus_Car`` through the |app_connect| button. .. image:: img/app_connect.png :width: 500 :align: center #. Tap and hold the |app_speech_m| widget after clicking the |app_run| button. A prompt will appear indicating that it is listening. Say the following command to move the car. * ``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``