Stomp Sense
THIS week was about reading in data from a sensor to a computer and doing something with it. With lots of help from Dan Chen, my elephant-foot-in-the-making coupled via node.js to javascript hosted in a browser window. We were able to scale an elephant foot in proportion to the sensor reading. Summary: many exciting terminal commands and software installations. Here was the final result:
We needed to install node.js and npm (node packet manager). A good tutorial is here.
Once this was done, we adapted code found in github repository entitled 'serial to socketio master' to generate a elephant foot that dynamically scales in response to the magnitude of the piezo reading. This creates an impression of a stomp whenever the sensor is tickled.