'RDIoT Demo'에 해당되는 글 354건

  1. 2016.09.09 Knock sensor module (KY-031) [S040]
  2. 2016.09.09 Vibration switch module (KY-002) [S039]
  3. 2016.09.08 YARD Stick One Sub-1 GHz [B082]
  4. 2016.09.08 DVB-T + DAB + FM RTL2832U + R820T2 (R820T2,RTL2832U) [B081]
  5. 2016.09.08 100Khz-1.7GHz RTL SDR + Upconverter (2832U,R820T) [B079]
  6. 2016.09.08 RF Upconverter For SDR [B069]
  7. 2016.09.08 HackRF One (HackRF-ONE,ANT500) [B028]
  8. 2016.09.08 Round Force Sensing Resistor (FSR402) [S031]
  9. 2016.09.08 Leap Motion Controller [S179]
  10. 2016.09.08 Mini Infrared PIR Motion Sensor (HC-SR505) [S055]
  11. 2016.09.08 PIR Motion Sensor (HC-SR501) Delay Control [S010]
  12. 2016.09.08 RPI-1031 Angle Sensor Four Direction Sensor (RPI-1031) [S183]
  13. 2016.09.08 Tilt Switch Module (KY-020) [S050]
  14. 2016.09.08 Mini Mercury Switch Module (KY-017) [S049]
  15. 2016.09.08 Tilt SW-520D Sensor (SW-520D) [S067]
  16. 2016.09.08 Tilt SW-200D Sensor (W-200D) [S051]
  17. 2016.09.08 Ultrasonic Ranging Module (HC-SR04) [S011]
  18. 2016.09.08 ML8511 UV Sensor (GYML8511) [S083]
  19. 2016.09.08 Load CDS sensor type values into DB by calling server API [P001]
  20. 2016.09.08 Auto On Off Photo Switch (AS-10-220) [S157]
  21. 2016.09.08 BH1750 Digital Light intensity Sensor Module (GY-302) [S085]
  22. 2016.09.08 Photo Resistor Module (KY-018) [S002]
  23. 2016.09.08 Mini Photocell (FIT0180) [S001]
  24. 2016.09.08 CDS5MM~CDS20MM Value [S003~S006]
  25. 2016.09.07 Temperature and humidity DHT22 (DHT22) [S063]
  26. 2016.09.07 Wind Speed Sensor 0~5V Voltage Type (JL-FSX2) [S163]
  27. 2016.09.07 G1/2 Water Flow Sensor (SEN-HZ21WA) [S135]
  28. 2016.09.07 Water Level Sensor v1.0 [S094]
  29. 2016.09.07 Raindrops Detection Sensor Modue (FC-37) [S072]
  30. 2016.09.07 Water Level Sensor [S028]

Knock sensor module (KY-031) [S040]



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


*GitHubhttps://github.com/rdiot/rdiot-s040.git


* Specs

13 knock sensor module and a digital interface, built-in LED build a simple circuit to produce percussion flasher. 13 Interface comes with digital LED, will knock sensor connected digital 3 interface, when percussion sensor senses Measure To percussive signals, LED flashing light.


* Contents

- Connect

S ----- D3

middle ----- 5V

- ----- GND



- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

int pin = 3;

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

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  pinMode(pin,INPUT);

  delay(1000);

 

  lcd.clear();

}

 

void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("S040:Knock sensor");

 

  int vibration = digitalRead(pin);

 

  lcd.setCursor(0,1);

  lcd.print("digital=" + (String)vibration + "  ");

 

  if(vibration == LOW)

  {

    lcd.setCursor(0,2);

    lcd.print("knock=detected");

  }

  else{

    lcd.setCursor(0,2);

    lcd.print("knock=NONE    ");

  }


  delay(500)

}

Posted by RDIoT
|

Vibration switch module (KY-002) [S039]



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


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


* Specs

This switch is OFF in the resting state, when the external force to touch and to achieve a proper vibration, meet the appropriate speed or from the (partial) heart, conductive pin will momentarily conduction (ON) status, make changes in electric property, and disappear when the external force electric property open (OFF) state is restored

Omnidirectional, any Angle can trigger job

Component model: SW-18015P



* Contents

- Connect

S ----- D2

middle ----- 5V

- ----- GND

 

- Key Code

int pin = 2;

int vibration = digitalRead(pin);


  if(vibration == LOW)

  {

    lcd.setCursor(0,2);

    lcd.print("vibration=detected");

    delay(100);

  }

  else{

    lcd.setCursor(0,2);

    lcd.print("vibration=NONE    ");

  }

Posted by RDIoT
|

YARD Stick One Sub-1 GHz [B082]



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


* GitHubhttps://github.com/rdiot/rdiot-b082.git


* Specs

YARD Stick One is a sub-1 GHz wireless transceiver IC on a USB dongle. Based on the Texas Instruments CC1111, it features:

half-duplex transmit and receive

official operating frequencies: 300-348 MHz, 391-464 MHz, and 782-928 MHz

unofficial operating frequencies: 281-361 MHz, 378-481 MHz, and 749-962 MHz

modulations: ASK, OOK, GFSK, 2-FSK, 4-FSK, MSK

data rates up to 500 kbps

Full-Speed USB 2.0

SMA female antenna connector (50 ohms)

software-controlled antenna port power (max 50 mA at 3.3 V)

low pass filter for elimination of harmonics when operating in the 800 and 900 MHz bands

GoodFET-compatible expansion and programming header

