Skip to content
Snippets Groups Projects
faq.rst 6.04 KiB
Newer Older
Gauthier HEISS's avatar
Gauthier HEISS committed
Frequently Asked Questions
==========================
Gauthier HEISS's avatar
Gauthier HEISS committed

.. note::
Gauthier HEISS's avatar
Gauthier HEISS committed
   A must read when something doesn't work before contacting support :-)
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
My esieabot shows no sign of life
---------------------------------
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
- Check that the SD card is inserted correctly, in the right direction and before connecting the power.
- Check that the SD card is properly burned. If in doubt, follow the steps to re-burn it. Be careful, this will delete the contents of the SD card.
Gauthier HEISS's avatar
Gauthier HEISS committed
- Check that the Raspberry Pi is well powered. If you have a pre-2023 *esieabot*, you must connect it to USB, no matter the port, on a charged battery, a USB wall charger or a computer. Feel free to test with another micro USB cable. If you have an *esieabot 2023* or newer, make sure your power board is powered. You can also try to power your Raspberry Pi directly with a micro USB cable.
- If you have an *esieabot 2023* or newer, try pressing the "RESET" button located right next to the right wheel.
Gauthier HEISS's avatar
Gauthier HEISS committed
- Check that the current connections on the GPIOs do not cause a short circuit. If in doubt, unplug everything except the SD card and the power supply.
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
My esieabot does not move at all with the joystick and the basic program
------------------------------------------------------------------------
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
- Check that the SD card is properly burned. If in doubt, follow the steps to re-burn it. Be careful, this will delete the content of the SD card.
- Make sure that the controller is plugged into the USB port of the Raspberry Pi before you plug in the power and turn on the esieabot.
- Once the Raspberry Pi is started, check that the controller is powered, there should be a red LED.
- If you have a pre-2023 *esieabot*, check that the batteries used to power the motors are fully charged. The battery pack must deliver at least 5V.
- If you have a pre-2023 *esieabot*, check that the connection is exactly the same as in the assembly guide. Be careful to respect the direction of the connections.
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
My esieabot has only one motor or one direction which works with the basic program
----------------------------------------------------------------------------------
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
- If you have a pre-2023 *esieabot*, check that the connection is exactly the one of the assembly guide. Be careful to respect the direction of the connections.
- Try reversing your two motors. If the motor that did not work works, it means that your connections are wrong. If not, your motor must be replaced.
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
My esieabot has an unstable behavior, it restarts itself occasionally, disconnects my remote terminal or does not detect my joystick for example
------------------------------------------------------------------------------------------------------------------------------------------------
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
- Check that the battery that powers the Raspberry Pi is fully charged. If in doubt, plug the power supply into your computer or a wall socket.
Gauthier HEISS's avatar
Gauthier HEISS committed
- Check that there are no peripheral devices connected to the Raspberry Pi that consume too much power.

I can't run my program, I get the error "can't lock /var/run/pigpio.pid"
------------------------------------------------------------------------

You encounter this error because you are trying to run multiple programs that use the same pigpio resources.
Gauthier HEISS's avatar
Gauthier HEISS committed

Gauthier HEISS's avatar
Gauthier HEISS committed
- Stop esieabot-manager and pigpiod by running these commands: ``sudo systemctl stop esieabot-manager`` and ``sudo systemctl stop pigpiod``. It will stop these default services to let you use the full pigpio resources. Be careful, they will be up again after the next reboot.
- Use pigpio\ **d** and not pigpio in your code. It makes possible to run multiple programs that use GPIOs.

My esieabot doesn't go straight
-------------------------------

Gauthier HEISS's avatar
Gauthier HEISS committed
Two :doc:`DC motors</understand/dcmotor/dcmotor>` are never identical. It's normal for them not to travel at exactly the same speed at the same voltage. That's why the *esieabot 2023* includes :doc:`speed sensors </understand/speed-sensor/speed-sensor>` for speed control. If you have a *pre-2023 esieabot*, you'll need to use :any:`PWM signals<pwm>` in your program to reduce the speed of the motor that's going faster than the other. This way, your esieabot will be able to go straight.
Gauthier HEISS's avatar
Gauthier HEISS committed

I get the error "Remote host identification has changed" when I try to connect via SSH
--------------------------------------------------------------------------------------

Gauthier HEISS's avatar
Gauthier HEISS committed
You're getting this error because you've probably reset your esieabot, thereby resetting its internal SSH keys. As a precaution, your computer refuses to connect to your esieabot again, as it detects this change and believes it to be identity theft. If you use Linux or macOS, to tell your computer to delete the old internal key from its memory, you need to run the following command (which is normally suggested in the error message) :
Gauthier HEISS's avatar
Gauthier HEISS committed

.. code-block:: bash

Gauthier HEISS's avatar
Gauthier HEISS committed
   ssh-keygen -f "<your home folder>/.ssh/known_hosts" -R "<IP address or name of your esieabot>"

Gauthier HEISS's avatar
Gauthier HEISS committed
If you use Windows, you can delete the file ``known_hosts`` which is located in ``C:\Users\<your user name>\.ssh\known_hosts``.


Can't update esieabot
---------------------

Gauthier HEISS's avatar
Gauthier HEISS committed
If the ``apt update`` and/or ``apt upgrade`` commands fail, check that your esieabot is properly connected to the internet. To do this, run the ``ping wikipedia.org`` command. It should not return an error. Press `Ctrl+C` to exit. If you encounter an error, it means that your esieabot is not connected to the internet. If updates still do not work, check that your system has the correct time. Indeed, if your esieabot has just connected to the internet, it may not have had time to automatically set the correct time. To know the system time, type the ``date`` command. If the time is incorrect, type the command ``sudo date -s "YYYYMMDD"``, replacing YYYYMMDD with the current date. You can then try the updates again.
Gauthier HEISS's avatar
Gauthier HEISS committed

I can't compile my C program: "pigpiod_if2.h: No such file or directory"
------------------------------------------------------------------------

This error occurs because you are trying to compile a C program on a computer that does not have the pigpio library installed. It usually means that you are trying to compile your program on your computer and not on your esieabot.