Use your Pico board and the C API to accomplish the following:
Deliverable A: Connect a potentiometer to an ADC pin on your RP Pico, use four LEDs to report the values. The potentiometer provides a range of outputs from 0V (0% turned) to maximum voltage (100% turned). Zero LEDs should be on when the potentiometer is at 0%. One LED should be on for (0%-25%] (0 excluded, 25 included), two for (25%-50%], etc.
Deliverable B: Your kit should have come with a raindrop sensor (if not, talk to the instructor to get a loaner or propose an alternate part). This has an analog output that allows you to measure the amount of water on the board. Experiment with this and use at least four LEDs to convey the amount of water reported to be on the board.
Rubric:
  • Deliverable A:
    • C code uses ADC input properly (5 points)
    • Demo (5 points)
  • Deliverable B:
    • C code uses ADC input properly (5 points)
    • Evidence of sensor calibration (e.g. group experimented with min/max values) (5 points)
    • Demo (10 points)