GIMME-compatible programming test points

open source


* Contents

1. Install in Linux

# wget https://bitbucket.org/atlas0fd00m/rfcat/downloads/rfcat_150225.tgz

# tar zxvf rfcat_150225.tgz

# cd rfcat_150225

# sudo apt-get install python-usb

# sudo python setup.py install

# sudo rfcat -r


2. Running RfCat

root@host:/dev_store/rfcat_150225# sudo rfcat -r

RfCat, the greatest thing since Frequency Hopping!'

Research Mode: enjoy the raw power of rflib


currently your environment has an object called "d" for dongle.  this is how 

you interact with the rfcat dongle:

    >>> d.ping()

    >>> d.setFreq(433000000)

    >>> d.setMdmModulation(MOD_ASK_OOK)

    >>> d.makePktFLEN(250)

    >>> d.RFxmit("HALLO")

    >>> d.RFrecv()

    >>> print d.reprRadioConfig()



>>> print d.reprRadioConfig()

== Hardware ==

Dongle:              YARDSTICKONE

Firmware rev:        0348

Bootloader:          CC-Bootloader


== Software ==

rflib rev:           323


== Frequency Configuration ==

Frequency:           901999877.929688 hz (0x259555L)

Channel:             0

Intermediate freq:   281250 hz

Frequency Offset:    0 +/-

Est. Freq Offset:    18


== Modem Configuration ==

Modulation:          2FSK

DRate:               38360.595703 hz

ChanBW:              93750.000000 hz

DEVIATION:           20507.812500 hz

Sync Mode:           15 of 16 bits must match

Min TX Preamble:     4 bytes

Chan Spacing:        199951.171875 hz

BSLimit:             No data rate offset compensation performed

DC Filter:           enabled

Manchester Encoding: disabled

Fwd Err Correct:     disabled


== Packet Configuration ==

Sync Word:           0x0C4E

Packet Length:       255

Length Config:       Fixed Packet Mode

Configured Address:  0x0

Preamble Quality Threshold: 4 * 2

Append Status:       No

Rcvd Packet Check:   No address check

Data Whitening:      off

Packet Format:       Normal mode

CRC:                 disabled


== AES Crypto Configuration ==

AES Mode:            CBC - Cipher Block Chaining

Crypt RF Input:      off

Crypt RF Output:     off


== Radio Test Signal Configuration ==

TEST2:               0x88

TEST1:               0x31

TEST0:               0x9

VCO_SEL_CAL_EN:      0x0


== Radio State ==

     MARCSTATE:      MARC_STATE_RX (d)

     DONGLE RESPONDING:  mode :d, last error# 1


== Client State ==

========================================================================================

     client thread cycles:      336/13

     client errored cycles:     0

     recv_queue:                (0 bytes) ''

     trash:                     (3 blobs) "[128, 142, (1461761463.730662, '')]"

     recv_mbox                  (2 keys)  "['0x42', '0xff']"

       app 0x42 (2 records)

             [0x1]    (3 frames)  "[('B\x01\xff\x00#\xe2_O4\xfd\xc4[\xad\x7f\xd6\x01}[\xb5_\xbc*66r:+\x83$\xe7\xb2\xfe\"

             [0x7]    (0 frames)  "[]"


       app 0xff (4 records)

             [0x88]    (0 frames)  "[]"

             [0x80]    (0 frames)  "[]"

             [0x82]    (0 frames)  "[]"

             [0x86]    (0 frames)  "[]"

 

 

>>> d.setFreq(315060000)

>>> d.setMdmModulation(MOD_ASK_OOK)

>>> d.setMdmDRate(int(1.0/0.000550))

>>> d.RFxmit("\x8E\xE8\xE8\x88\x88\xE8\x88\x88\x00\x00\x00" * 40) 

Posted by RDIoT
|

DVB-T + DAB + FM RTL2832U + R820T2 (R820T2,RTL2832U) [B081]




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



* Specs

R820T2+RTL2832U chip

Support SDR

Support DAB;

Support FM;

Support DVB-T;

Watch and record digital terrestrial TV on PC or Laptop;

Full DVB-T bandwidth reception (6/7/8 MHz)

Digital TV recording and playback as DVD quality;

Remote control;

Support Windows 2000/XP/Vista/WIN7;

Support both MPEG-2, MPEG-4(H.264) encoding; 

 

Package Included:

1x DVB-T

1x Antenna

1x Remote Control


* Contents

FM RTL2832U RTL2832U Basic Test FM Radio

Posted by RDIoT
|

100Khz-1.7GHz RTL SDR + Upconverter (2832U,R820T) [B079]




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


* Specs

1. Can be used to test signals receiving from VHF/UHF band

2. The receiving signal strength which received from VHF/UHF is not the best. It can be used to receive the nearby signals (eg. FM broadcasting radio or other Hand-held radios). To achieve the best effect, you need to connect associated antennas Cannot be used to receive HF signal band

3. To achieve the best effect, you need to connect associated HF antennas such as Long Wire , Random Wire, Dipole etc.


Functions:

Fully assembled and ready to use

Uses RTL2832U+R820T chip set

100KHz to 1766MHz, operating frequency

Covers all HF amateur bands

Covers VHF & UHF bands from 24-1766MHz

Up to 3.2 M Sample rate. (~2.8 MHz stable)

Receiver modes AM, NFM, FM, DSB, USB, LSB and CW

Note: depends upon the SDR software used with the receiver

8-bit ADC giving ~50 dB dynamic range

