This repo is a part of the Software for Portable Devices (CS F314) course. In this project, you will take input from the GPIO pins of the Raspberry Pi, and make the TRex jump based on that.
- Install node.js (v6.x.x LTS) from https://nodejs.org/en/
- npm should also have been installed. Run
npm install npm@latest -g
to update npm to the latest version. If you get an error, trysudo npm install npm@latest -g
. - Run
git clone https://github.com/thepulkitagarwal/sdpd-t-rex-runner.git
or download a zip of that repository. cd
into the local copy of the repo on your terminal.- Run
npm install
. (Note:npm warn
is not a problem. You can go ahead with the next step.) - Run
npm start
. - Open a separate terminal,
cd
into the local copy of the repo, and runpython raspiController.py
. (You might have a problem if you are using python3 instead of python 2) - Open your browser and go to http://localhost:3000 and press space.
- The TRex should automatically jump every 0.5 seconds.
- Run
git clone https://github.com/cryst12/sdpd-t-rex-controller.git
or download a zip of this repository. cd
into the local copy of the repo on your terminal and copyraspiController.py
into a raspberry pi.