# Crickit Powered Maker Ice Cream Truck!

## Overview

https://www.youtube.com/watch?v=oCED1wAilY0&amp;feature=youtu.be

Twitter user @caitlinsdad made [this insanely awesome maker-themed ice cream truck](https://twitter.com/caitlinsdad/status/878045080098979841). Inspired by his idea, here is a guide on how to create the truck in its physical form! Using cardboard, a couple different motors, NeoPixels, CRICKIT and Circuit Playground Express, we will recreate this totally tricked out truck!

![](https://cdn-learn.adafruit.com/assets/assets/000/065/322/medium800/makecode_icecream_%281%29.jpg?1541632112)

## Prerequisite guides

Reading or at least skimming through these guides before beginning will save you a lot of headache in the future. You can always refer back to them if you need help!

- [Cardboard Fundamentals](https://learn.adafruit.com/cardboard-fundamentals/overview)
- [Guide to CRICKIT](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit/overview)
- [Guide to Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express)

## Adafruit Parts
### Part: Circuit Playground Express
quantity: 1
Circuit Playground Express is a great introduction to electronics and programming
[Circuit Playground Express](https://www.adafruit.com/product/3333)

### Part: Adafruit CRICKIT for Circuit Playground Express
quantity: 1
Crickit: Creative Robotics and Interactive Construction Kit is an add-on to Circuit Playground Express
[Adafruit CRICKIT for Circuit Playground Express](https://www.adafruit.com/product/3093)

### Part: TT Motor DC Gearbox
quantity: 2
200 RPM 3 to 6VDC
[TT Motor DC Gearbox](https://www.adafruit.com/product/3777)

### Part: Micro Servo
quantity: 1
A little servo can rotate approximately 180 degrees (90 in each direction)
[Micro Servo](https://www.adafruit.com/product/169)

### Part: Thin White Wheel for TT DC Gearbox Motors
quantity: 4
65mm Diameter
[Thin White Wheel for TT DC Gearbox Motors](https://www.adafruit.com/product/3763)

### Part: USB Cable
quantity: 1
USB A to Micro-B
[USB Cable](https://www.adafruit.com/product/592)

### Part: Small Alligator Clip Test Lead (set of 12)
quantity: 1
For controlling the truck via capacitive touch
[Small Alligator Clip Test Lead (set of 12)](https://www.adafruit.com/product/1008)

### Part: Rainbow Crafting Yarn
quantity: 1
For making waving Adabot (any string or twine will also do)
[Rainbow Crafting Yarn](https://www.adafruit.com/product/4015)

### Portable Power
### Part: Male DC Power adapter
quantity: 1
2.1mm plug to screw terminal block
[Male DC Power adapter](https://www.adafruit.com/product/369)

### Part: Lithium Ion Battery Pack - 3.7V 6600mAh
quantity: 1
Works well for motors that hog a lot of power
[Lithium Ion Battery Pack - 3.7V 6600mAh](https://www.adafruit.com/product/353)

### Part: PowerBoost 1000 Charger - Rechargeable 5V Lipo USB Boost @ 1A - 1000C
quantity: 1
Will convert 3.7v from lithium batteries to 5v needed for CRICKIT
[PowerBoost 1000 Charger - Rechargeable 5V Lipo USB Boost @ 1A - 1000C](https://www.adafruit.com/product/2465)

### Part: Premium Male/Male Jumper Wires - 20 x 3" (75mm)
quantity: 1
For connecting batteries to PowerBoost
[Premium Male/Male Jumper Wires - 20 x 3" (75mm)](https://www.adafruit.com/product/1956)

Optional

### Part: Adafruit Mini Skinny NeoPixel Digital RGB LED Strip - 60 LED/m - WHITE - 1 meter long
quantity: 1
Great additional lighting for the truck but not absolutely necessary. 
[Adafruit Mini Skinny NeoPixel Digital RGB LED Strip - 60 LED/m - WHITE - 1 meter long](https://www.adafruit.com/product/2959)

### Part: 5V 2A (2000mA) switching power supply - UL Listed
quantity: 1
Power source for testing out electronics before adding battery
[5V 2A (2000mA) switching power supply - UL Listed](https://www.adafruit.com/product/276)

## Tools and Materials

- Medium to large width corrugated cardboard - need at least 5 - 6 sheets sized 8.5" X 11" with the same thickness
- Scrap pieces of cardboard (to make character cutouts and various smaller parts)
- Pencil
- Ruler
- Hobby knife
- Scissors
- Hot glue gun + 2-3 sticks of glue
- Double sided tape
- Aluminum foil
- Access to a printer
- Print out of characters
- Glue stick
- Mini bamboo skewers
- Fake spider web (for ice cream)
- Duct tape (for NeoPixels)
- Soldering iron + solder (for portable power supply)
- Rubber band
- Wire cutter

Optional but recommended:&nbsp;

- Cutting mat (for cutting cardboard)
- Peel and stick hoop and loop fasteners (Velcro) - For attaching Blinka to front seat!
- Colored markers and other decorations for the truck!

# Crickit Powered Maker Ice Cream Truck!

## Wiring

![](https://cdn-learn.adafruit.com/assets/assets/000/066/241/medium800/makecode_ice_cream_truck_bb.png?1542686499)

## To begin, let's first wire up the main electronic components:
- Plug in&nbsp; **both DC motors** &nbsp;to the&nbsp;`motor inputs`&nbsp;on CRICKIT with the&nbsp;`red 5V`&nbsp;leads going in the&nbsp; **outer inputs of the motor terminal block**. Use a small screwdriver to screw in the leads into the terminal blocks.
- Plug the **&nbsp;servo** &nbsp;into&nbsp;`input 1`&nbsp;on the&nbsp; **servo section** &nbsp;on CRICKIT. Orient the leads such that the yellow wire is on the outside edge of CRICKIT.
- Attach an alligator clip to capacitive touch&nbsp;`input A3`&nbsp;on the CPX (Circuit Playground Express)
- For power, for now, use a&nbsp;[5V 2A (2000mA) switching power supply](https://www.adafruit.com/product/276)&nbsp;plugged into the&nbsp;`5V DC jack`.
- Screw in NeoPixel strip to` NeoPixel terminal block`&nbsp;of CRICKIT after prepping the wires via directions below. For more info on using NeoPixels with CRICKIT, check out this guide:&nbsp;[Make it Glow with CRICKIT](https://learn.adafruit.com/make-it-glow-with-crickit/overview).

![makecode_IMG_6304.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/260/medium640/makecode_IMG_6304.jpg?1542693196)

In order to attach the NeoPixel strip to CRICKIT, we will need to prep the Data In end of the strip.

## Prepping the NeoPixel strip for CRICKIT:
- Take the end of the NeoPixel strip with the **data line arrow pointing inward toward the strip**.  
  
- With wire cutters, cut the end of the **white wire.**  
  
- Strip off 1 cm of wire cover from white wire as well as ground (black) and power (red) wires.

![makecode_IMG_6090.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/410/medium640/makecode_IMG_6090.jpg?1541721114)

![makecode_IMG_6091.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/411/medium640/makecode_IMG_6091.jpg?1541721123)

![makecode_IMG_6092.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/412/medium640/makecode_IMG_6092.jpg?1541721134)

![makecode_IMG_6094.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/413/medium640/makecode_IMG_6094.jpg?1541721140)

# Adding Louder Sound

You may like the song the little crickit bot plays but want it to be a little louder. By default it only plays from the little buzzer on the Circuit Playground. By adding a 8 ohm speaker to the Crickit speaker output you'll get a blast of audio!

### Mini Metal Speaker w/ Wires - 8 ohm 0.5W

[Mini Metal Speaker w/ Wires - 8 ohm 0.5W](https://www.adafruit.com/product/1890)
Listen up! This tiny 1" diameter speaker cone is the perfect addition to any small audio project where you need an 8 Ω impedance and will be using 0.5W or less of power. We particularly like this cone as it's very simple and its metal body is extremely lightweight. <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/1890)
[Related Guides to the Product](https://learn.adafruit.com/products/1890/guides)
![Mini Metal Speaker with Wires](https://cdn-shop.adafruit.com/640x480/1890-06.jpg)

Now it's time to program the CPX and CRICKIT to control the electronic components we just wired. We'll be using programming called MakeCode to do that.

# Crickit Powered Maker Ice Cream Truck!

## Programing with MakeCode

## What is MakeCode?

MakeCode is a web-based code editor for physical computing made by Microsoft.

What does that mean for you? It means you can program your Circuit Playground Express to do almost anything you can dream up right from a website! You can code with blocks similar to the language Scratch, or you can do more advanced coding with Javascript. We'll be sticking to the block-based programming for this project.

More on MakeCode for Adafruit boards&nbsp;[here](https://learn.adafruit.com/makecode).

## Install the MakeCode CRICKIT Extension

Before we start programming, let's make sure you have the CRICKIT extension installed in MakeCode.

Detailed instructions on how to do that can be&nbsp;[found in this guide](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit?view=all#adding-crickit-extension "MakeCode Crickit Extension").

## Create a New Project with MakeCode

Head over to&nbsp;[https://makecode.adafruit.com/](https://makecode.adafruit.com/)&nbsp;and create a new project.

Click the button below to access the code for this project.

[Open the code for the project in MakeCode here.](https://makecode.com/_Rmb52F8RsX4F)
![](https://cdn-learn.adafruit.com/assets/assets/000/065/776/medium800/makecode_Screen_Shot_2018-11-13_at_6.02.56_PM.png?1542150181)

## What's going on the code above?
- On&nbsp;`start`, we initialize the NeoPixel strip.
- In a&nbsp;`forever loop`, we set the&nbsp;`brightness`&nbsp;of the NeoPixels, set the CPX NeoPixels to a specific color, call the comet animation for the NeoPixel strip for&nbsp;`3 seconds`, set the&nbsp;`volume`&nbsp;of the CPX speaker, then play the "Do Your Ears Hang Low" tune by calling the&nbsp;`song functions`. As it's a forever loop, this code block loops forever regardless of other events that happen in the code!

![makecode_Screen_Shot_2018-11-13_at_6.13.14_PM.png](https://cdn-learn.adafruit.com/assets/assets/000/066/250/medium640/makecode_Screen_Shot_2018-11-13_at_6.13.14_PM.png?1542690815)

- The "Do Your Ears Hang Low" tune can be separated into 3 parts. The song starts with part 1, then goes to part 2, then back to part 1 then ends with part 3 before repeating again (and again and again...). Creating functions for these song parts then "calling" the functions later allows us to have much cleaner looking and more organized code. It also allows us to reduce the amount of code needed for the project making the program more efficient!

![makecode_Screen_Shot_2018-11-13_at_6.12.31_PM.png](https://cdn-learn.adafruit.com/assets/assets/000/066/251/medium640/makecode_Screen_Shot_2018-11-13_at_6.12.31_PM.png?1542690876)

- When capacitive touch&nbsp;`input A3`&nbsp;on the CPX is touched, we want to call the&nbsp;`wave function`&nbsp;(which makes Adabot wave with ice cream in hand), then move the DC motors each at&nbsp;`65% speed`&nbsp;for&nbsp;`8 seconds`, stop the motors, then call the&nbsp;`wave function`&nbsp;again.

![makecode_Screen_Shot_2018-11-13_at_6.12.48_PM.png](https://cdn-learn.adafruit.com/assets/assets/000/066/252/medium640/makecode_Screen_Shot_2018-11-13_at_6.12.48_PM.png?1542690928)

- The wave function starts the&nbsp;`servo at 0 degrees`, then moves to&nbsp;`150 degrees`then back to&nbsp;`0`, repeating&nbsp;`5`&nbsp;times in total.

![makecode_Screen_Shot_2018-11-13_at_6.12.38_PM.png](https://cdn-learn.adafruit.com/assets/assets/000/066/253/medium640/makecode_Screen_Shot_2018-11-13_at_6.12.38_PM.png?1542690968)

## Uploading the Code

Now that we have the code for the project, we need to upload it to the CPX.

Let's name our file and download it.

- Choose a name at the bottom of the page.
- Then click the pink&nbsp; **Download** &nbsp;button.

Follow the directions and connect your CPX to your computer via the usb cable. Click the CPX Reset button once to go into programming mode (all NeoPixels will turn green).

In some cases, you may need to press the reset button twice to get into programming mode.

Next, look for the file in your downloads folder and drag it onto your&nbsp; **CPLAYBOOT** &nbsp;drive that should have showed up in your file manager/finder when you plugged in your board and entered programming mode.

You should now see the&nbsp; **CPLAYBOOT** &nbsp;drive disappear.

## Power up CRICKIT

Connect CRICKIT to power with the 5V DC power cable

The code should now be running so try it out!

- When the board is powered up, the NeoPixels on both the CPX and CRICKIT should come on and "Do Your Ears Hang Low" should start playing.
- When the tin foil is touched, the servo should move back and forth five times, then the motors should both turn for eight seconds. Lastly, the servo will move back and forth five more times.

If you are having issues getting things to work check out this extended guide&nbsp;[here](https://learn.adafruit.com/makecode/downloading-and-flashing).

![](https://cdn-learn.adafruit.com/assets/assets/000/065/786/medium800/makecode_IMG_6191.jpg?1542152177)

# Crickit Powered Maker Ice Cream Truck!

## Adding Portable Power

The DC motors are **power hungry**. This requires a beefy power supply if we want to make this truck portable. [This guide](https://learn.adafruit.com/crickit-snake-bot/a-bigger-better-power-supply) does a great job explaining this issue in more detail.

If this is your first time soldering check out this guide:&nbsp;[Adafruit Guide To Excellent Soldering Solder at peak performance!](https://learn.adafruit.com/adafruit-guide-excellent-soldering/tools "Adafruit Guide To Excellent Soldering Solder at peak performance!")

If you wanna skip the soldering, you can use a [portable USB pack](https://www.adafruit.com/product/1565) and hook it up to CRICKIT with [this cable](https://www.adafruit.com/product/2697).

![](https://cdn-learn.adafruit.com/assets/assets/000/065/799/medium800/makecode_IMG_6195.jpg?1542152858 *picture is excluding switch)

- Remove USB extension from PowerBoost board. Removes easily by pushing out prongs.
- Cut ends of black and red bread board wires, and remove 1-2 cm of wire wrap from end.
- Solder red wire to `power` and black to `ground`.
- Solder on switch to PowerBoost over `Vs, EN and GND`. Orientation doesn't matter.
- Screw in power and ground leads to terminal block on DC jack.
- Plug in JST connector from battery to PowerBoost.
- Plug in DC jack to CRICKIT.

![makecode_IMG_6196.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/801/medium640/makecode_IMG_6196.jpg?1542153306)

![makecode_IMG_6197.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/802/medium640/makecode_IMG_6197.jpg?1542153312)

![makecode_IMG_6199.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/803/medium640/makecode_IMG_6199.jpg?1542153321)

![makecode_IMG_6203.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/806/medium640/makecode_IMG_6203.jpg?1542153392)

![makecode_IMG_6200.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/808/medium640/makecode_IMG_6200.jpg?1542153445)

![makecode_IMG_6205.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/809/medium640/makecode_IMG_6205.jpg?1542153452)

Turn on the soldered switch and we have some hefty portable power!

![](https://cdn-learn.adafruit.com/assets/assets/000/065/800/medium800/makecode_IMG_6202.jpg?1542153283)

# Crickit Powered Maker Ice Cream Truck!

## Constructing the Truck

Download and print out The PDF of various truck parts and cut outs by clicking the button below.

[ice_cream_truck_print_out.pdf](https://cdn-learn.adafruit.com/assets/assets/000/065/408/original/ice_cream_truck_print_out.pdf?1541720912)
Warning: 

## Cut the Outer Truck Parts
- Prepare enough medium to large width sized cardboard to fit all outer truck parts onto (pages 1 - 5 in pdf). Thicker cardboard makes for a sturdier truck!
- On the print outs, the **dotted lines are meant for cutting&nbsp;** and the **bold lines are meant for folding.**
- Cut out the parts from the print outs **pages 1 - 5\***
- Glue to cardboard.
- Cut out parts with hobby knife.  
  

\* Cutting the parts out before glueing is optional but helps save room and makes for a cleaner looking result. To save time you can glue the entire print out sheets to the cardboard and cut them out.

![makecode_IMG_6108.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/335/medium640/makecode_IMG_6108.jpg?1541699263)

![makecode_IMG_6113.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/336/medium640/makecode_IMG_6113.jpg?1541699272)

![makecode_IMG_6115.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/337/medium640/makecode_IMG_6115.jpg?1541699282)

![makecode_IMG_6116.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/338/medium640/makecode_IMG_6116.jpg?1541699293)

![makecode_IMG_6117.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/339/medium640/makecode_IMG_6117.jpg?1541699304)

![makecode_IMG_6121.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/340/medium640/makecode_IMG_6121.jpg?1541699308)

## Score and Fold Parts
- Over&nbsp; **bold lines** on each side of the truck, make light incision with hobby knife.
- Next take a pencil or pen and score until parts fold. These are now the back doors of the truck.
- &nbsp;For the truck front, make a light incision on the bold line above the grills and headlights.
- Score and fold.
- For upper fold, turn over front piece, measure about 5mm below windows, draw a line across the back.
- Lightly go over with hobby knife then score and fold. **Score multiple times before folding this part** as proximity to windows risks improper folding.

![makecode_IMG_6123.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/343/medium640/makecode_IMG_6123.jpg?1541700268)

![makecode_IMG_6124.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/344/medium640/makecode_IMG_6124.jpg?1541700295)

![makecode_IMG_6125.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/345/medium640/makecode_IMG_6125.jpg?1541700307)

![makecode_IMG_6127.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/347/medium640/makecode_IMG_6127.jpg?1541700335)

![makecode_IMG_6128.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/348/medium640/makecode_IMG_6128.jpg?1541700361)

![makecode_IMG_6129.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/349/medium640/makecode_IMG_6129.jpg?1541700379)

![makecode_IMG_6130.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/350/medium640/makecode_IMG_6130.jpg?1541700384)

![makecode_IMG_6132.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/351/medium640/makecode_IMG_6132.jpg?1541700389)

## Glueing pieces together:
- Put hot glue onto the front of the left side of the truck.
- Place front of truck piece onto left side piece, aligning scored folds with the contours of the side piece.
- Repeat with other side.
- Glue on truck top.
- Feel free to reenforce with glue wherever connections feel weak.

\*We will leave the bottom of the truck alone for now as we will assemble the character cut outs, electronics and wheels on this piece before connecting to the rest of the truck.

![makecode_IMG_6134.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/357/medium640/makecode_IMG_6134.jpg?1541700930)

![makecode_IMG_6135.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/354/medium640/makecode_IMG_6135.jpg?1541700855)

![makecode_IMG_6136.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/355/medium640/makecode_IMG_6136.jpg?1541700868)

![makecode_IMG_6133.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/356/medium640/makecode_IMG_6133.jpg?1541700921)

# Crickit Powered Maker Ice Cream Truck!

## Adding Adabot, Blinka and Ice Cream!

## Cut Out Characters and Props
- From page 6 of the PDF print out, cut out Adabot and Blinka\*
- Glue characters down onto a thin width-sized cardboard.
- Use a pencil to draw a small rectangle sized slightly less than Blinka's length. (This will used as base to hold Blinka upright later so it doesn't have to be perfect)
- Use a pencil to draw a small triangle shaped like an ice cream cone&nbsp;
- Use hobby knife to carefully cut out characters, base and cone.
- For Adabot's antennae and Blinka's tongue, cut under, as they are too small to keep attached when cutting with cardboard.&nbsp;  
  

\*For smaller parts like Adabot's antennae and Blinka's tongue, use a hobby knife.&nbsp;

![makecode_IMG_6140.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/361/medium640/makecode_IMG_6140.jpg?1541717409)

![makecode_blinka_and_adabot.png](https://cdn-learn.adafruit.com/assets/assets/000/065/362/medium640/makecode_blinka_and_adabot.png?1541717434)

![makecode_IMG_6142.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/363/medium640/makecode_IMG_6142.jpg?1541717447)

![makecode_IMG_6143.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/364/medium640/makecode_IMG_6143.jpg?1541717452)

![makecode_IMG_6144.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/365/medium640/makecode_IMG_6144.jpg?1541717464)

![makecode_IMG_6145.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/366/medium640/makecode_IMG_6145.jpg?1541717469)

## Ice cream!
- From page 7 of the PDF print out, cut out the ice cream cone.
- Glue one side of the back.
- Curl into cone shape.
- Take a ball of fake spider web the size of a fist (found at the dollar store or a halloween store). You can use cotton balls also.
- Glue to top of cone.
- Glue ice cream cone to top of truck.
- Take a pea-sized amount of web and roll around in fingers.
- Glue to top of small cone cut out.
- Bend Adabot's shoulder and arm so it's reaching forward and glue small ice cream cone to hand.

![makecode_IMG_6147.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/367/medium640/makecode_IMG_6147.jpg?1541718239)

![makecode_IMG_6148.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/368/medium640/makecode_IMG_6148.jpg?1541718243)

![makecode_IMG_6149.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/369/medium640/makecode_IMG_6149.jpg?1541718250)

![makecode_IMG_6150.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/370/medium640/makecode_IMG_6150.jpg?1541718256)

![makecode_IMG_6151.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/371/medium640/makecode_IMG_6151.jpg?1541718263)

![makecode_IMG_6170.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/377/medium640/makecode_IMG_6170.jpg?1541718336)

![makecode_IMG_6153.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/373/medium640/makecode_IMG_6153.jpg?1541718280)

![makecode_IMG_6155.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/375/medium640/makecode_IMG_6155.jpg?1541718296)

## Making Blinka's Seat
- From page 8 of the PDF print out, cut out seat part and glue to medium to large width cardboard (can use same cardboard from the truck parts).
- Glue one of the larger pieces to the other on the edges.
- Add the smaller piece on its long side underneath one of the larger pieces .

![makecode_seat.png](https://cdn-learn.adafruit.com/assets/assets/000/065/381/medium640/makecode_seat.png?1541718897)

![makecode_cutoutseat.png](https://cdn-learn.adafruit.com/assets/assets/000/065/382/medium640/makecode_cutoutseat.png?1541719008)

![makecode_IMG_6157.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/383/medium640/makecode_IMG_6157.jpg?1541719021)

![makecode_IMG_6158.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/384/medium640/makecode_IMG_6158.jpg?1541719034)

## Installing Blinka's Seat
- Glue on Blinka's base.
- Cut out a hook and corresponding loop piece that are the same size as Blinka's base.
- Attach one piece to Blinka's base.
- Attach the other to the truck seat.
- Now Blinka can sit in her sit!
- Measure about **55mm** behind the front of the truck base and draw a line. This is where the seat will go.
- Place front of seat up against this line and trace around the seat base with a pencil.
- Glue seat in place, reenforcing where necessary.

![makecode_IMG_6159.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/385/medium640/makecode_IMG_6159.jpg?1541719245)

![makecode_IMG_6160.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/386/medium640/makecode_IMG_6160.jpg?1541719249)

![makecode_IMG_6161.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/387/medium640/makecode_IMG_6161.jpg?1541719255)

![makecode_IMG_6162.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/388/medium640/makecode_IMG_6162.jpg?1541719260)

![makecode_IMG_6163.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/389/medium640/makecode_IMG_6163.jpg?1541719268)

![makecode_IMG_6166.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/397/medium640/makecode_IMG_6166.jpg?1541719433)

![makecode_IMG_6165.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/398/medium640/makecode_IMG_6165.jpg?1541719450)

![makecode_IMG_6167.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/394/medium640/makecode_IMG_6167.jpg?1541719337)

## Make wavin', ice cream slingin', Adabot!
- Measure about 8cm of bamboo stick and use hands to break off the measured piece.
- On the truck base, draw a point on the base of the truck 14mm to the left and 6 mm back from the left side starting at the back left corner of the piece that juts out in the middle.
- At roughly a 20 degree angle to the right, use a pencil to create a hole where the point was drawn.
- Take the 8cm bamboo skewer and stick in at the same angle.
- Remove bamboo stick, add hot glue to hole, place stick back and hold in place until dry.\*
- Measure a roughly 2cm piece of cardboard and cut out.
- Glue it towards the top of the bamboo stick.
- Glue Adabot on front of cardboard piece. This will give Adabot a "popping out" effect from the truck window.

\*This bamboo stick will later be pulled back and forth by a string attached to the servo giving Adabot a sort of waiving effect.

![makecode_IMG_6172.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/400/medium640/makecode_IMG_6172.jpg?1541719830)

![makecode_IMG_6173.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/401/medium640/makecode_IMG_6173.jpg?1541719833)

![makecode_IMG_6176.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/403/medium640/makecode_IMG_6176.jpg?1541719849)

![makecode_IMG_6177.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/404/medium640/makecode_IMG_6177.jpg?1541719858)

![makecode_IMG_6178.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/405/medium640/makecode_IMG_6178.jpg?1541719862)

![makecode_IMG_6180.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/406/medium640/makecode_IMG_6180.jpg?1541719870)

![](https://cdn-learn.adafruit.com/assets/assets/000/065/407/medium800/makecode_IMG_6181.jpg?1541720530)

## Looking Good!
![](https://cdn-learn.adafruit.com/assets/assets/000/065/399/medium800/makecode_IMG_6169.jpg?1541719722)

# Crickit Powered Maker Ice Cream Truck!

## Mounting Wheels

![](https://cdn-learn.adafruit.com/assets/assets/000/065/857/medium800/makecode_IMG_6206.jpg?1542227872)

## Front Wheels
- Place the 2 wheels on the motors.
- Add double sided foam tape to motors.
- Attach motors to bottom of base of truck making sure they are aligned with the angle of the cardboard and that the wheels aren't touching any cardboard.

![makecode_IMG_6207.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/849/medium640/makecode_IMG_6207.jpg?1542227374)

![makecode_IMG_6208.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/850/medium640/makecode_IMG_6208.jpg?1542227378)

![makecode_IMG_6209.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/851/medium640/makecode_IMG_6209.jpg?1542227391)

![makecode_IMG_6210.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/852/medium640/makecode_IMG_6210.jpg?1542227396)

## Back wheels

Creating the axles:

- Cut out **two** &nbsp; **22mm x 42mm** pieces of cardboard.
- Find the middle of each piece and pierce with bamboo stick.
- Hold rig under the truck where wheels will go and pull pieces out until they are at the ends of the base.
- Take a pencil or pen and mark on both sides of the piece on the bamboo stick to keep the distance correct.

![makecode_IMG_6211.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/861/medium640/makecode_IMG_6211.jpg?1542228383)

![makecode_IMG_6212.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/862/medium640/makecode_IMG_6212.jpg?1542228389)

![makecode_IMG_6213.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/863/medium640/makecode_IMG_6213.jpg?1542228398)

![makecode_IMG_6214.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/864/medium640/makecode_IMG_6214.jpg?1542228405)

![makecode_IMG_6215.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/865/medium640/makecode_IMG_6215.jpg?1542228428)

![makecode_IMG_6217.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/866/medium640/makecode_IMG_6217.jpg?1542228444)

## Attach Wheels
- Measure **2 cm** away from each end mark where cardboard pieces were.
- Break off ends of bamboo stick at the most recently drawn mark.
- Place cardboard pieces back on bamboo stick.
- Put hot glue in wheel hold and push wheels into place one at a time making sure they are upright and holding until firmly in place.
- Glue rig under truck making sure wheels are not touching any cardboard.

![makecode_IMG_6216.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/867/medium640/makecode_IMG_6216.jpg?1542228750)

![makecode_IMG_6218.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/868/medium640/makecode_IMG_6218.jpg?1542228764)

![makecode_IMG_6219.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/869/medium640/makecode_IMG_6219.jpg?1542228775)

![makecode_IMG_6220.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/870/medium640/makecode_IMG_6220.jpg?1542228784)

![](https://cdn-learn.adafruit.com/assets/assets/000/065/882/medium800/makecode_IMG_6224.jpg?1542229168)

# Crickit Powered Maker Ice Cream Truck!

## Placing Electronics

## Battery, CRICKIT and Servo Mounting
- Put two pieces of foam tape on battery.
- Place battery up against front seat.
- Put a piece of foam tape on each rubber leg of CRICKIT.
- Place on top of battery.
- Glue servo in place on back corner of truck base with the wires facing out the back.
- Put a piece of foam tape on bottom of PowerBoost.
- Place on back of truck base, pressing in legs of switch into cardboard.

![makecode_IMG_6225.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/892/medium640/makecode_IMG_6225.jpg?1542229592)

![makecode_IMG_6228.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/893/medium640/makecode_IMG_6228.jpg?1542229600)

![makecode_IMG_6230.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/894/medium640/makecode_IMG_6230.jpg?1542229613)

![makecode_IMG_6233.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/895/medium640/makecode_IMG_6233.jpg?1542229632)

![makecode_IMG_6234.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/896/medium640/makecode_IMG_6234.jpg?1542229644)

![makecode_IMG_6235.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/897/medium640/makecode_IMG_6235.jpg?1542229662)

## Adabot Waving Rig
![](https://cdn-learn.adafruit.com/assets/assets/000/065/903/medium800thumb/makecode_servo.jpg?1542230605)

Pop off the servo arm and reorient like in the moving picture above. This is to ensure the servo will pull Adabot correctly to create the waving effect.

- Cut a string the length of the distance from the Adabot stick to the servo.
- Glue string to servo then to the Adabot stick.

![makecode_IMG_6236.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/883/medium640/makecode_IMG_6236.jpg?1542229310)

![makecode_IMG_6237.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/884/medium640/makecode_IMG_6237.jpg?1542229318)

![makecode_IMG_6238.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/885/medium640/makecode_IMG_6238.jpg?1542229364)

![makecode_IMG_6239.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/886/medium640/makecode_IMG_6239.jpg?1542229367)

In order for Adabot to move side to side, we'll need a force to pull him back after the string attached to the servo loses tension.

- Cut a rubber band
- Glue one end of the rubber band under the front seat
- Making sure there is tension on the band, glue other side to the bamboo stick holding Adabot.

![makecode_IMG_6253.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/905/medium640/makecode_IMG_6253.jpg?1542231265)

![makecode_IMG_6254.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/906/medium640/makecode_IMG_6254.jpg?1542231269)

![makecode_IMG_6257.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/907/medium640/makecode_IMG_6257.jpg?1542231276)

![makecode_IMG_6255.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/908/medium640/makecode_IMG_6255.jpg?1542231290)

## Capacitive Touch & Attaching the Truck Top to Base

To control the truck and tell it when to go for a spin, we will create a capacitive touch button on the top of the truck. Each time the foil is touched, Adabot will wave with some ice cream and the truck will go for a spin around the block!

![](https://cdn-learn.adafruit.com/assets/assets/000/065/913/medium800/makecode_IMG_6242.jpg?1542231473)

- Attach the alligator clip to `input A3` on the CPX. Attach the other end to some tin foil.
- Tape the end of the alligator clip to the underside of the truck top.
- Add tape to a spot on the top of the truck and fold over foil onto tape.
- Glue truck top onto truck base.

![makecode_IMG_6243.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/914/medium640/makecode_IMG_6243.jpg?1542231580)

![makecode_IMG_6244.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/915/medium640/makecode_IMG_6244.jpg?1542231583)

![makecode_IMG_6246.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/916/medium640/makecode_IMG_6246.jpg?1542231592)

![makecode_IMG_6247.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/917/medium640/makecode_IMG_6247.jpg?1542231599)

## Adding NeoPixel Lights

To create an under glow effect for the truck, use duct tape to attach NeoPixels to the bottom of the truck. Be careful the NeoPixel strip does not to come in contact with any moving parts from the motors or axle.

![](https://cdn-learn.adafruit.com/assets/assets/000/065/904/medium800/makecode_IMG_6259.jpg?1542231084)

Now turn on the PowerBoost switch through the back of the truck, touch the foil and watch the glory of the truck!

![](https://cdn-learn.adafruit.com/assets/assets/000/065/952/medium800thumb/makecode_ice_cream_gif_full_short.jpg?1542302808)

That's it! Enjoy your new ice cream slingin' truck!


## Featured Products

### Adafruit CRICKIT for Circuit Playground Express

[Adafruit CRICKIT for Circuit Playground Express](https://www.adafruit.com/product/3093)
Sometimes we wonder if robotics engineers ever watch movies. If they did, they'd know that making robots into servants always ends up in a robot rebellion. Why even go down that path? Here at Adafruit, we believe in making robots our&nbsp; **friends!**

So if you find...

In Stock
[Buy Now](https://www.adafruit.com/product/3093)
[Related Guides to the Product](https://learn.adafruit.com/products/3093/guides)
### Circuit Playground Express - Base Kit

[Circuit Playground Express - Base Kit](https://www.adafruit.com/product/3517)
It's the **Circuit Playground Express Base Kit!** &nbsp;It provides&nbsp;the few things you'll need to get started with the new [Circuit Playground Express](https://www.adafruit.com/product/3333).&nbsp;This version of Circuit Playground is super powered, and will...

In Stock
[Buy Now](https://www.adafruit.com/product/3517)
[Related Guides to the Product](https://learn.adafruit.com/products/3517/guides)
### Thin White Wheel for TT DC Gearbox Motors - 65mm Diameter

[Thin White Wheel for TT DC Gearbox Motors - 65mm Diameter](https://www.adafruit.com/product/3763)
We're keepin' it&nbsp;_wheel_ with this one! Plastic gear-box motors (also known as 'TT' motors) are an easy and low cost way to get your projects moving. But we've noticed that there are not a lot of nice TT motor&nbsp;_wheels&nbsp;_to go along with...

In Stock
[Buy Now](https://www.adafruit.com/product/3763)
[Related Guides to the Product](https://learn.adafruit.com/products/3763/guides)
### DC Gearbox Motor - "TT Motor" - 200RPM - 3 to 6VDC

[DC Gearbox Motor - "TT Motor" - 200RPM - 3 to 6VDC](https://www.adafruit.com/product/3777)
Perhaps you've been assembling a new robot friend, adding&nbsp;a computer for a brain and other fun personality touches. Now the time has come to let it leave the nest and fly on its own wings– err, _wheels!_&nbsp;

These durable (but affordable!) plastic gearbox motors...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3777)
[Related Guides to the Product](https://learn.adafruit.com/products/3777/guides)
### Micro servo

[Micro servo](https://www.adafruit.com/product/169)
Tiny little servo can rotate approximately 180 degrees (90 in each direction) and works just like the standard kinds you're used to but _smaller_. You can use any servo code, hardware, or library to control these servos. Good for beginners who want to make stuff move without...

Out of Stock
[Buy Now](https://www.adafruit.com/product/169)
[Related Guides to the Product](https://learn.adafruit.com/products/169/guides)
### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

Out of Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
### Large Alligator Clip Test Lead (set of 10)

[Large Alligator Clip Test Lead (set of 10)](https://www.adafruit.com/product/321)
Connect this to that without soldering using these handy alligator clip test leads. 20" cables with alligator clip on each end, color coded. You get 10 pieces in 5 colors. Strong and grippy, these always come in handy! We often use these in conjunction with a multimeter so we don't...

Out of Stock
[Buy Now](https://www.adafruit.com/product/321)
[Related Guides to the Product](https://learn.adafruit.com/products/321/guides)
### Male DC Power adapter - 2.1mm plug to screw terminal block

[Male DC Power adapter - 2.1mm plug to screw terminal block](https://www.adafruit.com/product/369)
If you need to connect a battery pack or wired power supply to a board that has a DC jack - this adapter will come in very handy! There is a 2.1mm DC plug on one end, and a screw terminal block on the other. The terminals are labeled with positive/negative assuming a positive-tip configuration...

In Stock
[Buy Now](https://www.adafruit.com/product/369)
[Related Guides to the Product](https://learn.adafruit.com/products/369/guides)

## Related Guides

- [Ladyada's Toolkit](https://learn.adafruit.com/ladyadas-toolkit.md)
- [Make It Bubble](https://learn.adafruit.com/make-it-bubble.md)
- [MakeCode Course for Circuit Playground Express](https://learn.adafruit.com/makecode-circuit-playground-express-course.md)
- [Make It Hot or Cold](https://learn.adafruit.com/make-it-hot-or-cold.md)
- [Circuit Playground Express Rocket Lamp](https://learn.adafruit.com/cpx-rocket-lamp.md)
- [Astrolite NeoPixel Upgrade](https://learn.adafruit.com/astrolite-neopixel-upgrade.md)
- [Smart Toilet Light](https://learn.adafruit.com/smart-toilet-light.md)
- [LEGO Compatible Crickit Rover](https://learn.adafruit.com/lego-compatible-crickit-rover.md)
- [Circuit Playground + CircuitPython Quickstart Guide](https://learn.adafruit.com/circuit-playground-express-circuitpython-5-minute-guide.md)
- [Hammer Time Mini Golf Hazard with Crickit](https://learn.adafruit.com/mini-golf-hammer-time-circuit-playground-crickit.md)
- [Raspberry Gear](https://learn.adafruit.com/raspberry-gear.md)
- [Make It a Keyboard](https://learn.adafruit.com/make-it-a-keyboard.md)
- [NYE Circuit Playground Drop](https://learn.adafruit.com/nye-circuit-playground-drop.md)
- [Crickit Collapsible House with MakeCode](https://learn.adafruit.com/collapsible-house.md)
- [Crickit Powered Dancin' Snowman!](https://learn.adafruit.com/crickit-powered-dancin-snowman.md)
