Skip to content

How to calibrate color sensors in Micropython #8

@fll-pigeons

Description

@fll-pigeons

from fllforums

One thing I've noticed is Pybricks ColorSensor class doesn't provide a way to calibrate. I came out with a workaround for now but I wonder whether there is any "official" way to do it like what you can do with EV3 Mindstorms Color Sensor block?

philso replied:

EV3Lessons has a tutorial on how to calibrate the color sensor using the EV3 programming language. That tutorial includes some pseudocode that can be converted to MicroPython. There is a note in that tutorial that it would be best to calibrate each color sensor connected separately. The sensors are not calibrated from the factory and different examples will generally return different values when they are exposed to the same area on the mat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions