Tuesday 7 November 2017

Turning junk into an 'egg-bot' at Mozfest

Turner, S. J. (2017) Junkbots - Crumble eggbot. Workshop presented to: Mozilla Festival, Ravensbourne College, London, 27-29 October 2017.

Capturing some of the tweets about Junkbots at Mozilla Festival 2017 #Mozfest https://mozillafestival.org/ 






Details of the activity can be found at http://bit.ly/2yZ3dZT or described below:

Crumble Junk-Eggbot

Scott Turner
@scottturneruon
University of Northampton
Three inspirations for this project
·   Femi Owolade supported by Nic Hughes ran a session at Mozilla Festival 2016 using the Crumble’s to make a wheeled robot.
·   The junkbot project https://junkbots.blogspot.co.uk/
Kit
·      Kinder Egg (without the Chocolate and toy)
·      Crumble
·      4x Crocodile clips and leads
·      Battery pack and 3xAA
·      Vibrating motor
·      Tape (lots of)
·      Pens
·      Paper
·      Scissors
·      Glue and Gluegun (optional)

Stage 1: Fix the vibrating motor into the Egg.
Put the vibrating motor into the Egg with the motor electrical connections sticking out the bottom larger half of the egg. Make sure the unbalanced load is free to move – this is bit that causes the vibrations needed to move the egg. The motor can be held in place by sticky-tack or strong tape, or glue (when using glue this is done under adult supervision only).
IMG_0578.JPG

Stage 2: Sticking the pens on.
This is the trickiest bit. The easiest way to do is cut a strip of tape. Place two pens onto the tape ensuring the pens are the same length from the tape to the nib and the distance between the pens on the tape are far enough apart to place the egg between them.
IMG_0579.JPG
If you are using three pens, the third pen should be placed so that all three form a triangle with equal sides, that means the egg can stand-up on a piece of paper on the pen nibs, without anything supporting it.
If you are using four pens, the other two pens should be placed so that all four form a square with equal sides, that means the egg can stand-up on a piece of paper on the pen nibs, without anything supporting it.
Stage 3: Add the battery pack and go.
Using two wires connecting the battery, to the motors. Remove the nibs and set the bot off. It is hopefully vibrating and shaking and scribbling lines on the paper.
IMG_0580.JPG IMG_0582.JPG

To see one in action go to: https://www.youtube.com/watch?v=NRlntdmdQRo



Stage 4: Crumble
Disconnect the battery connection (the connections on the motor can stay as they are). Connect the USB cable to the Crumble. To the right of the USB connect there are two connections marked + and -. Connect a Red wire to the + connection and the other end to the red wire of the battery pack. Connect a black wire to the – connection and the other end to the black wire of the battery pack.
IMG_0583.JPG IMG_0584.JPG
Stage 5: Connect the Egg!
On the Crumble, on the right-side there are two motor connections connect the Motor to these connections. Don’t worry about which of the motors wires is need you swap them around later.

IMG_0585.JPG
Stage 6: Programming it – Making the bot moves.
The software can be found at https://redfernelectronics.co.uk/crumble-software/ it includes how to set it up on your own machine.
Start the Crumble software. Drag from the left the Program start, motor, and wait blocks. Now join the up start block at the top and the motor block next and the wait block last.
Screen Shot 2017-10-23 at 16.23.51.png
Your code should look like this.
Screen Shot 2017-10-23 at 16.23.43.png

Click on the stop within the motor block. It should change to forward. Now you are ready to make it move. Press the green arrow and with the battery pack on, it should (hopefully) keep moving.
Screen Shot 2017-10-23 at 16.24.12.png
If you put a second motor block after the wait block with the stop in the block. It such then stop after 1 second of moving.
Stage 7: Making it do more.
-    Drag a do-until block in (found in the control menu).
-    Go to variable menu and add a new variable, I have used t, select the block marked let=, and drag a t into the blank space.
-    Drag an increase block onto the screen and drag a t into the blank space.
Screen Shot 2017-10-23 at 16.27.45.png
Go to the operator menu and drag onto the screen an = block, go back to variables menu and drag a t into the first space on the = block and click on the second space on the block and type in 5.
Screen Shot 2017-10-23 at 16.29.02.png
Now for the challenge put all these together to copy what is shown below. Now, put the egg-bot on the paper, with the pen lids off, press the green triangle and the motors should be spun in different directions.
This is a junkbot so it may just cause the bot to move a slightly different directions but hopefully it should just draw some squiggly lines.



© Scott Turne
Attribution-ShareAlike
CC BY-SA




All views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with. Twitter: @scottturneruon

No comments:

Post a Comment