ChocoPi Flex Sensor


ChocoPi Flex Sensor


  • The ChocoPi Flex Sensor is used together with the Main Board and Sensor Block and is the same sensor that was used in the Nintendo Power Glove.
  • The resistance changes when the metal pad attached to the flex sensor is bent.


    • Resistance value: 10K to 125K
    • Size: 77 x 6 x 0.43 mm
    • Operational temperature: -35 to 80 degrees


    Example 1: Measuring the sensor value of the Flex Sensor

    ChocoPi Flex Sensor


    Run the program and create a sprite of your choice.

    Blocks used What the final code should look like
    Scratch Code Scratch Code


    Sensor bent to the left. Sensor not bent. Sensor bent to the right.
    Scratch Code Scratch Code Scratch Code
    ChocoPi Flex Sensor ChocoPi Flex Sensor ChocoPi Flex Sensor


    Example 2: Control a servo motor using the flex sensor.

    Scratch Code


    ChocoPi Flex Sensor ChocoPi Flex Sensor ChocoPi Flex Sensor