Skip to content

Windmolders/piJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πJS - Tobania

Code run on a GoPiGo 2 (Raspberry PI 3) to run a car trough a website ( with optional controller support ).

Project initially developed for an 24h code challenge hosted by Tobania

Authors

  • Benno Daenen
  • Jonas Windmolders
  • Sam De Boeck

Requirements

  • Raspbian ( Or another linux based OS )
  • NodeJS (6.x) + NPM
  • Git
  • WiFi (or a very long ethernet cable ;) ) -> You can use a hotspot instead of normal wifi to control the car.

Installation

Clone the project to a folder on your PI

git clone https://github.com/Windmolders/piJS.git

Install dependencies

cd client & npm install

Running the instances

From the root folder

Run server

node web/server.js

Run pi client (different process)

node client/src/pi.js

##Using the pi

Surf to the website with the IP of the pi with port '8080', eg:

127.0.0.1:8080

Secondly , fill in the IP of the bot with port 9090 to connect to it. (This is a feature to allow hosting the website on another address than the pi client.)

127.0.0.1:9090

You can now use the buttons or QZSD (AWSD) or your game controller.

Note: Control panel is build on a mobile first site focus (hold your phone sideways without screen rotation). No fancy graphics because of time challenge.

Control panel

Releases

No releases published

Packages

No packages published

Languages