Title: Pulsing Heart (prototype for final project)
For my interactive project I made a pulsing heart. The idea is that when you cup it in your hand(s) the circuit will light up replicating a human heart beat. This version is different from what will be done in the final project, but here in order to make it light up you have to be touching the sensors.
Materials:
- circuit playground express
- paper
- USB cable
- scissors
Step 1: download code on MakeCode, it’ll go into CPLAYBOOT. Connect it into your circuit playground express and open the CPLAYBOOT file, it should connect.
Here’s the link to code: https://learn.adafruit.com/3d-printed-heart-capacitive-touch/circuitpython-code
Step 2: Make the heart outline and tape it on the circuit
Step 3: cup the circuit in your hands, make sure your touching the side sensors
Materials that were bought/ made but weren’t used for the prototype
The Code:
{
light.setBrightness(20 * index + 10)
pause(20)
}
pause(100)
light.setBrightness(100)
pause(100)
light.setBrightness(150)
pause(200)
light.setBrightness(150)
for (let index = 0; index <= 15; index++) {
light.setBrightness(150 – index * 10)
pause(40)
}
}
})
input.touchA1.setThreshold(200)
light.setAll(0xff0000)
light.setBrightness(10)