This document shows you how to get started with your color sensor.
Tip: You can use the Sensor Dashboard to view and graph readings from Marty's color sensor in real time.
What is the color sensor?
The color sensor does exactly what it says on the tin… it senses color! Each Marty comes with a color sensor attached as standard. It is needed to use our Marty Unplugged mode and can be used in Blocks and Python.
Color Sensor Calibration
If your color sensor is having problems sensing colors, we recommend calibrating it.
You will need:
- A plain white surface, like a sheet of paper, folded in half to prevent the color of the surface underneath from showing through.
- A USB-C cable to connect to Marty to your computer or tablet.
Go to robot settings in the app and click calibrate. Then select color sensor and follow the instructions.
Using the Color Sensor
If you would like to use the color sensor with Marty Unplugged please check out the user guide here.
Using the color sensor in Blocks is super simple! If you haven't used Blocks before you can check out our user guide here.
In Blocks, scroll down to the Sensing category. Here, you'll find the blocks used to read data from Marty's color sensor.
We can then build our own unplugged remote by building some code like this! Important to keep in mind Marty will only recognise the colors of the unplugged color cards which are green, yellow, blue, purple and red!
For more activities using Marty's color sensor, visit our Learning Portal.