• 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
tannewt Notes

tannewt

u/tannewt

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 tannewt

    Automated Microfilm Scanning

    There are many documents that are archived on microfilm that hasn't been digitized. Libraries around the world store this microfilm so folks can look through them for the info they seek. For example, I've been digging into my ancestors who lived between 1850 and 1900. Many small towns had newspapers which covered the coming and goings of folks in town. Big players like newspapers.com make this info available under a subscription. The US Library of Congress also has a digitized collection. However, many other newspapers haven't been digitized.

    Libraries are setup for you to browse these microfilms page by page. When you find something interesting, you can scan it to a thumb drive. However, it's tough and time consuming to find the interesting things up front. Ideally, we'd digitize the entire microfilm reel and then be able to browse or analyze it at home.

    Save
  • By tannewt

    Logic Friend

    I've been working on hardware-in-the-loop testing for use in continuous integration testing, coding agent loops and validating coding agent output. There are a number of pieces to this puzzle.

    esp-usbip-bridge

    This ESP-IDF firmware runs on an ESP chip and bridges the usb host port to a TCP usbip server. This allows the USB devices connected to the ESP to be controlled remotely. They can be attached to the Linux kernel with the usbip command OR they can be used directly (see below).

    This firmware also starts an MDNS server so they can be discovered on the network. The firmware advertises a _usbip._tcp mDNS/DNS-SD service on port 3240 with hostname usbip-XXYYZZ.local.

    Lastly, this firmware can integrate other ESP-IDF components via a virtual CDC link. Virtual devices appear as a subsequent USB bus with a single virtual device. Currently only CDC is supported and translates to internal input and output FIFOs the component can use. The first example use is with the logic analyzer firmware.

    esp-perfetto-logic

    This is an ESP component with standalone examples that uses the PARLIO peripheral on the ESP32-P4 (and others untested) to capture signals up to 16 bits at 80 mhz. It uses an extended SUMP protocol for configuration. It also returns perfetto encoded trace data for visualization and analysis. It doesn't currently stream data. It simply writes it into PSRAM.

    This code can be run standalone on a P4 with the USB example or as a virtual device from within the USBIP bridge.

    viewtrace.dev

    This is the UI for the logic analyzer. It is based on the Perfetto UI originally designed for debugging Chrome and Android runtimes.

    It has been modified to support capturing from a serial connecting logic analyzer using the above firmware. It also has basic protocol decoding.

    Direct communication

    There are two layers to communicating from Python to the USB devices hosted by the bridge.

    pyusb-usbip-backend

    This Python library provides a backend to PyUSB that translates backend calls into the USB over IP protocol. Higher level libraries can then be written targeting the PyUSB API, which is what CircuitPython's USB host API is too.

    pyserial-pyusb

    This library implements the serial protocol portion of USB on top of PyUSB and connects it into PySerial. It is essentially drivers for standard CDC and CP210x. PySerial has a backend system but it requires the backend to be registered in the same python instance. Not quite like pluggy for USB where installation is enough.

    This works with idf.py by modifying it to import serial_pyusb which does the registration.

    image_(1).png
    Save
  • By tannewt

    Robert Feranec Stream Notes

    Getting started

    Go to https://circuitpython.org/downloads to download the appropriate UF2. Hold boot button on plugging in and then drag and drop the file.

    See this guide for workflow details: https://learn.adafruit.com/welcome-to-circuitpython

    See this guide for more simple API examples: https://learn.adafruit.com/circuitpython-essentials/

    Blinky

    Save
  • By tannewt

    Custom Storage Boxes

    The Idea

    I went down a bit of a rabbit hole a week or so ago when thinking about a better way to store all of the dev boards I have for testing. The ideal scenario is to have a lot of surface area to lay them all out so that you can see them all at a glance. No need to dig through anything. One way to do that is with shallow drawers, commonly call flat file storage. I found a flat file cabinet on Craiglist but it was pretty pricey and very large. They are often used for large prints that need to be kept flat. For dev boards, I don't need a lot of area together, just a lot overall.

    After seeing creative drawer inserts for the Ikea Kallax bookshelf and some done in cardboard, I realized I could get custom cardboard boxes to fit in each square. I found EcoEnclose which makes custom sized shipping boxes low minimum order ($20) and now have just over 20 boxes for around $40. 10 of the shallowest boxes cost just under $20 and can fit in a single square. (The wood 10 drawer set is $140.)

     

    The Details

    EcoEnclose has variety of options for the custom boxes: style, strength and inner dimensions. (The use is for going around another box for shipping.)

    IMG_2023.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
    "Do what you can, with what you have, where you are"
    Theodore Roosevelt
    Adafruit Logo
    A Minority and Woman-owned Business Enterprise (M/WBE)