50 Ohm input impedance

Double SMA golden antenna connectors

Diode protection on RF input

Aluminum panels

LED power and band indication

40MHz local oscillator for HF conversion

DBM balance ring mixer

Small size board

Free software

Independent antenna inputs for Shortwave and VHF

USB computer connection ( mini usb) Powered by common USB

Very High dynamic range receiver

SPDT High Power UltraCMOS RF Switch

Accurate and efficient band filters

Very clean audio reception

All specifications subject to change without notice


* Contents

RTL SDR + Upconverter Basic Test FM Radio

Posted by RDIoT
|

RF Upconverter For SDR [B069]



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


* Specs

Features:

Female SMA for both input and output for a wide array of connectivity options

In-line SMA connectors.  Much easier to connect and manipulate than side-by-side SMA connectors

Antenna protection on RF input; in-circuit in both enable and passthrough mode

Solely high-quality components used in the RF signal path

Powered by common USB-B USB for a multitude of power options

RF-suitable power supply regulation (TPS79333)

PTC fuse on USB power input to protect your upconverter from short circuits

Upconverter enable/passthrough toggle switch--less fiddling with small, delicate cables and connectors

Socketed oscillator for a simple upgrade path

Stable 25ppm oscillator included

LO disabled in passthrough mode

High-quality 2-layer PCB with ENIG finish

Fully assembled and ready to use

Designed to fit standard off-the-shelf Hammond enclosures

2 mounting holes for standard PC screws

Designed and manufacturered in conjunction with Opendous Inc., an excellent open-hardware design company

Full project documentation--schematics, PCB design files, assembly information--is freely available (see link above).  DIY'ers rejoice!  We will have a limited number of bare PCBs available for those who want to 'roll their own'

A portion of the proceeds from your purchase will be used to support this and other open-hardware, open-source initiatives

 

Operation:

Before operating your unit for the first time, and every time you run with a new SDR, we recommend running the tuning procedure located here.  It is not a mandatory procedure but may help fine-tune your, erm. tuning.  Pop the included oscillator into its socket and you are ready to go!

Operating the unit is very simple:

Connect your antenna to the RF input

Connect your SDR to the IF output

Ensure your toggle switch is in the enable position

Plug your USB power source into the USB-B USB jack

Fire up your favorite SDR software.  Tune to 125MHz (+/- the tuning offset from the tuning procedure) + your desired frequency and enjoy!


* Contents

RF Upconverter Test with HackRF One



Posted by RDIoT
|

HackRF One (HackRF-ONE,ANT500) [B028]




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


* Specs

10 MHz to 6 GHz operating frequency 

Half-duplex transceiver

Up to 20 million samples per second

8-bit quadrature samples (8-bit I and 8-bit Q)

Compatible with GNU Radio, SDR#, and more

Software-configurable RX and TX gain and baseband filter

Software-controlled antenna port power (50 mA at 3.3 V)

SMA female antenna connector

SMA female clock input and output for synchronization

Convenient buttons for programming

Internal pin headers for expansion

Hi-Speed USB 2.0

USB-powered

Open source hardware


* Contents

Hack RF Basic Test


- Airspy Lib : https://github.com/airspy/host/

- SDR Sharp Download : http://airspy.com/download/

- Source Code : https://sourceforge.net/projects/hackrf/files/

- Git Source : https://github.com/mossmann/hackrf

- Great Scott Gadgets : http://greatscottgadgets.com/hackrf/

Posted by RDIoT
|

Round Force Sensing Resistor (FSR402) [S031]

 


 

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


*GitHubhttps://github.com/rdiot/rdiot-s031.git

 

* Specs
Actuation force as low as 0.1N and sensitivity range to 10N.
Easily customizable to a wide range of sizes
Highly repeatable force reading; as low as 2% of initial reading with repeatable actuation system
Cost effective
Ultra thin; 0.45mm
Robust; up to 10 million actuations
Simple and easy to integrate

 

* Contents
- Connect
Right ----- 5V
Left ----- P10K ---- GND
             A0 

 

- Key Code
int fsrAnalogPin = A0; // FSR pin Analog 0
int fsrValue; 
 
fsrValue= analogRead(fsrAnalogPin);
float voltage = fsrValue* (5.0 / 1023.0);
 
lcd.print("Volt=" + (String)voltage + " ");

Posted by RDIoT
|

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
|

RPI-1031 Angle Sensor Four Direction Sensor (RPI-1031) [S183]



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


*GitHubhttps://github.com/rdiot/rdiot-s183.git


* Specs

1. Optical principle: There are one infrared LED and two photosensitive triode receiver and a cylindrical shade inside as picture.

2. The status of RPI-1031 is controlled by cylindrical shade between infrared LED and receiver.

3. AS show,infrared is blocked.So two receivers can not receive signal.So sensor's status is OFF as low level and both output low level.

4. AS show,one receiver is blocked so it can receive signal and it output low level.Otherside,another receiver's status is ON,so it output high level.

5. AS show,LED or receiver are not blocked both,so output two high level.


* Contents

- Connect

5V ----- 5V

S1 ----- D2

S2 ----- D3

GND ----- GND


' LED

TOP ----- D8

RIGHT ----- D9

BOTTOM -----  D10

LEFT ----  D11



- Key Code

//For the RPI-1031 - http://www.sparkfun.com/products/10621

int tilt_s1 = 2;

int tilt_s2 = 3;

int led_top = 8;

int led_right = 9;

