Leap Motion Controller [S179]




https://www.youtube.com/watch?v=m4MkrRUPm1o


* Specs

Leap Motion 3D Somatosensory controller mouse Gesture Motion Control for PC or MAC Brand New FreeShipping


Features:

The Leap Motion Controller senses your hands and fingers and follows their every move.

It lets them move in all that wide-open space between you and your computer. So you can do almost anything without touching anything

It's the tiny device that just might change the way you use technology.

It's a super-wide 150° field of view and a Z-axis for depth. That means you can move your hands in 3D, just like you do in the real world.

The Leap Motion Controller can track your movements at a rate of over 200 frames per second.


Package Includes:

1, Leap motion Controller

2, 2 custom-length USB 2.0 cables

3, Welcome card

4, Important Information guide


Minimum System Requirements:

Windows 7 or 8 or Mac OS X 10.7

AMD PhenomTM II or Intel® CoreTM i3 / i5 / i7 Processor

2 GB RAM

USB 2.0 port

Internet connection


* Contents

Basic Leap Motion Test.

Posted by RDIoT
|

Mini Infrared PIR Motion Sensor (HC-SR505) [S055]



https://www.youtube.com/watch?v=v9lOgEYHBlk


*GitHub https://github.com/rdiot/rdiot-s055.git



* Specs

Operating temperature range: -20℃~+70℃

Working voltage: DC 5V~9V

Working current: 5mA

Static current: <50uA

Output high voltage: 4V

Out type: High/low level

Retention time of high level output: 20 secs

Detective range: 2~3m (Normal)

Detective angle: <140°

Triggering method: repeated triggering

PCB Dimension: 27mm x12mm


* Contents

- Connect

-  ----- GND

out ----- D2

+ ----- 5V


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

int pin = 2;

int count = 0;

int led = 13;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  pinMode(pin,INPUT);

  pinMode(led,OUTPUT);

 

  delay(1000);

 

  lcd.clear();

}

 

void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("S055:mini PIR");

 

  int val = digitalRead(pin);

 

  lcd.setCursor(0,1);

  lcd.print("val=" + (String)val + "  ");

 

 

  lcd.setCursor(0,2);

  lcd.print("count=" + (String)count + " sec  ");

  

  if(val == 1)

  {

    digitalWrite(led, HIGH);

    count++;

  }

  else

  {

    digitalWrite(led, LOW);

    count = 0;  

  }

  delay(1000);

}

'2) Sensor > PIR_Motion' 카테고리의 다른 글

PIR Motion Sensor (HC-SR501) Delay Control [S010]  (0) 2016.09.08
Posted by RDIoT
|

PIR Motion Sensor (HC-SR501) Delay Control [S010]



- Delay Control : https://www.youtube.com/watch?v=wF7I4zXJE9Y



- H(Repeat Trigger) : https://www.youtube.com/watch?v=IUh-8-ZBjNA


*GitHub : https://github.com/rdiot/rdiot-s010.git


* Specs

Voltage: 5V – 20V

Power Consumption: 65mA

TTL output: 3.3V, 0V

Delay time: Adjustable (.3->5min)

Lock time: 0.2 sec

Trigger methods: L – disable repeat trigger, H enable repeat trigger

Sensing range: less than 120 degree, within 7 meters

Temperature: – 15 ~ +70

Dimension: 32*24 mm, distance between screw 28mm, M2, Lens dimension in diameter: 23mm


* Contents

- DataSheet : https://www.mpja.com/download/31227sc.pdf


- Key Code

int pirPin = A0; //PIR

int ledPin = 13; //LED 

int val;

int val2; // Counter & DelayTime

 

void setup() {

  Serial.begin(9600);

  pinMode(pirPin, INPUT); 

  pinMode(ledPin, OUTPUT);

}

 

void loop() {    

  val = digitalRead(pirPin); //read state of the PIR

  Serial.print("PIR Value=" + (String)val);

  Serial.print(",Delay Count=" + (String)val2);

  Serial.println(",Delay Time=" + (String)(val2*0.1) + "sec");

 

if (val == LOW) {

  digitalWrite(ledPin, LOW);  

  val2 = 0;

}

else {

  digitalWrite(ledPin, HIGH);

  val2++;

}

delay(100);

}

'2) Sensor > PIR_Motion' 카테고리의 다른 글

Mini Infrared PIR Motion Sensor (HC-SR505) [S055]  (0) 2016.09.08
Posted by RDIoT
|