• Skip to main content
  • Shop
  • Learn
  • Blog
  • Forums
  • IO
  • LIVE!
  • AdaBox
Adafruit Logo
0
  • Sign In | Create Account
  • Playground
  • Shop
  • Learn
  • Blog
  • Forums
  • IO
  • LIVE!
  • AdaBox
Sign In
0
Adafruit Logo
  • Learn Categories
    • 3D Printing
    • AdaBox
    • Adafruit Products
    • Arduino Compatibles
    • Breakout Boards
    • Circuit Playground
    • CircuitPython
    • CLUE
    • Community Support
    • Components
    • Crickit
    • Customer & Partner Projects
    • Development Boards
    • Educators
    • EL Wire/Tape/Panel
    • Feather
    • Gaming
    • Hacks
    • Internet of Things - IOT
    • LCDs & Displays
    • LEDs
    • Machine Learning
    • MakeCode
    • Maker Business
    • micro:bit
    • Microcontrollers
    • Programming
    • Raspberry Pi
    • Robotics & CNC
    • Sensors
    • STEMMA
    • Tools
    • Trellis
    • Wearables
    Explore, Groups to get your gears turning
    Explore
    Groups to get your gears turning
    Explore Groups
  • New Guides
  • Playground
bdsvac Notes

bdsvac

u/bdsvac

Getting Started

Adafruit Playground is a wonderful and safe place to share your interests with Adafruit's vibrant community of makers and doers. Have a cool project you are working on? Have a bit of code that you think others will find useful? Want to show off your electronics workbench? You have come to the right place.

The goal of Adafruit Playground is to make it as simple as possible to share your work. On the Adafruit Playground users can create Notes. A note is a single-page space where you can document your topic using Adafruit's easy-to-use editor. Notes are like Guides on the Adafruit Learning System but guides are high-fidelity content curated and maintained by Adafuit. Notes are whatever you want them to be. Have fun and be kind.

Click here to learn more about Adafruit Playground and how to get started.

  • By bdsvac

    Google Coral USB Accelerator on Raspberry Pi Bookworm

    Google Coral's USB Accelerator (https://coral.ai/docs/accelerator/get-started) currently doesn't work on the Raspberry Pi OS Bookworm. In order to get the USB Accelerator to work we need to do a few extra things like install Python 3.9 and create a python virtual environment.

    Install dependencies

    sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev

    Build Python from scratch

    wget https://www.python.org/ftp/python/3.9.18/Python-3.9.18.tar.xz
    tar xf Python-3.9.18.tar.xz
    cd Python-3.9.18
    ./configure --enable-optimizations 
    sudo make altinstall

    Make a virtual environment

    Python-3.9.18/python -m venv --system-site-packages tf

    Next we can install Pycoral

    echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
    curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
    sudo apt-get update
    sudo apt-get install libedgetpu1-std -y
    sudo usermod -aG plugdev

    sudo ./tf/bin/pip3 install --extra-index-url https://google-coral.github.io/py-repo/ pycoral

    Install any extra python libraries

    sudo ./tf/bin/pip3 install opencv-python

    sudo apt install libcap-dev libcamera-dev 

    sudo ./tf/bin/pip3 install rpi-libcamera

    sudo ./tf/bin/pip3 install rpi-kms

    sudo ./tf/bin/pip3 install picamera2

    Note: rpi-libcamera and rpi-kms may need to be updated if your system package is updated.

    As of 2/21/2024, If your are installing rpi-libcamera 0.1a2 and have updated to libcamera0.2, you will need to run the following:

    cd /usr/lib/aarch64-linux-gnu

    sudo ln -s /usr/lib/aarch64-linux-gnu/libcamera-base.so.0.2.0 libcamera-base.so.0.1

    sudo ln -s /usr/lib/aarch64-linux-gnu/libcamera.so.0.2.0 libcamera.so.0.1

    Run the python virtual environment

    source ./tf/bin/activate

    At this point you should be able to use the USB Accelerator against the pycoral repo: https://github.com/google-coral/pycoral.git

     

     

     

    Save
  • By bdsvac

    Raspberry Pi Stats Display

    The 3D printed insert can be found here: https://www.printables.com/model/710601-pi-5-official-case-active-cooler-insert-small-came

    To get the display to show stats, first install blinka by following the guide here: https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi

    Assuming you created a python virtual environment in /home/pi/env path, run the following commands:

    cd ~

    source ./env/bin/activate

    pip install adafruit-circuitpython-ssd1306

    Now create your python file called stats_display.py in the /home/pi directory.

    Please try running the command:

    vcgencmd measure_clock arm

    If your output does not start with frequency(0)= then you will need to change the line:

    Freq = Freq.replace('frequency(0)=', '')

    to match the start of your output in the code file above.

    Now try to run the code by calling:

    python ./stats_display.py

    If the display is working, we can now run this as a service at start up.

    20240106_195109.jpg
    Save
Search

Getting Started

Adafruit Playground is a wonderful and safe place to share your interests with Adafruit's vibrant community of makers and doers. Have a cool project you are working on? Have a bit of code that you think others will find useful? Want to show off your electronics workbench? You have come to the right place.

The goal of Adafruit Playground is to make it as simple as possible to share your work. On the Adafruit Playground users can create Notes. A note is a single-page space where you can document your topic using Adafruit's easy-to-use editor. Notes are like Guides on the Adafruit Learning System but guides are high-fidelity content curated and maintained by Adafuit. Notes are whatever you want them to be. Have fun and be kind.

Click here to learn more about Adafruit Playground and how to get started.

    • Contact Us
    • Tech Support Forums
    • FAQs
    • Shipping & Returns
    • Freebies
    • Terms of Service
    • Privacy & Legal
    • Website Accessibility
    • LLMs.txt
    • About Us
    • Press
    • Educators
    • Distributors
    • Jobs
    • Gift Cards
    "I am driven by two main philosophies, know more today about the world than I knew yesterday. And lessen the suffering of others. You'd be surprised how far that gets you"
    Neil deGrasse Tyson
    Adafruit Logo
    A Minority and Woman-owned Business Enterprise (M/WBE)