View: 1778|Reply: 1

RaspClaws & last Raspberry PI 4 tutorial + update install script

[Copy link]

1

Threads

3

Posts

13

Credits

Newbie

Rank: 1

Credits
13
Post time 2022-8-12 23:46:37 | Show all posts |Read mode
Edited by 1660316805 at 2022-8-12 11:51 PM

I bought RaspClaws and the latest versione on RaspBerry PI 4 and I encountered some serious issue on setup.
  • Error installing opencv-contrib-python (setup.py)
  • Could not determine default I2C bus for platform [Copy link]
  • ModuleNotFoundError: No module named 'cv2'
  • Error loading numpy
  • Error causing hang on boot with webServer.py (and so, no boot and no ssh response)


After some days of troubleshooting my RaspClaws is now working.
If setup is already done with standard scripts:
  • Remove autostart from webServer.py (from line 124 to 135) and remove/comment lauch of startup.sh in etc/rc.local. This will fix hang on boot.
  • Edit file
    /usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/Platform.py
    and replace 'BCM2835' with 'BCM2711'
    this will fix I2C error
  • Uninstall numpy
    sudo pip3 uninstall numpy
  • Install opencv-python
    sudo apt-get install libgraphite2-3 libatspi2.0-0 libthai0 libxcb-shm0 libxcb-render0 libswscale5 librsvg2-2 libvorbisenc2 libavutil56 libzvbi0 libgsm1 libxinerama1 libxvidcore4 libsrt1.4-gnutls libswresample3 libatk1.0-0 libvorbisfile3 libogg0 libpangoft2-1.0-0 libpgm-5.3-0 libwayland-egl1 libharfbuzz0b libpango-1.0-0 libcairo2 libva-x11-2 libwayland-cursor0 libgfortran5 libxfixes3 libgme0 libxrender1 libvorbis0a libxi6 libudfread0 libspeex1 libwebpmux3 libsodium23 libdatrie1 libatk-bridge2.0-0 libxrandr2 libbluray2 libx264-160 libwavpack1 libxcomposite1 libpangocairo-1.0-0 libsoxr0 libshine3 libxkbcommon0 libvdpau1 libgtk-3-0 libopus0 librabbitmq4 libgdk-pixbuf-2.0-0 libavformat58 libmpg123-0 libxdamage1 libzmq5 libdav1d4 libopenmpt0 libatlas3-base libva2 libva-drm2 libxcursor1 libssh-gcrypt-4 libavcodec58 libaom0 libx265-192 libwayland-client0 libcairo-gobject2 libcodec2-0.9 libpixman-1-0 libdrm2 libsnappy1v5 libnorm1 libopenjp2-7 libtheora0 ocl-icd-libopencl1 libtwolame0 libvpx6 libepoxy0 libchromaprint1 libmp3lame0
    sudo pip3 install opencv-python
  • Setup new startup script using systemmd
    sudo nano /lib/systemd/system/raspclaws.service
    Insert this file content
    [Unit]
    Description=RaspClaws Service
    After=multi-user.target

    [Service]
    Type=idle
    ExecStart=sudo /usr/bin/python /home/pi/Adeept_RaspClaws/server/webServer.py

    [Install]
    WantedBy=multi-user.target

    Save and Exit
  • Now run these commands
    sudo chmod 644 /lib/systemd/system/raspclaws.service
    sudo systemctl daemon-reload
    sudo systemctl enable raspclaws.service
    sudo reboot

Alternatively you can use modified setup.py scripts from a fresh Raspberry PI SO installation (in attachment).

I hope it will be useful to everyone

setup.zip

2.17 KB, Downloads: 331

Reply

Use magic Report

0

Threads

2

Posts

14

Credits

Newbie

Rank: 1

Credits
14
Post time 2022-9-5 01:18:16 | Show all posts
Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!

What are you doing for power? The two batteries that came with the kit aren't enough (18650 3.7v 2000mAh) but I can use a Mac USB-C charger top power it up with all servos connected, so I'm sure it's a power issue
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules