Missingwings
Created September 22, 2021 © GPL3+

P1: Knob/Switch Flashlight

A color-changing flashlight created using an Adafruit Circuit Playground Express, a switch, and a potentiometer.

BeginnerShowcase (no instructions)2 hours32
P1: Knob/Switch Flashlight

Things used in this project

Hardware components

Toggle Switch, SPDT
Toggle Switch, SPDT
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Alligator Clips
Alligator Clips
×1
Circuit Playground Express
Adafruit Circuit Playground Express
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Custom parts and enclosures

img_20210921_192901578_EqGbAm0b7r.jpg

img_20210921_192923829_1Cv9lxNui1.jpg

img_20210921_192831437_TwrJroiKQC.jpg

img_20210921_192749373_oHdMVcJ1Eb.jpg

img_20210921_192013915_SCynWfKHKT.jpg

img_20210921_191952015_RKgiwzHwbx.jpg

img_20210921_192002828_9832etpA6P.jpg

vid_20210921_192307781_aBEJ1aBGNI.mpeg

Code

circuitplayground-P1-SwithKnob-Flashlight.uf2

JavaScript
The object is a flashlight, created using cut cardboard, an Adafruit Circuit Playground Express, a switch, and a potentiometer. Flipping the switch turns it on or off, turning the potentiometer changes the colors at a low degree- then switches to a much brighter white light.

Also the language is MakeCode; but that wasn't an option and it translates to Javascript so I assumed that was the closest option.
No preview (download only).

Credits

Missingwings
4 projects • 0 followers

Comments