RpiCar

Raspberry PI & Node JS






I'm glad to share my first Iot project a car that runs on 2 servo motors


Requisite list:

-Power bank for Raspberry pi (one external for phone should do the trick with 2.1 A)
- Raspberry pi (B/B+/2/3) - I'm using 3 - You can get one from here
- 2 servo wheels - You can buy them from here


L298N Dual H-Bridge Motor Controller - You can buy from here

-Power bank max 12V for controller - I recommend this one


How to connect everything schema:





Software ... NodeJS

How to install:

Step 1:
sudo apt update
sudo apt dist-upgrade

sudo rpi-upgrade


Step 2:
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs

node -v
  • v5.....
Step 3:

create a folder and:
npm install rpio console express body-parser cors

Step 4:

go to github here

... Website
Install Lighttpd and in /var/www/html copy files from here: https://github.com/alexandru360/RpiCar/tree/master/html

Comentarii

Postări populare de pe acest blog

DevExpress Theme Changer ...