---
title: Build a shelf-pointer adapter (Raspberry Pi or ESP32)
description: What a Raspberry Pi or ESP32 shelf-pointer adapter must do at the API level, with message examples, the published pose kinds, the laser safety rules the…
url: https://spaceworkslabs.tech/docs/space-works/device-adapters-hardware-shelf-pointer/
updated: 2026-11-16
---

[Space Works](https://spaceworkslabs.tech/docs/space-works/) Start here
- [What Space Works is](https://spaceworkslabs.tech/docs/space-works/guide-overview/)
- [Getting started](https://spaceworkslabs.tech/docs/space-works/guide-getting-started/)
- [FAQ and troubleshooting](https://spaceworkslabs.tech/docs/space-works/guide-faq/)
- [Glossary](https://spaceworkslabs.tech/docs/space-works/guide-glossary/)
- [Sign-in methods](https://spaceworkslabs.tech/docs/space-works/guide-sign-in-methods/)
Tutorials
- [Tutorials overview](https://spaceworkslabs.tech/docs/space-works/tutorials-overview/)
- [Set up your first makerspace](https://spaceworkslabs.tech/docs/space-works/tutorials-first-makerspace/)
- [Lend your first tool](https://spaceworkslabs.tech/docs/space-works/tutorials-lend-your-first-tool/)
- [Run your first event](https://spaceworkslabs.tech/docs/space-works/tutorials-first-event/)
- [Take room bookings](https://spaceworkslabs.tech/docs/space-works/tutorials-room-bookings/)
- [Take payments](https://spaceworkslabs.tech/docs/space-works/tutorials-take-payments/)
- [Machines and inductions](https://spaceworkslabs.tech/docs/space-works/tutorials-machines-and-inductions/)
- [Connect analytics](https://spaceworkslabs.tech/docs/space-works/tutorials-connect-analytics/)
Modules
- [Areas and modules overview](https://spaceworkslabs.tech/docs/space-works/modules-overview/)
- [Inventory](https://spaceworkslabs.tech/docs/space-works/modules-inventory/)
- [Machines](https://spaceworkslabs.tech/docs/space-works/modules-machines/)
- [Presence](https://spaceworkslabs.tech/docs/space-works/modules-presence/)
- [Events](https://spaceworkslabs.tech/docs/space-works/modules-events/)
- [Bookings](https://spaceworkslabs.tech/docs/space-works/modules-bookings/)
- [Shop](https://spaceworkslabs.tech/docs/space-works/modules-shop/)
- [Memberships](https://spaceworkslabs.tech/docs/space-works/modules-memberships/)
- [Payments](https://spaceworkslabs.tech/docs/space-works/modules-payments/)
- [Donations and sponsors](https://spaceworkslabs.tech/docs/space-works/modules-donations/)
- [Analytics and reports](https://spaceworkslabs.tech/docs/space-works/modules-analytics/)
- [Notifications and messaging](https://spaceworkslabs.tech/docs/space-works/modules-notifications-and-messaging/)
- [Organizations](https://spaceworkslabs.tech/docs/space-works/modules-organizations/)
- [Backup and migration](https://spaceworkslabs.tech/docs/space-works/modules-backup-and-migration/)
- [API clients and integrations](https://spaceworkslabs.tech/docs/space-works/modules-api-clients/)
- [Platform and superadmin](https://spaceworkslabs.tech/docs/space-works/modules-platform/)
- [Choosing modules](https://spaceworkslabs.tech/docs/space-works/choosing-modules/)
How-to guides
- [How-to guides](https://spaceworkslabs.tech/docs/space-works/how-to-overview/)
- [Use your own domain with HTTPS](https://spaceworkslabs.tech/docs/space-works/how-to-custom-domain/)
- [Send email through your own provider](https://spaceworkslabs.tech/docs/space-works/how-to-email-sending/)
- [Send alerts to a Telegram group](https://spaceworkslabs.tech/docs/space-works/how-to-telegram-alerts/)
- [Privacy and terms pages](https://spaceworkslabs.tech/docs/space-works/how-to-privacy-and-terms/)
- [Set up SMS and WhatsApp](https://spaceworkslabs.tech/docs/space-works/how-to-sms-whatsapp/)
- [Choose and configure sign-in methods](https://spaceworkslabs.tech/docs/space-works/how-to-sign-in-methods/)
- [Two-step sign-in for staff and superadmins](https://spaceworkslabs.tech/docs/space-works/how-to-staff-and-superadmin-mfa/)
- [Turn an area or add-on on or off safely](https://spaceworkslabs.tech/docs/space-works/how-to-turn-areas-on-off/)
- [Give someone a role](https://spaceworkslabs.tech/docs/space-works/how-to-roles-and-handover/)
- [Import members and inventory from a spreadsheet](https://spaceworkslabs.tech/docs/space-works/how-to-import-members-and-inventory/)
- [Export your data](https://spaceworkslabs.tech/docs/space-works/how-to-export-your-data/)
- [Set up offsite backups and restore](https://spaceworkslabs.tech/docs/space-works/how-to-offsite-backups/)
- [Move a space to another server](https://spaceworkslabs.tech/docs/space-works/how-to-move-a-space/)
- [Add Apple Wallet and Google Wallet passes](https://spaceworkslabs.tech/docs/space-works/how-to-wallet-passes/)
- [Remove card photo backgrounds](https://spaceworkslabs.tech/docs/space-works/how-to-background-eraser/)
- [Design cards and certificates](https://spaceworkslabs.tech/docs/space-works/how-to-design-cards-and-certificates/)
- [Add web analytics, replay and error tracking per space](https://spaceworkslabs.tech/docs/space-works/how-to-web-telemetry/)
- [Set prices, rate cards and fees](https://spaceworkslabs.tech/docs/space-works/how-to-rate-cards-and-fees/)
- [Set up guest passes and waivers](https://spaceworkslabs.tech/docs/space-works/how-to-guest-passes-and-waivers/)
- [Admit minors with guardian consent](https://spaceworkslabs.tech/docs/space-works/how-to-minors-and-guardian-consent/)
- [Let people check in by location](https://spaceworkslabs.tech/docs/space-works/how-to-presence-check-in/)
- [Rotate encryption and secret keys](https://spaceworkslabs.tech/docs/space-works/how-to-rotate-keys/)
- [Run behind a reverse proxy and reach the control plane](https://spaceworkslabs.tech/docs/space-works/how-to-reverse-proxy-and-control-plane/)
- [Upgrade SpaceWorks safely](https://spaceworkslabs.tech/docs/space-works/how-to-upgrade-safely/)
- [The SpaceWorks front page and the Features page](https://spaceworkslabs.tech/docs/space-works/how-to-front-page-and-features/)
- [The public profile](https://spaceworkslabs.tech/docs/space-works/how-to-member-profile/)
- [Usernames](https://spaceworkslabs.tech/docs/space-works/how-to-usernames/)
- [Public space page and display screens](https://spaceworkslabs.tech/docs/space-works/how-to-display-screens/)
- [Show your screens on Anthias](https://spaceworkslabs.tech/docs/space-works/how-to-anthias/)
- [Give members machine access](https://spaceworkslabs.tech/docs/space-works/how-to-machine-access/)
- [Manage device adapters](https://spaceworkslabs.tech/docs/space-works/how-to-adapter-console/)
- [Use a shelf pointer](https://spaceworkslabs.tech/docs/space-works/how-to-shelf-pointer/)
- [Set up machine types and their consumables](https://spaceworkslabs.tech/docs/space-works/how-to-machine-consumables/)
- [Machine printing and connecting machines](https://spaceworkslabs.tech/docs/space-works/how-to-machine-printing/)
- [Log machine use for an event](https://spaceworkslabs.tech/docs/space-works/how-to-machine-use-for-events/)
- [Equipment kits and contextual requests](https://spaceworkslabs.tech/docs/space-works/equipment-kits/)
- [Equipment loan context](https://spaceworkslabs.tech/docs/space-works/equipment-contexts/)
- [Loan policy, renewal and reminders](https://spaceworkslabs.tech/docs/space-works/loan-policy/)
- [Sign-in, identity and borrowing](https://spaceworkslabs.tech/docs/space-works/sign-in-and-borrowing/)
Members
- [Getting started with Space Works](https://spaceworkslabs.tech/docs/space-works/member-getting-started/)
- [Sign in, create an account and manage it](https://spaceworkslabs.tech/docs/space-works/member-sign-in-and-account/)
- [Two-step sign-in and passkeys](https://spaceworkslabs.tech/docs/space-works/member-two-step-sign-in/)
- [Security emails and "This wasn't me](https://spaceworkslabs.tech/docs/space-works/member-security-alerts/)
- [Join a makerspace](https://spaceworkslabs.tech/docs/space-works/member-join-the-space/)
- [Renew, cancel or leave your membership](https://spaceworkslabs.tech/docs/space-works/member-renewals-and-leaving/)
- [Your member area](https://spaceworkslabs.tech/docs/space-works/member-member-area/)
- [Your member card and My cards](https://spaceworkslabs.tech/docs/space-works/member-member-card/)
- [Join an ID programme](https://spaceworkslabs.tech/docs/space-works/member-id-programmes/)
- [Borrow tools from Inventory](https://spaceworkslabs.tech/docs/space-works/member-borrow-tools/)
- [Borrow or return a tool yourself](https://spaceworkslabs.tech/docs/space-works/member-self-checkout/)
- [Book a room or resource](https://spaceworkslabs.tech/docs/space-works/member-book-a-room/)
- [Find and register for events](https://spaceworkslabs.tech/docs/space-works/member-events/)
- [Buy tickets and manage your orders](https://spaceworkslabs.tech/docs/space-works/member-event-orders/)
- [Confirm your place, join the crew, or review applications](https://spaceworkslabs.tech/docs/space-works/member-event-participation/)
- [Take part in a hackathon](https://spaceworkslabs.tech/docs/space-works/member-hackathons/)
- [Request a machine job](https://spaceworkslabs.tech/docs/space-works/member-machine-jobs/)
- [Use a machine yourself](https://spaceworkslabs.tech/docs/space-works/member-machine-sessions/)
- [My machine access](https://spaceworkslabs.tech/docs/space-works/member-machine-access/)
- [Your machine certifications](https://spaceworkslabs.tech/docs/space-works/member-certifications/)
- [Tell the space something is broken](https://spaceworkslabs.tech/docs/space-works/member-something-broken/)
- [Pay what you owe](https://spaceworkslabs.tech/docs/space-works/member-pay-what-you-owe/)
- [Support a space with a gift or a pledge](https://spaceworkslabs.tech/docs/space-works/member-donate/)
- [Calendar links](https://spaceworkslabs.tech/docs/space-works/member-calendar-links/)
- [Personal API tokens and connected apps](https://spaceworkslabs.tech/docs/space-works/member-api-access-and-apps/)
- [Buy from the space's shop](https://spaceworkslabs.tech/docs/space-works/member-shop/)
- [Check in when you arrive](https://spaceworkslabs.tech/docs/space-works/member-check-in/)
- [Inbox and notifications](https://spaceworkslabs.tech/docs/space-works/member-inbox-and-notifications/)
- [Your public profile](https://spaceworkslabs.tech/docs/space-works/member-public-profile/)
- [Your data and privacy](https://spaceworkslabs.tech/docs/space-works/member-your-data/)
Space managers
- [First steps for a new space](https://spaceworkslabs.tech/docs/space-works/space-manager-first-steps/)
- [Choose modules and features](https://spaceworkslabs.tech/docs/space-works/space-manager-modules-and-features/)
- [Settings, and who can change them](https://spaceworkslabs.tech/docs/space-works/space-manager-settings-and-grants/)
- [Add staff and give them roles](https://spaceworkslabs.tech/docs/space-works/space-manager-staff-and-roles/)
- [Machine access](https://spaceworkslabs.tech/docs/space-works/space-manager-machine-access/)
- [Two-step sign-in for staff](https://spaceworkslabs.tech/docs/space-works/space-manager-staff-two-step/)
- [Security settings for your space](https://spaceworkslabs.tech/docs/space-works/space-manager-security-settings/)
- [Public site, branding, hours and your domain](https://spaceworkslabs.tech/docs/space-works/space-manager-public-site-and-branding/)
- [Device adapters](https://spaceworkslabs.tech/docs/space-works/space-manager-device-adapters/)
- [Notifications, chat rooms and email](https://spaceworkslabs.tech/docs/space-works/space-manager-notifications-and-channels/)
- [Membership plans and admissions](https://spaceworkslabs.tech/docs/space-works/space-manager-membership-plans-and-admissions/)
- [Import members from a file or a Google Sheet](https://spaceworkslabs.tech/docs/space-works/space-manager-member-import/)
- [Member cards and card designs](https://spaceworkslabs.tech/docs/space-works/space-manager-member-cards/)
- [Run an ID programme for an organisation](https://spaceworkslabs.tech/docs/space-works/space-manager-id-programmes/)
- [Reports, saved views and the audit log](https://spaceworkslabs.tech/docs/space-works/space-manager-insights-and-audit/)
- [Pair a display screen](https://spaceworkslabs.tech/docs/space-works/space-manager-display-screens/)
- [API access and signed webhooks](https://spaceworkslabs.tech/docs/space-works/space-manager-api-and-webhooks/)
- [Back up, restore and export your space](https://spaceworkslabs.tech/docs/space-works/space-manager-backups-and-exports/)
- [The help centre and its switch](https://spaceworkslabs.tech/docs/space-works/space-manager-help-centre/)
Inventory managers
- [Review borrow requests](https://spaceworkslabs.tech/docs/space-works/inventory-manager-requests-queue/)
- [Hand over a request](https://spaceworkslabs.tech/docs/space-works/inventory-manager-issue-a-request/)
- [Take a return](https://spaceworkslabs.tech/docs/space-works/inventory-manager-process-a-return/)
- [Items, quantities and categories](https://spaceworkslabs.tech/docs/space-works/inventory-manager-inventory-and-categories/)
- [QR labels and the scanner](https://spaceworkslabs.tech/docs/space-works/inventory-manager-qr-tools/)
- [Stocktakes and stock transfers](https://spaceworkslabs.tech/docs/space-works/inventory-manager-stocktake-and-transfers/)
- [Containers and kits](https://spaceworkslabs.tech/docs/space-works/inventory-manager-containers-and-kits/)
- [Bulk-import items](https://spaceworkslabs.tech/docs/space-works/inventory-manager-bulk-import/)
- [To-Buy, warranties and vendors](https://spaceworkslabs.tech/docs/space-works/inventory-manager-to-buy-warranty-vendors/)
- [Consumables](https://spaceworkslabs.tech/docs/space-works/inventory-manager-consumables/)
- [The To-be-fixed shelf](https://spaceworkslabs.tech/docs/space-works/inventory-manager-to-be-fixed/)
- [The ledger and accountability](https://spaceworkslabs.tech/docs/space-works/inventory-manager-ledger-and-accountability/)
- [Inventory loan rules](https://spaceworkslabs.tech/docs/space-works/inventory-manager-lending-settings/)
Machine managers
- [Machine types and machines](https://spaceworkslabs.tech/docs/space-works/machine-manager-machines-and-types/)
- [Run the job queue](https://spaceworkslabs.tech/docs/space-works/machine-manager-job-requests-and-quotes/)
- [Machine sessions](https://spaceworkslabs.tech/docs/space-works/machine-manager-machine-sessions/)
- [Certifications](https://spaceworkslabs.tech/docs/space-works/machine-manager-certifications/)
- [Machine access](https://spaceworkslabs.tech/docs/space-works/machine-manager-machine-access/)
- [Machine maintenance](https://spaceworkslabs.tech/docs/space-works/machine-manager-maintenance/)
- [Connected devices](https://spaceworkslabs.tech/docs/space-works/machine-manager-devices-and-integrations/)
Event managers
- [Assigned resources](https://spaceworkslabs.tech/docs/space-works/event-manager-assigned-resources/)
- [Create and publish an event](https://spaceworkslabs.tech/docs/space-works/event-manager-create-an-event/)
- [Ticket types, promo codes and invitations](https://spaceworkslabs.tech/docs/space-works/event-manager-tickets-and-invites/)
- [Ticket orders, add-ons and series passes](https://spaceworkslabs.tech/docs/space-works/event-manager-paid-ticketing/)
- [Check people in](https://spaceworkslabs.tech/docs/space-works/event-manager-check-in/)
- [Applications and review stages](https://spaceworkslabs.tech/docs/space-works/event-manager-applications-and-review/)
- [Attendance confirmation, re-accepting and crew](https://spaceworkslabs.tech/docs/space-works/event-manager-attendance-and-crew/)
- [Hackathons and judging](https://spaceworkslabs.tech/docs/space-works/event-manager-hackathons-and-judging/)
- [Finalists, prizes, entry fees and saved views](https://spaceworkslabs.tech/docs/space-works/event-manager-judging-extras/)
- [Certificates, event cards, tickets and feedback](https://spaceworkslabs.tech/docs/space-works/event-manager-cards-certificates-feedback/)
- [Design event badges](https://spaceworkslabs.tech/docs/space-works/event-manager-badge-designer/)
- [Broadcasts, websites, short links and partners](https://spaceworkslabs.tech/docs/space-works/event-manager-broadcasts-and-websites/)
- [Venue fees for outside organisers](https://spaceworkslabs.tech/docs/space-works/event-manager-venue-fees/)
Booking managers
- [Rooms and resources](https://spaceworkslabs.tech/docs/space-works/booking-manager-resources/)
- [Booking requests and changes](https://spaceworkslabs.tech/docs/space-works/booking-manager-booking-requests/)
- [Arrivals, passes and confirmations](https://spaceworkslabs.tech/docs/space-works/booking-manager-arrivals-and-passes/)
- [Resource staff, websites and broadcasts](https://spaceworkslabs.tech/docs/space-works/booking-manager-resource-staff-and-websites/)
- [Resource analytics and room upkeep](https://spaceworkslabs.tech/docs/space-works/booking-manager-analytics-and-upkeep/)
Shop managers
- [Set up the shop](https://spaceworkslabs.tech/docs/space-works/shop-manager-set-up-the-shop/)
- [Products, prices and stock](https://spaceworkslabs.tech/docs/space-works/shop-manager-products-and-stock/)
- [Sell at the front desk and cash up](https://spaceworkslabs.tech/docs/space-works/shop-manager-front-desk-sales/)
- [Orders, pickups and returns](https://spaceworkslabs.tech/docs/space-works/shop-manager-orders-and-returns/)
Handover and technicians
- [The front-desk console](https://spaceworkslabs.tech/docs/space-works/handover-front-desk-console/)
- [Direct handout](https://spaceworkslabs.tech/docs/space-works/handover-direct-handout/)
- [Job pickups](https://spaceworkslabs.tech/docs/space-works/handover-job-handover/)
- [Kiosk stations](https://spaceworkslabs.tech/docs/space-works/handover-kiosk-stations/)
- [Your repair jobs](https://spaceworkslabs.tech/docs/space-works/technician-your-jobs/)
- [Run scheduled maintenance](https://spaceworkslabs.tech/docs/space-works/technician-run-maintenance/)
- [Take something out of service](https://spaceworkslabs.tech/docs/space-works/technician-service-state/)
- [Manage repairs and technicians](https://spaceworkslabs.tech/docs/space-works/technician-managing-repairs/)
Finance and organisations
- [Payments and offline receipts](https://spaceworkslabs.tech/docs/space-works/finance-payments-and-settlements/)
- [Refunds](https://spaceworkslabs.tech/docs/space-works/finance-refunds/)
- [When you lower a price](https://spaceworkslabs.tech/docs/space-works/finance-price-drop-refunds/)
- [The finance ledger](https://spaceworkslabs.tech/docs/space-works/finance-finance-ledger/)
- [Tax, receipts and disputes](https://spaceworkslabs.tech/docs/space-works/finance-tax-and-receipts/)
- [Price lists and member discounts](https://spaceworkslabs.tech/docs/space-works/finance-price-lists/)
- [Donations and sponsors](https://spaceworkslabs.tech/docs/space-works/finance-donations-and-sponsors/)
- [What an organisation is](https://spaceworkslabs.tech/docs/space-works/organisation-what-is-an-organisation/)
- [Create an organisation, invite people and leave one](https://spaceworkslabs.tech/docs/space-works/organisation-create-and-invite/)
- [Organised events and organisation analytics](https://spaceworkslabs.tech/docs/space-works/organisation-organised-events/)
Platform administration
- [Sign in to the platform console](https://spaceworkslabs.tech/docs/space-works/superadmin-platform-console/)
- [Work inside a space, and personal data windows](https://spaceworkslabs.tech/docs/space-works/superadmin-working-in-a-space/)
- [The platform dashboard](https://spaceworkslabs.tech/docs/space-works/superadmin-platform-dashboard/)
- [Space health, service pauses and closure](https://spaceworkslabs.tech/docs/space-works/superadmin-space-lifecycle/)
- [Per-space limits](https://spaceworkslabs.tech/docs/space-works/superadmin-platform-limits/)
- [Users, Space Managers and new spaces](https://spaceworkslabs.tech/docs/space-works/superadmin-users-and-space-managers/)
- [Lock a space's security settings](https://spaceworkslabs.tech/docs/space-works/superadmin-security-locks/)
- [Organisations across the platform](https://spaceworkslabs.tech/docs/space-works/superadmin-organisations/)
- [Modules, limits and purging data](https://spaceworkslabs.tech/docs/space-works/superadmin-modules-and-purges/)
- [Platform backups and restores](https://spaceworkslabs.tech/docs/space-works/superadmin-backups-and-restore/)
- [Move a space to another server](https://spaceworkslabs.tech/docs/space-works/superadmin-tenant-migration/)
- [Platform settings, sign-in providers and hosting requests](https://spaceworkslabs.tech/docs/space-works/superadmin-platform-settings/)
- [The /control/ admin](https://spaceworkslabs.tech/docs/space-works/superadmin-control-admin/)
- [Install Space Works](https://spaceworkslabs.tech/docs/space-works/host-operator-install/)
- [Update and re-run the installer](https://spaceworkslabs.tech/docs/space-works/host-operator-upgrade/)
- [Back up and restore the server](https://spaceworkslabs.tech/docs/space-works/host-operator-backups/)
- [Environment keys and rotating them](https://spaceworkslabs.tech/docs/space-works/host-operator-environment-keys/)
- [Encryption keys and row-level security](https://spaceworkslabs.tech/docs/space-works/host-operator-keys-and-row-level-security/)
- [Reach /control/ safely](https://spaceworkslabs.tech/docs/space-works/host-operator-control-plane-access/)
- [Health checks and logs](https://spaceworkslabs.tech/docs/space-works/host-operator-health-and-logs/)
- [Show or hide the SpaceWorks front page](https://spaceworkslabs.tech/docs/space-works/host-operator-front-page/)
Self-hosting
- [Self-Hosting Guide](https://spaceworkslabs.tech/docs/space-works/self-hosting/)
- [Choose your hosting](https://spaceworkslabs.tech/docs/space-works/choose-your-hosting/)
- [Install and update Space Works](https://spaceworkslabs.tech/docs/space-works/install-and-update/)
- [Setting up Space Works — Open Source Makerspace Manager (plain-language guide)](https://spaceworkslabs.tech/docs/space-works/setup-for-makerspaces/)
- [Backup and restore](https://spaceworkslabs.tech/docs/space-works/backup-and-restore/)
- [Run your space on your own domain or frontend](https://spaceworkslabs.tech/docs/space-works/own-domain-and-frontend/)
Developers
- [SpaceWorks API guide](https://spaceworkslabs.tech/docs/space-works/api-guide/)
- [Signed webhook v2](https://spaceworkslabs.tech/docs/space-works/webhooks-v2/)
- [Device Adapter API v1](https://spaceworkslabs.tech/docs/space-works/device-adapters/)
- [Build an adapter in another repository](https://spaceworkslabs.tech/docs/space-works/device-adapters-build-an-adapter/)
- [Adapter API reference](https://spaceworkslabs.tech/docs/space-works/device-adapters-api/)
- [Adapter authentication](https://spaceworkslabs.tech/docs/space-works/device-adapters-authentication/)
- [Build a shelf-pointer adapter (Raspberry Pi or ESP32)](https://spaceworkslabs.tech/docs/space-works/device-adapters-hardware-shelf-pointer/)
[All docs](https://spaceworkslabs.tech/docs/)

Space Works · Developers

# Build a shelf-pointer adapter (Raspberry Pi or ESP32)

SpaceWorks ships**no**shelf-pointer firmware, wiring diagram or driver. It ships the**adapter API**that any pointer speaks, and this page says what a Raspberry Pi or an ESP32 adapter has to do over that API. Read[build an adapter](https://spaceworkslabs.tech/docs/space-works/device-adapters-build-an-adapter/) first for the general loop,[authentication](https://spaceworkslabs.tech/docs/space-works/device-adapters-authentication/) for signing and[errors](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/device-adapters/errors.md) for the typed codes. For what staff do with a pointer see the[shelf pointer how-to](https://spaceworkslabs.tech/docs/space-works/how-to-shelf-pointer/) .

## What real pointers look like (research summary)

The API was shaped by how existing pointer and pick-to-light builds work. Sources are linked so you can check them; a few facts below come from general practice and are marked.

**Laser on pan/tilt servos (Raspberry Pi or ESP32).**The common build is two hobby servos (pan and tilt) driven by a PCA9685 16-channel PWM board over I2C, with a small laser module switched by a GPIO pin or transistor. Waveshare and DFRobot sell a ready-made 2-DOF Pan-Tilt HAT with an on-board PCA9685 ([Waveshare](https://www.waveshare.com/wiki/Pan-Tilt_HAT) ,[DFRobot FIT0731](https://wiki.dfrobot.com/Pan_Tilt_Hat_For_Raspberry_Pi_SKU_FIT0731) ). A guide to the PCA9685 on a Pi says to power the servos from a separate supply, never the Pi's 5 V pin ([Zbotic](https://zbotic.in/pca9685-servo-shield-raspberry-pi-16-servos/) ). A Pi 5 pan-tilt laser project drives the laser at 50 % power for eye safety ([cat-toy build](https://exyxyz.notion.site/web-cat-2ae3a2250b7f802f8c28d8c3f5631774) ), and the ROS wiki documents the two-servo pan-tilt control loop ([ROS](https://wiki.ros.org/Drivers/Tutorials/ControllingAPan-tiltKitUsingTwoServoMotorsPython) ). This is why the first pose kind is`pan_tilt`in**degrees**with an optional`laser_power_pct`.

**Galvo scanners (ESP32 with a DAC).**Mirror galvos are driven by a 12 or 16-bit SPI DAC (MCP4822, DAC8562), not the ESP32's own DAC:[GalvOS](https://github.com/Andre1Becker/GalvOS) (ESP32-S3, DAC8562), the[ILDAWaveX16](https://www.tindie.com/products/stanleyprojects/ildawavex16-v2/) (blanks the laser and holds position on a data underrun), the[UC2 galvo add-on](https://openuc2.github.io/archive/galvo-addon/reference) and an[Arduino galvo tutorial](https://instructables.com/Arduino-Laser-Show-With-Real-Galvos) . They are real but rarer and more expensive than servos for a shelf, so`galvo_xy`exists as a third, normalised kind (`-1..1`) and the DAC scaling stays on the adapter.

**Pick-to-light with LED strips.**Warehouse pick-to-light and put-to-light systems light a segment per bin ([Modula overview](https://modula.us/blog/pick-to-light-systems/) ). Open builds use addressable WS2812 strips: a[Wemos D1 battery pick-to-light device with WS2812B and a JSON protocol](https://hackster.io/matthew-champion/warehouse-management-pick-to-light-device-9e0d8a) , an[ESP32 put-to-light project](https://github-users.yhajoa.workers.dev/nessergio/ptl) and the[WLED](https://awesome.ecosyste.ms/projects/github.com%2Fwled%2Fwled) firmware. A shelf is a run of pixels, so the second kind is`led_segment {strip, start, count, color}`.

**Calibration.**There is no standard. Published methods map camera pixels to angles with a homography ([DIJIT](https://arxiv.org/pdf/2512.07998) , a[laser-voltage homography](https://image-ppubs.uspto.gov/dirsearch-public/print/downloadPdf/10798339) ,[Tworek et al.](https://www.robotcub.org/misc/papers/08_Tworek_Bernardino_SantosVictor.pdf) ) or fit a full camera-to-gimbal model ([patent family](https://image-ppubs.uspto.gov/dirsearch-public/print/downloadPdf/11120392) ). A homography works best when the target is roughly planar, which a shelf face is. The simplest robust method for a shelf wall is the one this API uses:**jog the pointer by eye to each shelf and save the pose that landed there**. Any fitted model stays on the adapter; the server stores only the resulting pose, never reference points, so the API needs no calibration-assist data.

**Laser safety.**Class 2 visible lasers (up to 1 mW) rely on the 0.25 s blink reflex; Class 3R visible lasers go up to 5 mW and can exceed the eye limit even for brief exposure, though the risk is judged low ([LaserMet](https://www.lasermet.com/us/?p=1175) ,[Seibersdorf IEC 60825-1 notes](https://www.seibersdorf-laboratories.at/fileadmin/user_upload/docs/le/las/publ/whitepaper_iec-60825-1.pdf) ,[LBNL classes](https://ehs.lbl.gov/resource/documents/radiation-protection/laser-safety/laser-classification-explan) ). The search did not reach the standard text itself: check exact limits against IEC 60825-1 and your local rules. Use a Class 2 module, never aim across walkways at eye height, and keep the on-time short. The API therefore has a hard on-time and power cap.

**What an ESP32 can do.**Ed25519 and SHA-256 are all the signing needs.[Monocypher](https://rust-digger.code-maven.com/src/monocypher-sys-4.0.2/Monocypher/README.md) ships Ed25519 and SHA-512 as optional files and is about the size of TweetNaCl; Espressif's[libsodium component](https://components.espressif.com/components/espressif/libsodium/versions/1.0.20~3/readme) covers it too (the ESPHome port compiles only verification, not signing, so use the full one). TLS comes from mbedTLS in ESP-IDF. The search found nothing on ArduinoJson or HTTPS heap use, so**measure on your board**: every payload below is small (under 1 KiB), so a 1 KiB JSON document is enough.

## The shape of the API

A pointer adapter declares`locate.indicate`and (to be calibrated)`locate.calibrate`, optionally`config.push`and`time.sync`, and is**bound**to a target: a`space`(the whole wall), or a`storage_location`,`item`or`box`. `POST /api/v1/device/adapter/v1/hello { "protocol_version": 1, "adapter_kind": "shelf_pointer", "vendor": "acme", "software_version": "1.0.0", "firmware": "esp32-1.0.0", "health": "ok", "capabilities": [{"name":"status","version":1},{"name":"locate.calibrate","version":1}, {"name":"locate.indicate","version":1},{"name":"time.sync","version":1},{"name":"config.push","version":1}] }`

Every call is signed with Ed25519 ([authentication](https://spaceworkslabs.tech/docs/space-works/device-adapters-authentication/) ). The signed message is the SHA-256 of the body plus method, raw target, timestamp and nonce, so a pointer needs exactly Ed25519 sign and SHA-256.

### Pose kinds (published JSON Schemas)

A pose is the small flat object staff saved for one location, item or box. The server validates it when it is saved and returns it to the**owning**adapter inside the`indicate`command. Schemas are in[`../schemas/`](https://github.com/SpaceWorks-Labs/SpaceWorks/tree/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/device-adapters/schemas) :

| `kind` | Fields | Schema |
| --- | --- | --- |
| `pan_tilt` | `pan_deg`,`tilt_deg`(-180..180), optional`laser_power_pct`(0..100) | `pose.pan_tilt.json` |
| `led_segment` | `strip`(0..15),`start`(0..4095),`count`(1..512), optional`color`(name or`#rrggbb`) | `pose.led_segment.json` |
| `galvo_xy` | `x`,`y`(-1..1, normalised), optional`laser_power_pct` | `pose.galvo_xy.json` |

A pose with**no** `kind`is still allowed and stays free-form (declare your own`calibration_schema`in hello). A pose with an**unknown** `kind`or one that fails its schema is refused (`invalid_pose`), so a typo never reaches a laser. A Pi that drives servos and an LED strip uses two bindings, or sends a`led_segment`pose for shelves that have strips.

### The loop (what to implement)
- **Enroll**with the one-time token, then**hello**and`GET bindings`(small, no poses in either).
- **Clock.**Requests must be within 300 s of the server. A Pi has NTP. An ESP32 should use SNTP; without it, seed the clock from the`Date`header of any HTTPS response (even a`401`), then confirm with the signed`GET time?nonce=`.
- **Poll**every`poll_seconds`(15 by default):`POST status`per binding, then`POST commands/lease`.
- **Execute**the leased command and`POST commands/{id}/ack`within the lease (60 s by default).
- **Calibration**commands:`aim {pose}`moves the head to a candidate pose;`jog {dx, dy}`nudges it. After a move, send a`calibration.position {session_id, pose}`event so the console shows where the head really is. Nothing is saved until staff press save (`PUT poses`).
- **Config push.**Staff push servo limits and offsets with`config.push`; fetch`GET config`, apply, and`POST config/ack`. Keys that look like secrets are refused, so keep Wi-Fi passwords and keys on the device.
 `POST commands/lease -> 200 { "command": { "command_id": "6f1c1f0e-...", "binding_id": "6f1c1f0e-...", "capability": "locate.indicate", "command": "indicate", "params": { "mode": "point", "duration_seconds": 15, "pose": { "kind": "pan_tilt", "pan_deg": -12.5, "tilt_deg": 33.25, "laser_power_pct": 30 } }, "lease_token": "...", "lease_expires_at": 1760000060 } } POST commands/6f1c1f0e-.../ack { "lease_token": "...", "outcome": "succeeded" }` `indicate with an LED strip: "params": { "mode": "light", "duration_seconds": 20, "pose": { "kind": "led_segment", "strip": 1, "start": 24, "count": 6, "color": "#00ff66" } } clear (always allowed, never capped, no pose): "params": { "mode": "clear" }` `POST config/ack { "version": 4, "outcome": "applied" } GET config -> { "version": 4, "config": { "pan": {"min_deg": -60, "max_deg": 60, "offset_deg": 1.5}, "tilt": {"min_deg": -30, "max_deg": 45}, "servo_us": {"min": 500, "max": 2500} } } GET time?nonce=q7Zr2LmX9wPa4TcY -> { "server_time": 1760000000, "nonce": "q7Zr2LmX9wPa4TcY", "kid": 2, "signature": "<hex>" }`

### Safety (server-enforced and adapter-kept)

Staff set two caps per pointer binding (`PUT admin/adapter-bindings/{id}/config`,`schemas/safety.config.json`):`laser_max_power_pct`(1..100) and`max_on_seconds`(1..600).**The server applies them to every command it builds**, from the console, "Show on shelf" and kiosk scans:
- `duration_seconds`is lowered to`max_on_seconds`. A laser pose (`pan_tilt`,`galvo_xy`) with**no**configured cap still stops after**60 seconds**.
- `laser_power_pct`in the pose is lowered to`laser_max_power_pct`, and set to it when the pose carries none.
- `clear`is**never**capped, delayed or rate limited.

An adapter must still keep its own safe defaults, because a server can be wrong or unreachable:
- Switch the laser off when`duration_seconds`ends, on boot, on a watchdog timeout and on any`clear`.
- Never exceed the`laser_power_pct`you were given; never turn on from a command whose lease has expired.
- Start with the laser off and**blank the laser while the head moves**(as the ILDAWaveX16 does on underrun).
- If it cannot reach the server it keeps its on-time; it does not hold a laser on "until told".

### Offline and backoff

Poll with a fixed interval while healthy. On a network error or`5xx`, back off exponentially with jitter (1, 2, 4 ... capped at 60 s) and reset on success. On`401`check the clock before retrying (skew is the usual cause). On`423`(the space is frozen for migration) wait 60 s. On`404`the space switched integrations off: stop polling for 5 minutes. A command the pointer never leased expires on the server, so reconnecting never replays stale "point" commands.

### Payload sizes and polling budget

Measured from the exact message shapes for a pointer with about**200 saved poses**(poses are never in hello or bindings; they travel only inside one`indicate`command, one at a time). Compact JSON, bytes of body (signing headers add about 350 more):

| Message | Bytes |
| --- | --- |
| hello request / response | 359 / 816 |
| `GET bindings` | 198 |
| `POST status`(one binding) | 105 |
| `POST commands/lease`, nothing waiting | 16 |
| `POST commands/lease`, an indicate command | 388 |
| `POST commands/{id}/ack` | 83 |
| `GET config`(servo limits) | 203 |
| `GET time` | 204 |

If the 200 poses were (wrongly) sent in hello they would add about 14.8 KB; they are not. A test (`backend/tests/shelf_pointer/test_shelf_checks_and_budget.py`) asserts these stay small and prints the real sizes.

At the default 15 s interval a pointer makes 4`lease`and 4`status`calls a minute, about 480 requests an hour and well under 1 MB a day including headers. A pointer that registers a**webhook**(see[api](https://spaceworkslabs.tech/docs/space-works/device-adapters-api/) ) can poll every 60 s and lease only when the wake-up arrives; the push carries no pose.

## Testing without hardware

The conformance kit has a simulated pointer (`backend/tests/adapter_conformance/sim_shelf_pointer.py`): it speaks the real signed protocol, records what it would point at, honours the on-time and auto-clears. It is a**test helper, not a standalone adapter**. Use it as a reference for the command handling above.

From[SpaceWorks/docs/device-adapters/hardware/shelf-pointer.md](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/device-adapters/hardware/shelf-pointer.md) at c447a11, updated 2026-11-16.[Suggest a change](https://github.com/SpaceWorks-Labs/SpaceWorks/edit/dev/docs/device-adapters/hardware/shelf-pointer.md)  [PreviousAdapter authentication](https://spaceworkslabs.tech/docs/space-works/device-adapters-authentication/)

On this page
- [What real pointers look like (research summary)](#what-real-pointers-look-like-research-summary)
- [The shape of the API](#the-shape-of-the-api)
- [Pose kinds (published JSON Schemas)](#pose-kinds-published-json-schemas)
- [The loop (what to implement)](#the-loop-what-to-implement)
- [Safety (server-enforced and adapter-kept)](#safety-server-enforced-and-adapter-kept)
- [Offline and backoff](#offline-and-backoff)
- [Payload sizes and polling budget](#payload-sizes-and-polling-budget)
- [Testing without hardware](#testing-without-hardware)
