This project is a pencil holder that makes use of the Adafruit Circuit Playground Express to simultaneously function as a multi-colored light which can be used as a flashlight or a lamp, all to the accompaniment of various melodies from Microsoft Makecode, giving it its name: Write Light. Using code that I put together using Microsoft Makecode, the Write Light, when switched on, can act as a musical lamp or flashlight of many colors, which is especially handy in the dark. With its code, the Write Light can illuminate several different combinations of lights emanating from the Circuit Playground Express, with a set brightness of 127, including a rainbow pattern, blinking red lights that form a different combination each time, patterns of purple, pink and white, a growing line of blue, and a pattern of red, orange, yellow, green and blue, with each pattern played for five hundred milliseconds and accompanied by a different six-note jingle that I customized in Makecode, played at a tempo of 240 beats per minute, all with a pew sound effect between patterns.
The Write Light is put together using the Circuit Playground Express, two small Alligator Clip cables, and a Single Joint Toggle Switch to activate the code, along with a USB cable and a Lithium Battery to enable mobile use. All held together by a single plastic cup, blank paper and tape, blue tape for the build and electrical tape for the Circuit Playground Express everything directly connected to it. When the Lithium Battery is plugged in to the Circuit Playground Express, the Write Light can be used as a flashlight and taken around by the user. With the USB cable, the Write Light can be plugged in to a USB port, such as one found on a computer, and used as a lamp. Whether the Write Light is using the USB cable or the Lithium Battery, or if it is switched off, it can always be used to hold pencils or pens.
1 / 5 • Write Light Development (Beginning)