Vortex Candy Launcher

This year for Halloween, I decided to build a mini chocolate throwing machine using the LEGO BOOST kit. This one spins up the candy in a mini centrifuge before launching it across the room. You can see it in action, with an explanation of how it works, in the video. Continue reading for instructions on building and programming your own.

For this model I decided to bring the mini chocolates up to speed in a spinning armature, which acts much like a flywheel to store kinetic energy. Once it reaches top speed, an arm is raised under the armature to trigger the launch of the candy from the tray it is sitting in.

Building the Model

Below you can find a PDF file with step by step instructions on how to build the model. All the pieces you need to build it come in the BOOST set 17101 Creative Toolbox.

The external motor needs to be connected to port D and the light/colour sensor needs to be connected to Port C. You’ll also want to ensure the wires are out of the way of the spinning armature. This is only really an issue with the motor wire, and I’ve built a small bracket on the side of the conveyor support in order to route the wire, which you can see in the video.

You might have to tweak the model depending on what you are trying to throw, but it should work reasonably well with anything that is roughly the same size as the mini chocolates that I am using.

Programming the Model

The BOOST program is fairly straight forward, and below you can find a screenshot of it, which you should be able to use to recreate it on your own device. I describe each programming block in detail below.

Vortex Program 1

Edit: It seems with a recent update to the app, the orange ‘wait for color’ block in my original program above may not be available to everyone. Below is an alternate program that achieves the same logic using more basic blocks.

Vortex Program 2

The program follows a linear execution path, executing the following steps in order.

  • Rotate the external motor 180 degrees – This will move the conveyor belt to drop a mini chocolate onto the launch tray. You can adjust the rotation amount to suit the size of the items you are launching.
  • Start motor A at 100 percent power – This will start spinning the armature.
  • Wait 0.4 seconds – This will give the armature some time to reach maximum speed.
  • Rotate motor B -90 degrees – This will raise the arm, in order to trigger the launch of the candy.
  • Stop motor A – Stop the armature from spinning.
  • Rotate motor B 90 degrees – This will lower the arm back down.
  • Start motor A at -10 power – This will start the spinning the armature so that we can return to the start position.
  • Wait 0.5 seconds – This gives the armature some time to rotate smoothly. Technically this isn’t necessary, but it seems to help give more reliable results.
  • Wait until the colour sensor detects blue – This will wait until the light sensor detects the launch tray above it.
  • Stop motor A – Stop the armature. Since there is a small delay in program execution, the armature will ‘overshoot’ the correct position, which is why the next loop is necessary.
  • Repeat rotating the motor A 5 degrees until the light sensor detects blue – The loop is set up to continue repeating while the light sensor doesn’t detect blue, which means as soon as it does detect blue it will stop. Each time it repeats it will rotate motor A 5 degrees.

Vortex Candy Launcher

9 thoughts on “Vortex Candy Launcher

  1. Was getting bored with what was already on the Boost app so decided to search the web for some new ideas! Found this one and it looked pretty cool + it’s close to Halloween so thought to give it a try. Works amazingly! Code took a while because the hub kept disconnecting from out device but in the end it’s pretty good! P.S. The second code listed on here is a bit better because it lines up the launcher more. Thanks!

  2. My son loved building this. We needed the adjusted building block scema, but it worked like a charm. One slight issue was that sometimes the color sensor stoppped the rotation too fast, resulting in a bad positioned armature. As an extra fault checker I added the logic to the start of the sequence one more time, to just make sure the armature is positioned perfectly before moving the belt.

    Thanks for the creativity and for sharing!

    • You’re welcome! Yeah, the responsiveness of the color sensor is not very consistent or accurate. Great job figuring out a work around!

  3. I built this yesterday with my 8 year old son, its a very fun build! The directions were very easy to follow. I look forward to more boost projects. Just Awesome!

  4. Dear Jason,
    Thank You so much for all of Your ideas and building instructions. We/ve built and adjusted many of them. This one doesn/t work, because we miss one programming brick in the app: the orange colour sensor app. Do You have any idea how to find it or make it. Or is there a bug in our app?

    groetjes from the Netherlands
    Mattis (and Helene)

    • Interesting, I’m not aware of any differences in the apps, but I’ll see if I can find any info about it.

      Edit: It seems with some recent update they have removed some of the ‘shortcut’ logic blocks. You can achieve the same logic using some other blocks. I’ll upload a slightly modified program that should still work shortly.

      • Probably the sensor gets unlocked during building every default model on the app?v

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
Website