Back to home

Week 8

This week, I explored input devices.

Reading input

At first, I used the Adafruit Metro with a photoresistor in order to get the hang of input devices.

The code was simple and involved using analogInput and reading in the photoresistor value then outputting to serial monitor.

Breakout board

Now to do this with my own board, I needed a breakout board for the SAMD11. I did this by adding two 2x2 headers and routing directly from some of these pins, as well as 5V and ground.

For my final project idea, I implemented a step response sketch to measure voltage change through a coil with a magnet passing through. To output to serial plotter, use "Serial.println()" with the value, and it will plot the points over time.

Tips for the week