Candy dispensers are one of the most loved things by kids at places such as amusement parks, malls, airports, and elsewhere. They usually come with a simple dispensing mechanism that gives out candy to kids based on the cents inserted into the dispensers. Today, you will be building a candy dispenser that will give out candy based on the color of bricks detected. This project will further enhance your coding skills with the LEGO BOOST color sensor.
You can see an example of an automatic candy dispensing machine here:
This chapter will cover the following topics:
- Building a candy dispenser robot
- Let's code the robot to dispense candies based on different colors of LEGO brick detected
- Time for a challenge