Code Monkey home page Code Monkey logo

tranode's Introduction

⚠️ instructions below are provided as-is, without warranty of any kind. See license for more info.

Tranode

image

WiFi remote-controlled car with a USB webcam built on Raspberry Pi and L293D chip for motor control. https://www.youtube.com/watch?v=lV2_LIXbDQA

image

Usage

  1. Turn on the power, wait 50 seconds for the device to boot and start the web server
  2. Connect to tranode WiFi, open your RPi IP address in the web browser e.g. http://10.42.0.1/
  3. Drive around delivering drinks πŸ§‰πŸΊπŸΌπŸΊπŸΎ
  4. When done, press Off button in the UI
  5. After 20 seconds, turn off the power

Safety

Using a powerbank instead of batteries with a step-down converter would improve the safety of this project. Power banks support charging and have short-circuit / under-voltage protection but tend to limit the current which can be a problem since this project way exceeds the standard USB 500mA limit.

image

Another safety feature would be some physical protection of the ON switch preventing accidental power-ons.

Hardware

image

image

Building steps

  • Install latest Raspbian on SD card, boot and create a user tranode with password tranode
  • Use this guide to make your Raspberry Pi broadcast a tranode WiFi network
  • Install NodeJS on your Raspberry
  • Connect USB webcam

Install mjpg-streamer

sudo apt-get install xz-utils gcc g++ cmake libjpeg9-dev
git clone https://github.com/jacksonliam/mjpg-streamer.git
cd mjpg-streamer/mjpg-streamer-experimental
make
sudo make install
sudo bash -c "echo 'LD_LIBRARY_PATH=/home/tranode/mjpg-streamer/mjpg-streamer-experimental' >> /etc/profile"
export LD_LIBRARY_PATH=/home/tranode/mjpg-streamer/mjpg-streamer-experimental

Install tranode server

cd ~
git clone https://github.com/kachurovskiy/tranode.git
cd tranode
npm install
sudo npm install -g pm2
sudo pm2 start tranode.js
sudo pm2 save

Debug

See sudo pm2 log and sudo cat /var/log/syslog for signs of potential errors.

tranode's People

Contributors

kachurovskiy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.