Microstack Accelerometer Getting started Findoutwhichwayisup Detecttaps,flicks,swishesandshakes, makea3Dmotioncontrollerordiscoverhowmuchforcehasbeen applied. BeforeusinganyMicrostackmodulealwaysreadtheinstructionsandprecautions carefully. Fitting Instructions CarefullylineupthepinsoftheMicrostackAccelerometermodulewithsocketsonthe appropriatebaseboardorstackablemodule,thengentlypushdown.TheAccelerometer 2 moduleisfittedintheblueI Csocket.Ensureeverypinplugsintoacorrespondingsocket. 2 TheAccelerometerisasocketstackablemodulemeaningthatadditional,otherblueI C modulescanbestackedontop. Hardware The jumpers should not be changed as Microstack Accelerometer is not user configurable. Installing Software Under Linux MicrostackAccelerometerisveryeasytousewiththeMicrostackNodePythonLibraries. Installing the Libraries ThisguideassumesyouareinstallingonRaspbianonaRaspberryPiconnectedtothe Internettoallowyoutodownloadpackageswithaptget. MakesureyouareusingthelastestversionofRaspbianbyopeningaterminalandtyping: sudoaptgetupdate ToinstalltheMicrostackNodelibrariesforPython3,inaterminal,typethefollowing command: sudoaptgetinstallpython3microstacknode Testing Thissectionshowshowtorunasampleprograminstalledwiththelibrariesandwalksyou throughcreatingasimplePythonprogramtoreadforces. Testing the Microstack Node Python Libraries Runthefollowingexampleprogrambytypingintoaterminal: python3 /usr/share/doc/python3microstacknode/examples/accelcat.py Whichshouldprintsomethinglikethefollowingintotheterminal: x:0.05,y:0.02,z:0.49 Asyoutwist,turnandrotatetheRaspberryPithenumbersshouldchange: