0.6.0 • Published 7 years ago

pi-tank v0.6.0

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

Pi Tank

Raspberry Pi Tank, play on computer or phone, also can play with PS DualShock or scripts.

📺 Web Demo On Youtube

📺 Joystick Demo On Youtube

📺 Script Demo On Youtube

Install

# sudo npm install -g pi-tank

Play with web

$ sudo pi-tank-web [port-number: default 8080]

Open http://[your-RaspberryPi-ip]:[port-number]

Play with usb joystick

$ sudo pi-tank-joystick [USB-joystick-id: default 0]

Play with script

Create play.json

[{
    "rule": function () {
        this.break();
    }
},
{
    "rule": function () {
        this.speed(100);
    },
    "time": 3000
},
{
    "rule": function () {
        this.direction(90);
    },
    "time": 3000
},
{
    "rule": function () {
        this.direction(-90);
    },
    "time": 3000
},
{
    "rule": function () {
        this.direction(180);
    },
    "time": 3000
},
{
    "rule": function () {
        this.off();
    }
}]

Run script

$ sudo pi-tank-play play.json

L293 default wiring

l293-default-wiring

License

This project is licensed under the MIT License - see the LICENSE file for details

0.6.0

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago