Week 7
7-1
(1) Halloween Project Document
https://hank.super.site/physical-computing/week-4567
︎︎︎ My teammate made a really great dicument here! ︎︎︎
About how to do it
We use one audio sensor for input, to trigger two reactions at the same time, which iaresound and a movement (by Dfplayer and the Servo motor.)
And this is the coding part
For DFplayer:
We found that dfplayer module works well on Uno, but it seems difficult to control on Nano. This is how I use it on a Uno board.
Include a library first, and I have some old version library here.
( I am not sure which is correct, so you can try it and let me know! )
( Than, setect the file you download )
Some video for using DFplayer on Nano here:
https://www.youtube.com/watch?v=jyQQi-ay8cs
︎︎︎ My teammate made a really great dicument here! ︎︎︎
About how to do it
We use one audio sensor for input, to trigger two reactions at the same time, which iaresound and a movement (by Dfplayer and the Servo motor.)
And this is the coding part
For DFplayer:
We found that dfplayer module works well on Uno, but it seems difficult to control on Nano. This is how I use it on a Uno board.
Include a library first, and I have some old version library here.
( I am not sure which is correct, so you can try it and let me know! )
( Than, setect the file you download )
Some video for using DFplayer on Nano here:
https://www.youtube.com/watch?v=jyQQi-ay8cs
Week 7
7-2
Lab Activities
Read or view the following material and come to next class with questions:
- Asynchronous Serial Communication: The Basics
- Interpreting Serial Data
- p5.serialport and p5.webserial Compared
- Lab: Intro to Asynchronous Serial Communications
- Lab: Serial Input to P5.js using WebSerial
- Lab: Serial Output From P5.js using WebSerial
Related Videos. These cover the same material as the notes above:
- Introduction to Serial Communication
- Serial Communication Under the Hood
- Reading Serial input on an Arduino
- Devices and Bytes: ASCII vs Binary
- Serial Output from Arduino to p5.js (note: this video refers to the p5.serialport library, not p5.webserial)
- Reading Multiple Values from a Serial String
- You may find this series of videos on debugging useful in general.
Readings
The following readings provide some context for thinking about physical interaction design. You won’t be quizzed on whether you’ve read these, but your instructor may refer to these ideas in future class discussions.
Sarah Hendren, All Technology is assistive
Shelly Zalis on Designing Prosthetics That Give Female Veterans Confidence