Giter VIP home page Giter VIP logo

pimonitor's Introduction

PiMonitor

PiMonitor

+ 实现可控制的WEB视频监控器。


bilibili: https://www.bilibili.com/video/BV1rL411x7dt

Hardware

  • 树莓派4b
  • 舵机(SG90)*2
  • 摄像头(Raspberry Pi Camera)
  • 杜邦线若干

接线:

  • 摄像头接线(goooooogle
  • 舵机我分为了X轴和Y轴,X轴信号线:GPIO-23,Y轴信号线:GPIO-18;

可随意修改,注意同步 pimonitor.go 代码中舵机设置:

...
// 初始化舵机
servo.Init("16", "12", 15, 35, 10, 40)
...

贴心附上GPIO图: GPIO-Pinout-Diagram

How to run the server

  1. 【Enabling PWM output on GPIO pins】https://gobot.io/documentation/platforms/raspi/

(尽管如此也不能完美的控制舵机,不过因摄像头排线的问题只能在一个合理范围角度内转动,这目前测试下来还是没有出什么问题的。

  1. 编译 && 启动服务
$ git clone https://github.com/Buzz2d0/PiMonitor.git
$ cd PiMonitor
$ make start

Usage

默认用户名密码: admin:admin

用浏览器访问 http://[your-raspberry-pi-ip]:8000 登陆后,可以查看实时视频画面(PC端下使用方向键控制舵机)。

TODO

  • 触摸屏下虚拟按键控制舵机

pimonitor's People

Contributors

ac0d3r 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.