Nespresso RGB Sensor / Mbed 2 deprecated CapsuleCalibrator

Dependencies:   ColorDetectorV2 mbed

You are viewing an older revision! See the latest version

Homepage

Table of Contents

    Capsule Calibrator

    The default mbed Device Server (NSP or mDS) configuration is used by an instance of the web app (Barista) here: http://barista-test.cloudapp.net:4005.

    In main.cpp, find the following lines:

    /************************
    * Modify parameters below
    ************************/
    #define COLOR_SENSOR_SCL I2C_SCL
    #define COLOR_SENSOR_SDA I2C_SDA
     
    #define NUM_RUNS_PER_CAPSULE 20
    #define NUM_CAPSULES 5
     
    const char* capsules[] = {
        "decaffeinato_intenso",
        "vivalto_lungo",
        "roma",
        "livanto",
        "arpeggio"
    };
     
    /************************
    * Stop editing here
    ************************/
    

    Edit COLOR_SENSOR_SCL and COLOR_SENSOR_SDA to the appropriate I2C pins on your mbed platform.

    Edit NUM_RUNS_PER_CAPSULE to change the number of repetitions needed per capsule. In general, this should be left at the default to ensure consistent detection.

    Edit NUM_CAPSULES to match the number of different types of capsules you wish to detect.

    Edit capsules to change the types of capsules that you wish to calibrate.


    All wikipages