I took a few different approaches to tackling this week's assignment.
First, I wrote an arduino program that interfaces the input and outputs for my final project, allowing a user to trigger a set of red LEDs to illuminate by introducing a signficant impact force from an accelerometer. Specifically: shake the board with the accelerometer on it, and the lights will turn on.
Then, because I wasn't sure whether we had to have a digital interface as well, I set out to create the simplest interface possible that would interact with my SAMD21 devkit board. I used TA Leo's files to do this, available here: github.com/leomcelroy/fab-notes/
The goal for my final project is to cause a set of LEDs to light up red if a digital egg "breaks," meaning if it experiences enough force on impact that a real egg would break if dropped from the same height.
This means that my accelerometer must communicate with my LEDs.
In order to achieve this, I wrote some code in Arduino (with Quentin's help). I included the appropriate libraries, and used an if/then function to trigger the LEDs to pulse with a glow effect when the accelerometer's linear acceleration registered above a specific (relatively arbitrary for now) threshold.
I originally had extremely limited time this week, so here's the quick version of what I did initially:
created with
Website Builder .