
Bionic Eye
Create a glowing bionic eye that changes colour when different touch points are pressed.
In this project, you will program the Crumble to repeat a sequence of colours on the Sparkle when the connected light sensor detects it is dark.
Connect your Sparkle and Light Sensor to the Crumble using crocodile leads.
Insert 3x alkaline batteries into the battery box. Slide the switch to check they’re in the correct way.
Use a red and a black croc clip lead to connect the battery box to the Crumble.
Use a red, a black, and a green croc clip lead to connect the Crumble to the Sparkle.
Use a yellow croc clip lead to connect the – side of the light sensor to the A input/output connector on the Crumble.
Use a red croc clip lead to connect the other side of the light sensor to a + terminal on the battery box.
Open the Crumble software and create a repeating light sequence that turns on when dark.
Connect the Crumble to a computer and open the Crumble app or head to code.crumble.tech.
Snap an IF THEN ELSE block to a Program start block. Add an A is HI block and change it to A is LO.
Tell the Crumble to turn the Sparkle on only when it is dark (A is LO).
Tell the Crumble if it is dark to turn the Sparkle ON for 1 second and OFF for 1 second.
Tell the Crumble if it is light to keep the Sparkle OFF.
Place your conditional light sequence inside a Do Forever Loop block.
Turn the battery pack on and press the Green Triangle to send your code to the Crumble.
Press the red square or turn off the battery box to stop the light sequence.
Grab your craft materials and let’s make your lighthouse.
Use red card or coloured pens to make your yogurt pot look like a lighthouse.
Make a hole at the bottom of your yogurt pot, big enough for the Sparkle light to shine through.
Glue the top of the clear, small yogurt pot.
Attach the clear, small yogurt pot to the bottom of the large yogurt pot.
Use tape to attach the Sparkle beneath the hole in the bottom of the large yogurt pot.
Turn the battery box on, place the ‘lighthouse’ upright with the light sensor on the outside.
Place the light sensor in your hand and open and close your hand to watch your lighthouse turn on and off.
Can you get even more creative with your lighthouse?
Create a scene for your lighthouse and write a story about it, then act out what happens as the light flashes.
Can you program a special warning flash for stormy weather?
Think about how the light pattern could show danger.

Create a glowing bionic eye that changes colour when different touch points are pressed.