You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jamie Munro d0d7bf88da README 2 years ago
assets Gallery implemented 2 years ago
gallery release ready 2 years ago
outlets release ready 2 years ago
routes release ready 2 years ago README 2 years ago
index.html Gallery implemented 2 years ago
package-lock.json Gallery implemented 2 years ago
package.json Gallery implemented 2 years ago
server.js Gallery implemented 2 years ago



  1. Install Raspberry Pi OS on Pi and connect to internet
  2. Connect DHT11 to GPIO Pin 4
  3. Connect Outlet 1 LED to GPIO Pin 17
  4. Connect Outlet 2 LED to GPIO Pin 27
  5. Connect Outlet 3 LED to GPIO Pin 22
  6. Connect IN1, IN2, IN3 and IN4 of Stepper Driver to GPIO pins 6, 13, 19, 26 respectively
  7. Connect Stepper Motor to Stepper Driver
  8. Conect Webcam to USB port on Pi
  9. Mount Webcam on stepper motor


  1. Install Node.js and NPM (node package manager):
    sudo apt-get install node npm
  2. Install GStreamer and dependencies:
    sudo apt-get install libx264-dev libjpeg-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-ugly gstreamer1.0-tools gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5
  3. Run GStreamer at least once so it can complete setup:
  4. Install phantomJS and dependencies from unofficial raspberry pi build here:
  5. Clone the reptilecam repo to the pi (or copy the src directory):
    git clone
  6. Install npm dependencies: npm install


Run the server from the root of the git repo with:
sudo node server.js
Note that you must be root in order to use software PWM.


You can access the reptilecam from port 3000. If the hostname of your pi is 'reptilecam' the adress will be http://reptilecam:3000.