

Prismatic spray
Designing a handheld RGB widget for light painting.
- Size
- 97.5 × 65 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 12
- Nets
- 44
- Pads
- 125
- Tracks, vias
- 61, 2
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 6 (file 20211014)
- Created
- 28 Jul 2022
- Updated
- 28 Nov 2022
Overview
Prismatic spray is an open-source printed circuit board by twopoint718, from the twopoint718/prismatic-spray repository on GitHub. It is a 2-layer board of 97.5 × 65 mm with 12 parts on 44 nets, routed with 61 tracks and 2 vias.
Its parts include 5 switches, 1 IC and 1 connector. It belongs with the lEDs and displays boards and the RP2040 boards of this library.
README
README.mdPrismatic Spray 🌈
Designing a handheld RGB widget for light painting. Named after the D&D spell by the same name.
A wizard casting the Prismatic Spray spell
Statechart
This statechart gives an overview of the operation of Prismatic Spray:

When turned on, the device immediately transitions to the active state.
Conceptually, this initial transition can be seen as when the initialization code runs in the StateMachine() constructor.
In the Active state each of the concurrent sub-states for the 4 buttons are initially set
to "Led(N)Off". When a button is pressed down, the corresponding LED will illuminate until the button is released.
Pressing a button also has the side effect of setting the focused LED.
This is the LED for which adjustments of the Hue knob or the Brightness knob will subsequently affect.
Only one LED can be focused like this and it will always be the last button pressed.
If no buttons have been pressed, it is LED0.
The rotary encoder sets the hue/color of the focused LED in 24 equal steps. These are spaced evenly around the HSL color wheel:

The brightness adjustment uses a potentiometer instead of a rotary encoder like hue. This means that the brightness is set on an absolute scale from off to 100%.
Prototype
Short video: https://twitter.com/twopoint718/status/1552858497666240512
PCB

- split pcb into two files for main and daughter board
- measure height of knobs for case lid clearance
Resources/Parts Datasheets
- Cherry MX key switch https://gitlab.com/kicad/libraries/kicad-footprints/-/tree/master/Button_Switch_Keyboard.pretty
- Rotary encoder https://cdn-shop.adafruit.com/datasheets/pec11.pdf
- Potentiometer https://cdn-shop.adafruit.com/datasheets/p160.pdf
- Heat-set insert https://www.mcmaster.com/94180A321/
Parts
12| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | MountingHole | MountingHole:MountingHole_2.7mm_M2.5 | H1, H2, H3, H4 |
| 4 | SW_Push | Button_Switch_Keyboard:SW_Cherry_MX_1.00u_PCB | SW1, SW2, SW3, SW4 |
| 1 | Conn_01x03_Male | Connector_JST:JST_PH_S3B-PH-K_1x03_P2.00mm_Horizontal | J2 |
| 1 | Pico | MCU_RaspberryPi_and_Boards:RPi_Pico_SMD_TH | U1 |
| 1 | R_Potentiometer | Footprints:p160_potentiometer | RV1 |
| 1 | RotaryEncoder_Switch | Footprints:pec11_rotary_encoder | SW5 |
More from twopoint718/prismatic-spray
1- 2 layers85 × 22 mm

Similar boards
- 2 layers

Nrf bga
github-linguist/linguist
Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
12 parts14kMIT - 2 layers66.9 × 74.5 mm

- 2 layers40 × 15 mm

Sensors
google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards
12 parts3kApache-2.0 - 2 layers42.7 × 56.5 mm

- 2 layers26 × 16.9 mm

- 2 layers49 × 25 mm

5v boost regulator
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
12 parts915 - 2 layers28.3 × 10.3 mm

Tap Photosensor PCB
VoronDesign/Voron-Tap
Tap is a nozzle-based z-probe for the V2 and Trident printer designs. The entire toolhead moves to trigger an optical switch. Tap offers many advantages:
12 parts716GPL-3.0 - 2 layers25.4 × 70.4 mm

Tpmsniffer
stacksmashing/pico-tpmsniffer
A simple, very experimental TPM sniffer for LPC bus
12 parts696
Questions
How big is the Prismatic spray PCB?
It measures 97.5 × 65 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Prismatic spray use?
12 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Prismatic spray KiCad files?
From the twopoint718/prismatic-spray repository on GitHub, at the commit this page was made from: the board is hardware/prismatic-spray/prismatic-spray.kicad_pcb and its schematic hardware/prismatic-spray/prismatic-spray.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Prismatic spray design in my own project?
Its repository states no licence, so its author keeps all rights: ask twopoint718 before reusing the design.