things you will need
The following items from the Craft + Code Starter kit:
- 1 x Crumble
- 1 x Battery pack
- 1 x Sparkle
- 3 x Red croc leads, 2 x Black croc leads, 1 x Green croc lead, 3 x Yellow croc leads
- 1 x USB cable
A computer with a USB port and the Crumble software installed.
Plus,
- Tracing paper
- A box
- Tape
- Scissors
- 3 split pins
Prepare the box
- Make a hole in the top of the box about 0.5cm wide.
- Make 4 holes in the front side of the box and place the split pins in to three of the holes.
Connect the Crumble to power
Use one red croc lead and one black croc lead to connect the Crumble to the battery pack.
Safety first
Make sure the battery pack switch is set to OFF.
Add the Sparkle
- Attach one red croc lead, one black croc lead and one green croc lead to the connectors on the right hand side of the Crumble.
- Attach the croc leads to the connectors on the left hand side of the Sparkle
Need to know
Make sure you connect the croc leads to the side of the Sparkle with the arrow pointing to the right.
Add the split pins
- Attach a yellow croc lead to the connectors A, B and C on the Crumble.
- Attach a split pin to the other end of each yellow croc lead.
Add the switch
- Attach one red croc lead to the remaining positive (+) terminal on the battery pack.
Get Set-up
- Place your completed circuit inside the box.
- Tape the Sparkle to the lid of the box, so the LED is pointing outside through the hole.
- Push the loose red croc clip lead through the remaining hole on the front side of the box.
Connect the Crumble to a computer
Use the USB cable to connect your Crumble circuit to a computer with the Crumble software installed.
Code the Feeling Flower
- For this project, you will need to tell the Crumble what colour to make the Sparkle depending on which split pin is touched by the loose red croc lead.
- First, snap an IF-THEN-ELSE block from the Control section of the menu to a Program Start block.
- Next, snap an A is HI block from the Input/Output section of the menu into the IF command.
- Tell the Crumble to set the Sparkle to green if the split pint connected to A is touched by the red croc lead.
- Add another IF-THEN-ELSE block into the Else section and tell the Sparkle to turn Blue if the split pin connected to connector B on the Crumble is touched by the red croc clip lead.
- Add an IF-THEN block into the remaining Else section and tell the Sparkle to turn Red if the split pin connected to connector C on the Crumble is touched.
- Turn the battery pack ON.
- Send your code to the Crumble (using the green triangle) to test it out.
Build the Flower
Use tracing paper to make a flower or a shape of your choice and place on top of the Sparkle on the outside of the box.
We used this template as a guide.
You’re all set to go.
Touch the split pin with the red croc clip lead to select the colour that best represents your mood.
Need to know
Don't forget to turn the battery pack off when you have finished.