int led_bottom = 10;

int led_left = 11;


void setup(){

 pinMode(tilt_s1, INPUT);

 pinMode(tilt_s2, INPUT);

 pinMode(led_top, OUTPUT);

 pinMode(led_right, OUTPUT);

 pinMode(led_bottom, OUTPUT);

 pinMode(led_left, OUTPUT);

  

 Serial.begin(9600);

}

void loop(){

  int position = getTiltPos();

  Serial.println(position);

  //top

  if(position == 0)

  {

    digitalWrite(led_top, HIGH); 

    digitalWrite(led_right, LOW);

    digitalWrite(led_bottom, LOW);

    digitalWrite(led_left, LOW);

  }

  //right

  else if(position == 2)

  {

    digitalWrite(led_top, LOW); 

    digitalWrite(led_right, HIGH);

    digitalWrite(led_bottom, LOW);

    digitalWrite(led_left, LOW);

  }

  //left

  else if(position == 1)

  {

    digitalWrite(led_top, LOW); 

    digitalWrite(led_right, LOW);

    digitalWrite(led_bottom, LOW);

    digitalWrite(led_left, HIGH);

  }

  //bottom

  else if(position == 3)

  {

    digitalWrite(led_top, LOW); 

    digitalWrite(led_right, LOW);

    digitalWrite(led_bottom, HIGH);

    digitalWrite(led_left, LOW);

  }  

  delay(200); //only here to slow down the serial output

}


int getTiltPos(){

   int s1 = digitalRead(tilt_s1);

   int s2 = digitalRead(tilt_s2);

   return (s1 << 1) | s2; //bitwise math to combine the values

}

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

Tilt Switch Module (KY-020) [S050]  (0) 2016.09.08
Mini Mercury Switch Module (KY-017) [S049]  (0) 2016.09.08
Tilt SW-520D Sensor (SW-520D) [S067]  (0) 2016.09.08
Tilt SW-200D Sensor (W-200D) [S051]  (0) 2016.09.08
Posted by RDIoT
|

Tilt Switch Module (KY-020) [S050]



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


*GitHubhttps://github.com/rdiot/rdiot-s050.git


* Specs

Tilt sensor

Working voltage: 3.3V~5V

Digital Switch Output (0 & 1)

High sensitivity

With fixed bolt hole for easy installation

Works with Official Arduino Boards

Forum link: https://www.facebook.com/123Neonado

Material: PCB

Dimensions: 25 x 16 x 8 mm / 0.98 x 0.63 x 0.31 inch

Weight: 1 g / 0.04 oz

Color: Black


* Contents

- Connect

S ----- D2

middle ----- 5V

- ----- GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

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

 

int pin = 2;

int val = digitalRead(pin);

 

  if(val == LOW)

  { 

    lcd.setCursor(0,2);

    lcd.print("Tilt CLOSE");

  }

  else

  {

    lcd.setCursor(0,2);

    lcd.print("Tilt OPEN ");  

  }

Posted by RDIoT
|

Mini Mercury Switch Module (KY-017) [S049]



https://www.youtube.com/watch?v=TzuxDa6xQ-g


*GitHubhttps://github.com/rdiot/rdiot-s049.git


* Specs

Working voltage: 3.3V~5V

digital switch output (0 & 1)

High sensitivity

With fixed bolt hole for easy installation

Works with Official Arduino Boards

Application: For Arduino DIY project

Forum link: https://www.facebook.com/123Neonado

Material PCB

Dimensions: 31 x 15 x 8 mm / 1.22 x 0.59 x 0.31 inch

Weight: 2 g / 0.07 oz

Color: Black


* Contents

- Connect

- ----- GND

middle ----- 5V

S ----- D2


- Key Code

int pin = 2;

int val = digitalRead(pin);


  if(val == LOW)

  { 

    lcd.setCursor(0,2);

    lcd.print("Tilt CLOSE");

  }

  else

  {

    lcd.setCursor(0,2);

    lcd.print("Tilt OPEN ");  

  }

Posted by RDIoT
|

Tilt SW-520D Sensor (SW-520D) [S067]



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


*GitHubhttps://github.com/rdiot/rdiot-s067.git


* Specs

Max voltage : 20V 

Max current : 0.3A


* Contents

- Connect

1 ---- 5V

2 ----- R220 ----- D2

           ------ GND


- Key Code

int pin = 2;

int val = digitalRead(pin);


if(val == LOW)

  lcd.setCursor(0,2);

  lcd.print("Tilt CLOSE");

}

else

{

  lcd.setCursor(0,2);

  lcd.print("Tilt OPEN ");  

}

Posted by RDIoT
|

Tilt SW-200D Sensor (W-200D) [S051]



https://www.youtube.com/watch?v=Awp-0iWdAm4


*GitHubhttps://github.com/rdiot/rdiot-s051.git


* Specs

the switch using metal manufacturing, electrical characteristics and mercury switches are similar but not the risk of mercury switches and environmental issues, while shaking unidirectional conducting the same characteristics, the assembly of the use of more convenient and safe;

Operating Characteristics: Switch in the stationary state, as shown in Figure (ON) side below the level of 15 degrees, the switch is in the ON state; when (OFF) side below the level of 15 degrees, the switch is in the OFF state; when achieved by external shaking shaking force, or set the conduction angle, the conductive pin electrical characteristics will produce short or continuous conduction.

when the electrical characteristics of the open state to be restored (OFF) when the switch is set to the environment must be static, and the (OFF) is set to be lower than the level of the open end angle;

