13. Skin Electronics

This subject was interesting but we didn't have the material (color paint which change with heat, addind hair or small RFID to put on the fingernails) And personally, maybe because i'm not a woman, but applying makeup to my eyelids or varnishing the nails or even adding hair that didn't really inspire me.

Masquerade

For the Masquerade I made a silicone mask with an RGB led include in it, The mask was create layer by layer using a tampon and even the wires were put inside.

Then when done, I cut the very front of the LED, glued a piece of acrylic and make a cristal growing on it.

As in week 09 each time it has grown and seems to stop growing, I put it apart, boiled the liquid until all crytals at the bottom has been dissolved, then I wait the liquid cold down, then i put back the crystal.

I try also to include a programmed TINY45(smd) to manage the LED but it was not possible to program it or even to burn the bootloader. so I decided to finish the mask and retry with the microcontroler outside of the mask

So for the timebeeing I decided to use the GEMMA M0 to test it

I use A0 as the PixelPin And I use A2 as a capacitive sensor to switch the color of the crystal.

Python program to put in Gemma root folder

Main.py

import time
import board
import neopixel
from digitalio import DigitalInOut, Direction
from touchio import TouchIn
import adafruit_dotstar as dotstar


# external RGB led connected to A0
pixel_pin = board.A0
num_pixels = 1
pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.3, auto_write=False)
# One pixel connected internally!
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=0.2)

# Built in red LED
led = DigitalInOut(board.D13)
led.direction = Direction.OUTPUT

# Capacitive touch on A2
touch = TouchIn(board.A2)


WHITE = (255, 255, 255)
YELLOW = (255, 255, 0)
ORANGE = (255, 165, 0)
RED = (255, 0, 0)
LIME = (0, 255, 0) 
GREEN = (0, 128, 0)
AQUA = (0, 255, 255)
BLUE = (0, 0, 255)
FUSHIA = (255, 0, 255)
PURPLE = (128, 0, 128)
BLACK = (0, 0, 0)

COLORSELECTED = (WHITE, YELLOW, ORANGE, RED, LIME, GREEN, AQUA, BLUE, FUSHIA, PURPLE, BLACK)
Compteur = 0


dot[0] = WHITE
dot.show()

# MAIN LOOP
while True:

# use A2 as capacitive touch to turn on internal LED
    if touch.value:
        print("A2 touched!", Compteur)
        Compteur = Compteur + 1
        time.sleep(1)
    led.value = touch.value

    dot[0] = COLORSELECTED[Compteur]
    dot.show()
    pixels[0] = COLORSELECTED[Compteur]
    pixels.show()
    if Compteur == 10:
        Compteur = 0

VIMEO