tone machine: an universal flat, up, turn and down

Individual Project.

Video:

tone machine: an universal flat, up, turn and down A physical installation showing linguistic tones in Mandarin in a movement of 4 tree branches. Combining nature and language, I hope we could communicate with nature directly in an abstract way. So the tone of diverse words such as “land土地” “appreciation感谢” “oxygen氧气” ”hedonism享乐” “realization领悟” “Lu Lyu吕璐” can get the same effect.

system

picture of prototype

I am using an arduino+ a raspberry Pi + a propeller. Arduino: getting distance sensor data Propeller: controlling motor Raspberry Pi: run tone recognition and control everything.

Code Source

All the code is available at this github link. here is the code source

Propeller

source code I am using a TB6600 and a 42 stepper motor with a torque of 0.42N/m. So this is the diagram for the propeller side.

picture of prototype

I also add the hall sensor to sense the movement so that everytime, the stepper motor would stop at proper position.


Arduino

source code Arduino side is really simple, I use a VL6180 to sense if anyone is approaching the microphone or not.
I cannot do this on Raspberry Pi because the sensor’s library do not have a node version.


Raspberry Pi

source code I am using node for raspberry pi and here are the node packages I used for this project.

Node

  • Mic: record the USB sound input as a new RAW file

  • Ffmpeg: convert raw to wav

  • Watson: voice recognition api for Chinese language

  • cnChar: api for turn Chinese words into tone

  • Serialport: js for serial communication with propeller to control motors

I think I am having the biggest struggle with the microphone input issue because it is hard for me to stop the stream and do another mic input. Then Pedro helped me by figuring out how to call a node inside another node.

picture of prototype

By “node mic.js” inside anther child process command, it would execute the “mic.js” file and do a recording of the microphone input.
Then ffmpeg would convert the file from .raw to .flac for watson to recognize it.
Then watson API would do voice recognation and pinyin node package would get the tone value from transcipt.
picture of prototype