Giter VIP home page Giter VIP logo

wall.e's Introduction

前言


​ 项目的灵感来自皮克斯动画《机器人总动员》的主角瓦力 [wall.e]。一个在末日的废墟中幸存并日复一日清洁着地球的可爱机器人。

​ 这是一个十分有趣的物联网项目!它运行在基于 arm 架构的 raspiberry(树莓派)开发板上。借助性能出色的 node 和多平台兼容的硬件框架johnny-five,我们创建了这个项目。 此项目包括了服务端到前端程序,开发语言选用 javascript , 功能上包括了视频监控,温度数据采集,远程遥控,距离测量,gps 定位等功能。 欢迎对物联网感兴趣的开发人员 Issues

技术栈

  • johnny-five
  • vue
  • express
  • chart.js
  • mongoDB

目标功能

  • 支持视频实时监控 (完成)
  • 支持摄像头转动(完成)
  • 支持手动控制电机运行(完成)
  • 支持温度采集(完成)
  • 支持gps定位
  • 支持距离探测
  • 支持循迹功能
  • 支持自由巡航

环境配置和依赖

  • 树莓派开发板( Raspberry Pi 3 Model B )
  • ubuntu mate16.0.4 操作系统
  • node && npm
  • MJPG-streamer

运行项目

项目下载

git clone https://github.com/zexiplus/WALL.E.git

cd WALL.E

npm install

开发模式运行web界面程序

npm run dev

// then open the browser at http://localhost:1234

生产环境运行web界面程序

npm run build

npm run local

//then open the browser at http://localhost:2999

运行服务端程序

npm run board

材料准备

模块 价格 数量
树莓派开发板 ¥200 1
履带底盘 ¥350 1
AD转换器 ¥15 1
红外传感器 ¥3 6
SG90舵机 ¥15 1
树莓派摄像头 ¥80 1
电池 ¥30 1
gps模块 ¥50 1
MPU6050集成传感器模块 ¥20 1

接线说明

接线参考图如下

接线图例

目前接入电路的模块有电机驱动模块,mpu6050 集成模块,servo 伺服电机模块,摄像头模块。

电机驱动模块接收 io 引脚发出的高低电平,输出 12v 的电压从而驱动电机。

servo 伺服电机模块用来转动摄像头,摄像头固定于伺服电机支撑的转轴上。

mpu6050 模块可以感知周边温度,测量加速度等。

由于 gps 模块的通信信道与 wifi 冲突,暂时无法引入,gps 定位会在之后的版本中完成。

本项目树莓派 io 引脚采用 wiringPi 编码,如图

raspi引脚图

接线描述:

伺服电机的信号线接树莓派开发板 1引脚(wiringPi编码,下同)

mpu6050传感器SCL接树莓派开发板 3引脚,SDA接 2引脚

电机驱动模块四个输入端分别接树莓派 21,22,23,24 引脚

项目展示

WALL.E

温度模块

视频模块

control

实物展示1 实物展示2

项目维护人

协议

GPL

wall.e's People

Contributors

zexiplus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wall.e's Issues

npm install出现错误

node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/5.0.0/serialport-v5.0.0-node-v64-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/5.0.0/serialport-v5.0.0-node-v64-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/WALL.E/node_modules/raspi-serial/node_modules/serialport/build'

你好,有问题想请教一下

1.请问这个伺服电机是哪买的,或者是什么型号,那个电机驱动模块连着的两个硬件是什么,电池吗?第一次碰硬件,不是很懂..
2.这个服务端的部分是要放到树莓派启动吗,前端访问树莓派的服务端,这样子吗

Where da robot at?

Where is the Robot?

Do you have any demo pages? I tried to install the repo as per the readme and I got this error:

npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"any","arch":"arm"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS:    any
npm ERR! notsup Valid Arch:  arm
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

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.