the switch all materials are manufactured using environmentally friendly raw materials, in line with ROHS requirements;

when the switch below the horizontal angle of 15 degrees, shaking hard trigger conduction;

the trigger switch for low current circuit, does not apply when the power switch;

this switch is a sealed package, dustproof and waterproof.

The switch is lacoste type better than the single bead type conduction effect


Maximum operating voltage (Vmax): 12V

Maximum operating current (Imax): 2mA

Open resistance: greater than 10M

Resistance: less than 5 ohm

Ambient temperature: less than 100 degrees

Life: 500,000 times


* Contents

- Connect

1 ---- 5V

2 ----- R220 ----- D2

           ------ GND


- Key Code

int pin = 2;

int val = digitalRead(pin);


if(val == LOW)

  lcd.setCursor(0,2);

  lcd.print("Tilt CLOSE");

}

else

{

  lcd.setCursor(0,2);

  lcd.print("Tilt OPEN ");  

}

Posted by RDIoT
|

Ultrasonic Ranging Module (HC-SR04) [S011]



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


*GitHubhttps://github.com/rdiot/rdiot-s011.git


* Specs

Working Voltage DC 5 V

Working Current 15mA

Working Frequency 40Hz

Max Range 4m

Min Range 2cm

MeasuringAngle 15 degree

Trigger Input Signal 10uS TTL pulse

Echo Output Signal Input TTL lever signal and the range in proportion

Dimension 45*20*15mm


* Contents

VCC - 5V

Trig - D8 

Echo - D9

GND - GND


- Key Code

#include "U8glib.h"

U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);


const int TriggerPin = 8; //Trig pin

const int EchoPin = 9; //Echo pin

long Duration = 0;

long Distance_mm = 0;


void setup() {

  pinMode(TriggerPin, OUTPUT); // Trigger is an output pin

  pinMode(EchoPin, INPUT); // Echo is an input pin

  Serial.begin(9600); // Serial Output

}


void loop(void) {

  digitalWrite(TriggerPin, LOW);

  delayMicroseconds(2);

  digitalWrite(TriggerPin, HIGH); // Trigger pin to HIGH

  delayMicroseconds(10); // 10us high

  digitalWrite(TriggerPin, LOW); // Trigger pin to HIGH


  Duration = pulseIn(EchoPin, HIGH); // Waits for the echo pin to get high

  Distance_mm = Distance(Duration); // Use function to calculate the distance


  Serial.print("Distance = "); // Output to serial

  Serial.print(Distance_mm);

  Serial.println(" mm");


  // picture loop

  u8g.firstPage();  

  do {

    draw();

  } while( u8g.nextPage() );

  // rebuild the picture after some delay

  delay(500);

}


long Distance(long time)

{

  // Calculates the Distance in mm

  // ((time)*(Speed of sound))/ toward and backward of object) * 10


  long DistanceCalc; // Calculation variable

  DistanceCalc = ((time / 2.9) / 2); // Actual calculation in mm

  //DistanceCalc = time / 74 / 2; // Actual calculation in inches

  return DistanceCalc; // return calculated value

}


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

Infrared distance sensor (GP2Y0A21YK0F) [S036]  (0) 2019.02.23
Posted by RDIoT
|

ML8511 UV Sensor (GYML8511) [S083]

 


 

https://www.youtube.com/watch?v=R-o1q9Vmtk4


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

 

* Specs
The ML8511 breakout is an easy to use ultraviolet light sensor. The MP8511 UV (ultraviolet) Sensor works by outputing an analog signal in relation to the amount of UV light that's detected.
This breakout can be very handy in creating devices that warn the user of sunburn or detect the UV index as it relates to weather conditions.
This sensor detects 280-390nm light most effectively.
This is categorized as part of the UVB (burning rays) spectrum and most of the UVA (tanning rays) spectrum.
It outputs a analog voltage that is linearly related to the measured UV intensity (mW/cm2).
If your microcontroller can do an analog to digital signal conversion then you can detect the level of UV!

 

* Contents
- Connect
VIN ----- X
3V3 ----- 3.3V
GND ----- GND
OUT ----- A0
EN ----- A1

 

- Key Code
int UVOUT = A0; //Output from the sensor
int REF_3V3 = A1; //3.3V power on the Arduino board

 

int uvLevel = averageAnalogRead(UVOUT);
int refLevel = averageAnalogRead(REF_3V3);

 

//Use the 3.3V power pin as a reference to get a very accurate output value from sensor
float outputVoltage = 3.3 / refLevel * uvLevel; 
float uvIntensity = mapfloat(outputVoltage, 0.99, 2.9, 0.0, 15.0);

 

lcd.print("uv=" + (String)uvIntensity + "(mW/cm^2)");


