Final Project Milestone 3 – Ding Xu
1. GPIO control board soldering
In order to use GPIO of RPI for digital signal control, I built a control protoboard with two switches and two push buttons connecting a pull-up/pull-down registers respectively. A female header was used to connect the GPIO of RPI to get the digital signal.
In RPI, I used the library WiringPi for GPIO signal reading. After compiling this library and include the header files, three easy steps are used to read the data from digital pins: (1). wiringPiSetup() (2). set up pinmode: PinMode(GPIOX,INPUT) and (3). digitalRead(GPIOX) or digitalWrite(GPIOX)
2. software design
In openframeworks, I used the library Sndfile for recording and ofSoundPlayer for sound output. There are two modes: capture and play. Users are expected to record as many as sounds in their lives and take an image each time recording a sound. Then in the play mode, the camera will capture a surrounding image and the sound tracks of similar images will be played. The software workflow is as follows:
Capture:
Play:
3. system combination
Connecting the sound input/output device, RPI, singal control board and camera, the system is as follows: