Documentation 13

// Progress: Setting up p5, refining the arduino codes


This week I continue refining the code for the LED and the motor. I changed the motor library from the stepper one that is originally included in IDE to AccelStepper and it worked way better. Here is the outcome:

video 13.1 stepper motor and LED moving according to the heartbeat



I also tried adding a button in order to reset the stepper motor back to its original point everytime one participant has done the activity. Yet the speed is not very fast and I need to change the pushbutton to a toggle switch so the person don’t need to hold it to reset.


vid 13.2 reset button

After playtesting last week, one great advice I got from the class is to spread out the instructions so people can follow it one by one. I thus decide to display the instructions on the screen once people have their fingers on it. Here is how it works:
vid 13.3 p5 displaying instructions
 



For the container to hold the sensor and the toggle, I am thinking of attaching them on a rubber ring instead of on the board so the people can wear it instead of having their hands constantly attach to it (it almost cause my finger cramp after many times of playtesting...)

fig 13.1 a rubber ring to hold the sensor and the switch