//The Arduino Map function but for floats
float mapfloat(float x, float in_min, float in_max, float out_min, float out_max)
{
  return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

Posted by RDIoT
|

Load CDS sensor type values into DB by calling server API [P001]


 



 

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


*GitHubhttps://github.com/rdiot/rdiot-p001.git

 

* Contents

- API Call and Save the CDS Values to the API Server.

 

- Result
2391 S001       ArduinoUno   W5100         Ethernet     MiniPhotocell       2015-10-08 00:22:34 F01                  513 0~1023           
2392 S002       ArduinoUno   W5100         Ethernet     PhotoResistorModule 2015-10-08 00:22:36 F01                  343 0~1023           
2393 S003       ArduinoUno   W5100         Ethernet     CDS5MM               2015-10-08 00:22:37 F01                 829 0~1023           
2394 S004       ArduinoUno   W5100         Ethernet     CDS10MM             2015-10-08 00:22:38 F01                  702 0~1023           
2395 S005       ArduinoUno   W5100         Ethernet     CDS15MM             2015-10-08 00:22:39 F01                  957 0~1023           
2396 S006       ArduinoUno   W5100         Ethernet     CDS20MM             2015-10-08 00:22:41 F01                  959 0~1023           

 

- Key Code
#include <SPI.h>
#include <Ethernet.h>

/* --------------------------------------------------------------------
*  Ethernet Config
* -------------------------------------------------------------------*/
byte mac[] = { 0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 }; //MAC Address
char server[] = "54.65.30.222"; //API Server
String s_data1 = ""; // Request Data
int led_green = 6; // Connect LED ON
int led_red = 7; // DisConnect LED ON


EthernetClient client;

connect_server();

 s_data1 = "sensor_id=S001&";
 s_data1 += "sensor_board=ArduinoUno&";
 s_data1 += "sensor_shield=W5100&";
 s_data1 += "sensor_comm=Ethernet&";
 s_data1 += "sensor_name=MiniPhotocell&";
 s_data1 += "sensor_func=F01&";
 s_data1 += "sensor_value=" + (String)analogRead(A0) + "&";
 s_data1 += "sensor_value_desc=0~1023";
 Serial.println("S001-"+ (String)analogRead(A0));


if (client.connected())
 {
  Serial.println("c1");
  client.println("POST /iotHome-api/v1/sensor/post-form2xml-mysqldb HTTP/1.0");
  client.println("Host: 54.65.30.222");
  client.println("User-Agent: Arduino");
  client.println("Connection: close");
  client.println("Content-Type: application/x-www-form-urlencoded");
  client.print("Content-Length: ");
  client.println(s_data1.length());
  client.println();
  client.println(s_data1);

  digitalWrite(led_green, HIGH);
  delay(100);
  digitalWrite(led_green, LOW);
 }
 else
 {
  digitalWrite(led_red, HIGH);
  delay(1000);
  digitalWrite(led_red, LOW);
 }
 delay(1000);

Posted by RDIoT
|

Auto On Off Photo Switch (AS-10-220) [S157]

 

 

 

https://www.youtube.com/watch?v=8xIMZTtYBdg

* Specs
To turn on or off the light in day and night without manual operation
Do not install the control unit in a place extremely darker in daytime or a place directly by lighting of turning - ON lamp
Widely used: street light, highway, factories, garden, ports, airports, farm, parks, schools, and other places. Also can fit into solar lamps and lanterns, or cars, motorcycles, electric cars and other power supply voltage is 220V lamps and lanterns or equipment
Easy to install and Convenient to use
Model:AS-10-220
Input Voltage: DC or AC 220V
Max Load Current: 10A
Size:(approx)5 x 4.2 x3.5cm/1.96"x1.65"x1.37"
Frequency:50-60Hz

 

* Contents
AC Auto On/Off Test

 

- Connect
Black - LINE
White - NEUT
Red - LOAD

Posted by RDIoT
|

BH1750 Digital Light intensity Sensor Module (GY-302) [S085]

 

 

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


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

* Specs
Model: GY-302
Chip: BH1750FVI
Power supply :3-5V
Data output range resembles luminance from 0-65535 lux
I2C Interface
No external parts required
Dimensions: 13.9mm X 18.5mm

 

* Contents
- DataSheet : http://rohmfs.rohm.com/en/products/databook/datasheet/ic/sensor/light/bh1750fvi-e.pdf
- Library : https://github.com/claws/BH1750

- Connect
VCC ----- 5V(3.3V)
GND ----- GND
SCL ----- A5
SDA ----- A4
ADD ------ X

- Key Code
#include <BH1750.h>
BH1750 lightMeter;
lightMeter.begin();
uint16_t lux = lightMeter.readLightLevel();
lcd.print("Light=" + (String)lux + " lx   ");

Posted by RDIoT
|

Photo Resistor Module (KY-018) [S002]


 

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


*GitHubhttps://github.com/rdiot/rdiot-s002.git

 

* Specs
Photoresistors are semiconductor photosensitive devices,
in addition to having high sensitivity, fast response, consistent with the spectral characteristics and value of good features, but at a high temperature, and humidity in harsh environments, but also to maintain
a high degree of stability and reliability, wide pan used cameras, solar garden lights, lawn, detectors, clock, music, cups, gift boxes, mini-Night light, light voice switches, lights automatically switch toys and a variety of light control, light control lighting, lamps and other light automatic opening OFF control field


* Contents
- Connect
S - A1
middle - 5V
- GND

 

- Key Code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
 
LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004
 
int sensorPin1 = A0;
int sensorPin2 = A1; //S002
 
void setup()
{
  lcd.init();  // initialize the lcd
  lcd.backlight();
  lcd.print("start LCD2004");
}
 
void loop()
{
  int rate1 = analogRead(sensorPin1);
  int rate2 = analogRead(sensorPin2);

  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("[1]CDS05MM=" + (String)rate1);
  lcd.setCursor(0,1);
  lcd.print("[2]KY-018=" + (String)rate2);
 
  delay(200);
}

Posted by RDIoT
|

Mini Photocell (FIT0180) [S001]

 

 

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


*GitHubhttps://github.com/rdiot/rdiot-s001.git

 


* Specs
Head Diameter:              5mm
Voltage:                    5V 
Power Consumption:          70mW
Operating Temperature:      -25~+85
Storage Temperature:        -40~+100
Soldering Temperature:      260(<3s)

 

* Contents
- Connect
Short ----- 5V
Long  ----- P10K ----- GND

 

- Key Code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

 

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

 

int sensorPin = A0;

 

void setup()
{
  lcd.init();  // initialize the lcd
  lcd.backlight();
  lcd.print("start LCD2004");
}

 

void loop()
{
  int rate = analogRead(sensorPin);

  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("S001:FIT0180");
  lcd.setCursor(0,1);
  lcd.print("CDS Value=" + (String)rate);
 
  delay(200);
}

Posted by RDIoT
|

CDS5MM~CDS20MM Value [S003~S006]



https://www.youtube.com/watch?v=660-OrdtU4E


*GitHubhttps://github.com/rdiot/rdiot-s003.git


* Contents

- Connect

A0, A1, A2, A3


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


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


int sensorPin1 = A0;

int sensorPin2 = A1;

int sensorPin3 = A2;

int sensorPin4 = A3;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

}


