lpy 发布的文章

ArduinoServer

Arduino MEGA2560传感器: DHT11,GP2Y10(Sharp)网络: HLK-M03(透明串口,连接Arduino的Com3)其他:VoltageChecker电压检测/*Sharp pin 1 (V-LED) => 5V (with a resistance of 150 Ohm) Sharp pin 2 (LED-GND) => Arduino GND pin Sharp pin 3 (LED) => Arduino pin 2 Sharp pin 4 (S-GND) => Arduino GND p...

Continue Reading...

Sharp Dust Sensor and Arduino

Sharp Dust Sensor and Arduino   Sharp’s GP2Y1010AU0F is an optical air quality sensor, designed to sense dust particles. An infrared emitting diode and a phototransistor are diagonally arranged into this device, to allow it to detect the reflected light of dust in air. It is esp...

Continue Reading...

lighttpd+cgi方式测试

安装lighttpd,phpsudo apt-get install lighttpd php5 php5-cgi配置lighttpdsudo vi /etc/lighttpd/lighttpd.conf增加cgi模块server.modules = (        "mod_access",        "mod_alias",     &nb...

Continue Reading...

RaspberryPi控制继电器

 继电器使用的GPIO为GPIO6(官方),6(wiringPi),对应针脚22。RPi版本为第一版。#include <wiringPi.h>#include <stdlib.h>#include "pub.h"int main(){        int rev = GetRPiRev();        printf("###### | RPi rev=%d\n&quo...

Continue Reading...