things you will need
The following items from the Craft + Code Starter kit:
- 1 x Crumble
- 1 x Battery pack
- 1 x Sparkle baton
- 3 x Red croc leads, 2 x Black croc leads, 1 x Green croc lead, 1 x Yellow croc lead
- 1 x USB cable
A computer with a USB port and the Crumble software installed.
Plus,
- Tracing paper
- A box
- Tape
- Scissors
- Aluminium foil
- Glue stick
- Ruler and pencil
Prepare the TV
- Draw a rectangle on the lid of the box.
- Cut out the rectangle.
- Open the box and place and tape down tracing paper over the rectangle.
Make the 'aerials'.
- Cut out two ‘aerial’ shapes (as shown).
- Stick a strip of aluminium foil over the front of the aerials and top and bottom of the back.
What is a TV 'aerial'?
In the past, televisions had metal sticks attached to the top of them. These metal sticks were used to catch invisible signals in the air so you could watch your favourite TV shows.
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 baton
- 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 baton.
Need to know
Make sure you connect the croc leads to the side of the Sparkle baton with the arrow pointing to the right.
Attach to your aerials
- Attach a red croc lead to the aluminium foil on one of the aerials and a positive (+) connector on the battery pack.
- Attach a yellow croc lead to the connector A on the Crumble and the aluminium foil on the remaining aerial.
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 Screen Time(r)
- For this project, you will first need to tell the Crumble to turn all Sparkles ON when the two aerials touch.
- Next, you will need to tell the Crumble to turn each Sparkle OFF, one at a time, over a set time period.
- In this example, we opted for 30 minutes of screen-time. This meant programming the Crumble to turn one Sparkle OFF every 225 seconds.
- First, snap a Do Forever Loop block to a Program Start block.
- Next, snap a Wait Until block inside the Do Forever Loop and add the A is HI block from the Input/Output section of the menu into the blank space.
- Tell the Crumble to set all Sparkles to blue using a Sparkle Baton block.
- Tell the Crumble to keep all Sparkles ON for 225 seconds.
- Add another Sparkle Baton block and set the first 7 Sparkles to blue – leaving the last Sparkle OFF.
- Repeat this pattern until all Sparkles are OFF.
- Add a Wait 1.0 Second block.
- Turn the battery pack ON.
- Send your code to the Crumble (using the green triangle) to test it out.
Set-up the Screen Time(r)
Place your aerials through the gap in the top of the box.
Secure all parts inside the box with tape.
You’re all set to go.
Turn the battery pack ON and touch the aerials together to start your screen time timer. Simple.
Need to know
Don't forget to turn the battery pack off when you have finished.