void loop()

{

  int rate1 = analogRead(sensorPin1);

  int rate2 = analogRead(sensorPin2);

  int rate3 = analogRead(sensorPin3);

  int rate4 = analogRead(sensorPin4);


  lcd.clear();

  lcd.setCursor(0,0);

  lcd.print("[1]CDS05MM=" + (String)rate1);

  lcd.setCursor(0,1);

  lcd.print("[2]CDS10MM=" + (String)rate2);

  lcd.setCursor(0,2);

  lcd.print("[3]CDS15MM=" + (String)rate3);

  lcd.setCursor(0,3);

  lcd.print("[4]CDS20MM=" + (String)rate4);


  delay(200);

}


Posted by RDIoT
|

Temperature and humidity DHT22 (DHT22) [S063]



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


*GitHubhttps://github.com/rdiot/rdiot-s063.git


* Specs

The DHT22 is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed). Its fairly simple to use, but requires careful timing to grab data. The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.

Simply connect the first pin on the left to 3-5V power, the second pin to your data input pin and the right most pin to ground. Although it uses a single-wire to send data it is not Dallas One Wire compatible! If you want multiple sensors, each one must have its own data pin!

 

Compared to DHT11,this sensor is more precise, more accurate and works in a bigger range of temperature/humidity, but its larger and more expensive

Comes with a 4.7K - 10K resistor, which you will want to use as a pullup from the data pin to VCC.

 

Temperature

Resolution : 0.1°C

Accuracy : ±0.5℃

Measuring range : -40°C ~ 80°C

Humidity

Resolution : 0.1%RH

Accuracy : ±2%RH (25°C)

Measuring range : 0%RH ~ 99.9%RH

Operating voltage : 3.3V ~ 5.5 V

Recommended storage condition

Temperature : 10°C ~40°C

Humidity : 60%RH 



* Content

- Connect

1 ----- 5V

2 ----- D2

3 ----- X (NC Not connected)

4 ----- GND


- DataSheet : http://www.waveshare.com/wiki/File:AM2302.pdf


- Source : http://www.waveshare.com/wiki/File:DHT22-Temperature-Humidity-Sensor-code.7z 


- Key Code

#define DHTPIN 2


DHT dht(DHTPIN, DHT22);


  switch(dht.read())

  {

    case DHT_OK:


    lcd.setCursor(0,1);

    lcd.print("temperature=" + (String)dht.temperature + "'C");


    lcd.setCursor(0,2);

    lcd.print("humidity=" + (String)dht.humidity + "% ");



      break;

  }

Posted by RDIoT
|

Wind Speed Sensor 0~5V Voltage Type (JL-FSX2) [S163]



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


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


* Specs

Signal output, Current signal, Pulse signal, Voltage signal, RS485/232 signal

Signal output way: 4 ~ 20 mA, 1.5 / M * S, 0 ~ 5 V, 1 ~ 5 V, RS485/232

Input voltage: DC24V/DC12V/DC5V

Response time: < 1 S

Transmission distance: > 1km

Measurement range: 0 ~ 5 M/S, 0 ~ 30 M/S, 0 ~ 50 M/S ( choose)

Measurement accuracy: Plus or minus 3%

Start wind speed: < 0.6 M/S

Environment temperature: E: -35 ~ 85 C (often-used) L: -55 to 150 C

Level position: + 80 Rotation, with a hammer, automatically adjust the horizontal position

Potential lead: Three wire or two wire

Material: Aluminum alloy, the surface waterproof, prevent corrosion treatment.

Other matters: Optional configuration RS485 communication output or RS232 output


* Content

- Connect

LH (GND), RH(VCC) <- External VCC 9V~

RB (Volate) -----> A0

LH GND -----> Arduino GND


- Key Code

int sensorValue = analogRead(A0);

float outvoltage = sensorValue * (5.0 / 1023.0);

int Level = 6*outvoltage;//The level of wind speed is proportional to the output voltage.

lcd.print("wind speed " + (String)Level + " Level");


Posted by RDIoT
|

G1/2 Water Flow Sensor (SEN-HZ21WA) [S135]



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


*GitHubhttps://github.com/rdiot/rdiot-s135.git


* Specs

Mini. Wokring Voltage: DC 4.5V

Max. Working Current: 15mA (DC 5V)

