Dim a light

Dim a light

Physical computing - Master the challenges and experience how to connect the physical and virtual world

Easy

15 mins

from 8 years on

1What you need
- LED - potentiometer - 5 wires
2Challenge
####Clamp an adjustable resistor (potentiometer) and an LED to the Calliope mini. The LED is dimmed by turning the potentiometer.
3Solution
###Code

Electronics

LED (+/-)!

  • short leg: GND (-)
  • long leg: analog output (P2)

potentiometer

  • outer leg: GND (-)
  • middle leg: analog intput (P1)
  • outer leg: VCC (+)

This text as well as the image is published under a CC BY-SA 4.0 DE license popup: yes. It was originally published in German popup: yes by phzh popup: yes and translated into English by the Calliope team.