Skip to main content

Robot control system for Stringman

Project description

nf_robot

Control code for the Stringman household robotic crane from Neufangled Robotics

Build Guides and Documentation

Purchase assembled robots or kits at neufangled.com

Installation of stringman controler

Linux (python 3.11 or later)

sudo apt install python3-dev python3-virtualenv python3-pip ffmpeg
python -m virtualenv venv
pip install "stringman[host]"

Start headless robot controller in a mode that connects to remote telemetry

stringman-headless

For LAN mode, see local_ui/README.md

Installation of Robot Control Panel (developers)

git clone https://github.com/nhnifong/cranebot3-firmware.git

sudo apt install python3-dev python3-virtualenv python3-pip ffmpeg
python -m virtualenv venv
source venv/bin/activate
pip install -e ".[host,dev,pi]"

If you have an RTX 5090

pip install --force-reinstall torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 torchcodec==0.6.0 --index-url https://download.pytorch.org/whl/cu129

Run tests

pytest tests

Raspberry pi (development)

stringman-pilot-rpi-image contains the configuration needed to build an SD card image for various stringman robot components.

On a raspberry pi with suitable ram, such as a Pi 5, with rpi-image-gen checked out into a directory which is a sibling of this repo, Build the image with

./rpi-image-gen build \
  -S ../cranebot3-firmware/stringman-pilot-rpi-image/ \
  -c ../cranebot3-firmware/stringman-pilot-rpi-image/config/stringman.yaml \
  -- IGconf_device_user1pass='Fo0bar!!'

After booting the robot component with the image for the first time, it will use it's camera to look for a wifi share QR code to get connected. You can produce a code with qifi.org

Once the pi sees the code it will connect to the network and remember those settings. It should then be discoverable by the control panel via multicast DNS (Bonjour)

Starting from a base image

Alternatively the software can be set up from a fresh raspberry pi lite 64 bit image. After booting any raspberry pi from a fresh image, perform an update

sudo apt update
sudo apt full-upgrade

When starting with the lite raspi image, you will be missing the following, so install those.

sudo apt install git python3-dev python3-virtualenv

Set the component type by uncommenting the appropriate line in server.conf

nano server.conf

Install stringman

git clone https://github.com/nhnifong/cranebot3-firmware.git && cd cranebot3-firmware
chmod +x install.sh
sudo ./install.sh

additional settings for anchors

Setup for any raspberry pi that will be part of an anchor Enable uart serial harware interface interactively.

sudo raspi-config

In interface optoins, select serial port. disable the login shell, but enable hardware serial.

add the following lines lines to to /boot/firmware/config.txt at the end this disables bluetooth, which would otherwise occupy the uart hardware. Then reboot after this change

enable_uart=1
dtoverlay=disable-bt

additional settings for gripper

Setup for the raspberry pi in the gripper with the inventor hat mini Enable i2c

sudo raspi-config nonint do_i2c 0

Add this line to /boot/firmware/config.txt just under dtparam=i2c_arm=on and reboot

dtparam=i2c_baudrate=400000

Rebuilding the python module

within a venv install the build tools

python3 -m pip install --upgrade build twine

Bump the version number in pyproject.toml then at this repo's root, build the module. Artifacts will be in dist/

python3 -m build

Upload to Pypi

python3 -m twine upload dist/*

Training models

Support this project

Donate on Ko-fi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nf_robot-0.2.1.tar.gz (36.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nf_robot-0.2.1-py3-none-any.whl (36.7 MB view details)

Uploaded Python 3

File details

Details for the file nf_robot-0.2.1.tar.gz.

File metadata

  • Download URL: nf_robot-0.2.1.tar.gz
  • Upload date:
  • Size: 36.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nf_robot-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3c106947f1a7def2249f8f78e085905ab8e320841c3937a4cb47be12d6a629d4
MD5 0a609a0a6650b4e3ca67fb1805227297
BLAKE2b-256 f9e6f9b35ed2b13f643b56105ae5440d2207319a853f60fc202910aded05e25c

See more details on using hashes here.

File details

Details for the file nf_robot-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: nf_robot-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 36.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nf_robot-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f72b7aeae1feb919b47ed7fe3ab462ac8b0f0915c82f05b14fc1a41af54df64
MD5 d0691f0e09dfedf6e53281a321dafecb
BLAKE2b-256 339416aa941b888b378ce53a9401475466acfc0db3e27a9af6f999a3475c10e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page