Robobot 2b: Difference between revisions

From Rsewiki
Line 58: Line 58:
  cd /home/local/svn/robobot/teensy_firmware_8
  cd /home/local/svn/robobot/teensy_firmware_8
  ./compile
  ./compile
  ''(takes about 15 seconds)''
  ''(takes 5-15 seconds)''
  ./upload
  ./upload
  ''Waiting for Teensy device...''
  ''Waiting for Teensy device...''
  ''(hint: press the reset button)''
  ''(hint: press the reset button)''


'''Do not''' press the reset button (the small button on the Teensy board) without pressing and holding the ''power'' button.
'''Do not press the reset button''' (the small button on the Teensy board) without pressing and holding the ''power'' button during the upload.
If ''power'' button makes sure the power (also to the Raspberry) is not cut during the upload.
If it happens anyhow, then press and hold the ''power'' button while the Raspberry boots, you log-on and repeat the upload.

Revision as of 16:37, 16 January 2025


Update software

Once connected to the Raspberry Pi of the robot, update the software:

Update operating system

The operating system is the recommended PI-OS 64bit system build on Debian.

Update using the commands:

sudo apt update
sudo apt dist-upgrade

The sudo is required to get administrator (super-user) privileges. the password is the users password.

Update the Robot software

The Robobot software is on an SVN (subversion) repository, update to newest version using:

cd svn/robobot
svn update

If C++ files were updated, then these apps need to be recompiled, continue with next section:

Recompile base software

When connected to the robot recompile the relevant software:

IP display

The ip_disp can show the robots IP on the robot display, it further monitors the start button and starts the Python mission app.

In the directory /home/local/svn/robobot/ip_disp/build:

cd /home/local/svn/robobot/ip_disp/build
make -j3

This should be recompiled if there are any changes.

Teensy - MQTT interface

The teensy_interface makes the robot interface available using the MQTT protocol and thus makes it available over the net.

In the directory /home/local/svn/robobot/ip_disp/build:

cd /home/local/svn/robobot/ip_disp/build
make -j3

This should be recompiled if there are any changes.

The Teensy 4.1 firmware

The Robobot version of the Teensy firmware handles all (most) of the sensor and actuator interfaces.

The firmware in the /home/local/svn/robobot/teensy_firmware_8 directory:

cd /home/local/svn/robobot/teensy_firmware_8
./compile
(takes 5-15 seconds)
./upload
Waiting for Teensy device...
(hint: press the reset button)

Do not press the reset button (the small button on the Teensy board) without pressing and holding the power button during the upload. If power button makes sure the power (also to the Raspberry) is not cut during the upload. If it happens anyhow, then press and hold the power button while the Raspberry boots, you log-on and repeat the upload.