Working Voltage: DC 5V~24V

Flow Rate Range: 1~30L/min

Load Capacity: ≤10mA (DC 5V)

Operating Temperature: ≤80℃

Liquid Temperature: ≤120℃

Operating Humidity: 35%~90%RH 

Water Pressure: ≤1.75MPa

Storage Temperature: -25~+ 80℃

Storage Humidity: 25%~95%RH


* Content

- Connect

Red ---- 5V

Yellow ----- P10k(5V) ----- D2

Black ----- GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


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


volatile int NbTopsFan; //measuring the rising edges of the signal

int Calc;                               

int hallsensor = 2;    //The pin location of the sensor : D2

 

void rpm ()     //This is the function that the interupt calls 

  NbTopsFan++;  //This function measures the rising and falling edge of the hall effect sensors signal


void setup()

{

  Serial.begin(9600); 

  pinMode(hallsensor, INPUT);

  attachInterrupt(0, rpm, RISING); //and the interrupt is attached

}


void loop()

{

  NbTopsFan = 0;   //Set NbTops to 0 ready for calculations

  sei();      //Enables interrupts

  delay (1000);   //Wait 1 second

  cli();      //Disable interrupts

  Calc = (NbTopsFan * 60 / 7.5); //(Pulse frequency x 60) / 7.5Q, = flow rate in L/hour


  Serial.print (Calc, DEC); //Prints the number calculated above

  Serial.println (" L/hour"); 

}

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

Water Level Sensor v1.0 [S094]  (0) 2016.09.07
Raindrops Detection Sensor Modue (FC-37) [S072]  (0) 2016.09.07
Water Level Sensor [S028]  (0) 2016.09.07
Posted by RDIoT
|

Water Level Sensor v1.0 [S094]



https://www.youtube.com/watch?v=oZh0t-vV8pY


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


* Specs

Water Sensor water level sensor is an easy-to-use, cost-effective high level/drop recognition sensor, 

which is obtained by having a series of parallel wires exposed traces measured droplets/water volume in order to determine the water level.

Easy to complete water to analog signal conversion and output analog values can be directly read 


Arduino development board to achieve the level alarm effect.

Rainwater can be used to detect water level detection.

4 M2 screws positioning holes for easy installation.

Operating voltage: DC3.3-5.5V.

Operating current: less than 20mA.

Dimension: 4.1 x 2.2cm; A product for arduino that works with official Arduino boards


* Content

- Connect

GND - GND

VCC - 5V

SIG - A0

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

G1/2 Water Flow Sensor (SEN-HZ21WA) [S135]  (0) 2016.09.07
Raindrops Detection Sensor Modue (FC-37) [S072]  (0) 2016.09.07
Water Level Sensor [S028]  (0) 2016.09.07
Posted by RDIoT
|

Raindrops Detection Sensor Modue (FC-37) [S072]



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


*GitHubhttps://github.com/rdiot/rdiot-s072.git


* Specs

Product use: rain, rain sensor, can be used for all kinds of weather monitoring, and translated into output signals and AO.

The sensor USES the high quality FR - 04 double material, large area of 5.5 * 4.0 CM, treatment of nickel plating and surface, have fight oxidation, electrical conductivity, and life has more superior performance;

The comparator output, signal clean, good waveform, driving ability is strong, for more than 15 mA;

With potentiometer sensitivity adjustment

The working voltage of 3.3 V to 5 V

The output format: digital switch output (0 and 1) and analog AO voltage output;

Has a fixed bolt hole, convenient installation

Small board PCB size: Approx. 3.2 cm x 1.5 cm

The LM393, use of wide voltage comparator


* Content

- Connect

L + ----- L +

R - ----- R -

 

A0 ----- A0

D0 ----- D2 (TTL ON/OFF)

GND ----- GND

VCC ----- 5V (3.3V~5V)


- Key Code

 nRainVal = analogRead(nRainIn);

  bIsRaining = !(digitalRead(nRainDigitalIn));

  if(bIsRaining)

  {    

    strRaining = "YES";  

  }  

  else

  {    

    strRaining = "NO";  

  }    

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

G1/2 Water Flow Sensor (SEN-HZ21WA) [S135]  (0) 2016.09.07
Water Level Sensor v1.0 [S094]  (0) 2016.09.07
Water Level Sensor [S028]  (0) 2016.09.07
Posted by RDIoT
|

Water Level Sensor [S028] 



https://www.youtube.com/watch?v=6MSdCu5QRZk


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


* Specs

Product Name: water level sensor

Operating voltage: DC3-5V

Operating current: less than 20mA

Sensor Type: Analog

Detection Area: 40mmx16mm

Production process: FR4 double-sided HASL

Operating temperature:10℃-30℃

Humidity: 10% -90% non-condensing

Product Dimensions: 62mmx20mmx8mm


* Content

- Connect

- ----- GND

+ ----- 5V

S ----- A0


+ --P220--- D13

- ----- GND


- Key Code

val = analogRead(analogPin); 

if (val > 650)                 

{                               

      digitalWrite(led, HIGH);   // LED ON

}

else

{

      digitalWrite(led, LOW);    // LED OFF

}

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

G1/2 Water Flow Sensor (SEN-HZ21WA) [S135]  (0) 2016.09.07
Water Level Sensor v1.0 [S094]  (0) 2016.09.07
Raindrops Detection Sensor Modue (FC-37) [S072]  (0) 2016.09.07
Posted by RDIoT
|