'2) Sensor'에 해당되는 글 153건

  1. 2019.02.23 Infrared distance sensor (GP2Y0A21YK0F) [S036]
  2. 2018.12.14 LW-101 LED Display Water Temperature Meter Monitor [B209]
  3. 2018.04.02 Raspberry Pi Camera 5MP Night Version (SEN0184) [S280]
  4. 2018.03.27 USB Microphone [S281]
  5. 2018.03.26 USB 2.0 Microphone Speech MIC Audio Adapter Driver [S278]
  6. 2018.01.16 NRF24L01 2.4Ghz Wireless Module (NRF24L01) [S275]
  7. 2018.01.10 nRF905 Wireless Module 433,868,915Mhz (NRF905) [S117]
  8. 2017.09.24 Crash Collision Sensor Detection Module [S230]
  9. 2017.05.24 Call server API for multiple sensor information [P002]
  10. 2017.03.14 S198 - Sonoff ITEAD WiFi Switch Module (ESP8266)
  11. 2017.03.03 UVC Camera Movie Monitoring [P006]
  12. 2017.02.28 Digital Touch Sensor Module Capacitive Switch [S243]
  13. 2017.01.07 UVC Camera Servo Motor Control [P006.1]
  14. 2016.12.19 12V Thermostat Temperature Controller with NTC Sensor [S238]
  15. 2016.12.13 4x3 Matrix 12 Key Membrane Switch Keypad [S228]
  16. 2016.12.12 IR Infrared Obstacle Avoidance Sensor 2-180cm (DIY) [S246]
  17. 2016.09.18 MF-A03 Knob + Sheet Scale (MF-A03) [S216]
  18. 2016.09.18 3362P 10K Trimmer Potentiometer (3362P-10K) [S091]
  19. 2016.09.18 3296W Multiturn Trimmer Potentiometer (3296W) [S089]
  20. 2016.09.18 Linear Potentiometer B1K~B1M (B1K~B1M) [S070]
  21. 2016.09.18 Slide Pot 10K Module [S061]
  22. 2016.09.18 Taper Rotary Potentiometer B10K (B10K) [S060]
  23. 2016.09.18 Amp Pot B5K (B5K) [S027]
  24. 2016.09.17 3G Shield Call and Send SMS by AT Command [P011.1]
  25. 2016.09.17 Bluetooth Anti Lost Smart Tracker iTag [S213]
  26. 2016.09.17 iBeacon Bluetooth 4.0 BLE Module [S227]
  27. 2016.09.17 CC2540 BLE Protocol Analyzer (CC2540) [S173]
  28. 2016.09.17 Bluetooth 4.0 MP3 Decoding Board Module [B147]
  29. 2016.09.17 Bluetooth Module HC-05 (HC-05) [S128]
  30. 2016.09.17 HC Serial Bluetooth Module (HC-06) [S018]

Infrared distance sensor (GP2Y0A21YK0F) [S036]



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


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


* Specs

operating voltage: 4.5 V to 5.5 V

average current consumption: 30 mA (typical)

distance measuring range: 10 cm to 80 cm (4" to 32")

output type: analog voltage

output voltage differential over distance range: 1.9 V (typical)

response time: 38 ± 10 ms

package size: 29.5×13.0×13.5 mm (1.16×0.5×0.53")

weight: 3.5 g (0.12 oz)


* Contents

- DataSheet : http://www.sparkfun.com/datasheets/Components/GP2Y0A21YK.pdf


- Connect 

Yellow ----- A0

Black ----- GND

Red ----- 5V


- Key Code

int pin = A0;


int I = analogRead(pin);

int value = (6762 /(I-9)) -(4);


lcd.print("distance=" + (String)value + "CM  ");

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

Infrared distance sensor (GP2Y0A21YK0F) [S036]  (0) 2019.02.23
Ultrasonic Ranging Module (HC-SR04) [S011]  (0) 2016.09.08
Posted by RD IoT RDIoT

댓글을 달아 주세요

LW-101 LED Display Water Temperature Meter Monitor [B209]





https://www.youtube.com/watch?v=1FiPwYkkRFg



* Specs

Features: 

No batteries required - The device harvests its energy from the water flow Quick and easy installation without any tools - fits with handheld showerhead Materials approved for drinking water 

Newest innovated technology to upgrade and modernize your bath room;

self powered battery free thermometer to monitor your shower temperature.

As home essential Needed - to serve and surprise your husband, wife or kids.

(Especially for families having toddlers or babies)

High-precision temperature sensor 360°rotatable waterproof led screen for better viewing.


Specification:  

Material : ABS, PC

Size : connect to standard 1/2inch hose or shower head;

Temperate Range : 32-212 ℉, 0-100℃

Weight : 80g



* Contents

- Connect 






Posted by RD IoT RDIoT

댓글을 달아 주세요

Raspberry Pi Camera 5MP Night Version (SEN0184) [S280]






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


* Specs

Camera: 5 million pixels

Photosensitive Module: OV5647

Camera Parameters:

CCD size: 1/4 inches

Aperture (f): 1.8

Focal Length: 3.6MM (adjustable)

Diagonal: 75.7 degrees

Sensor best PIX: 1080p

4 Screw Holes

Can be used in a fixed position

3.3V external power supplies

Supports access to the infrared light or fill light

Dimension: 25mm x 24mm



* Contents

- Capture still image

$ raspistill -t 30000 -o rdiot.jpg


- Capture video

$ raspivid -t 10000 -o video.h264



- Capture Night Test



- Capture Day Test



- Download Capture File Sample : 



- Reference 

 : RASPICAM COMMANDS : https://www.raspberrypi.org/documentation/usage/camera/raspicam/README.md



Posted by RD IoT RDIoT

댓글을 달아 주세요

USB Microphone [S281]





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


* Specs

Product parameters:

The sensitivity: - 47 db + 4 db

Lower sensitivity: - 3 db at 1.5 V

Working voltage: 4.5 V

The frequency response: 100 to 16 KHZ

SNR: wining - 67 db

Line length: 0.7 to 0.9 M


* Contents

- Check Device

$ lsusb

$ dmesg


- Setup 

$ sudo vi /usr/share/alsa/alsa.conf


defaults.ctl.card 0 => 1

defaults,pcm, card 0 => 1


- Setup Volume

$ alsamixer 


- Recording

$ arecord -D plughw:1,0 -c 1 -f S16_LE -r 44100 test.wav


- Play 

$ aplay test.wav


Posted by RD IoT RDIoT

댓글을 달아 주세요

USB 2.0 Microphone Speech MIC Audio Adapter Driver [S278]





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


* Specs

Brand Name: ANBES

Set Type: Single Microphone

Communication: Wireless

Transducer: Condenser Microphone

Use: Computer Microphone

Model Number: USB Microphone

Polar Patterns: Omnidirectional

Package: No

Style: Computer Microphone

Item Name: Computer Microphone


* Contents

- Check Device

$ lsusb

$ dmesg


- Setup 

$ sudo vi /usr/share/alsa/alsa.conf


defaults.ctl.card 0 => 1

defaults,pcm, card 0 => 1


- Setup Volume

$ alsamixer 


- Recording

$ arecord -D plughw:1,0 -c 1 -f S16_LE -r 44100 test.wav


- Play 

$ aplay test.wav




Posted by RD IoT RDIoT

댓글을 달아 주세요

NRF24L01 2.4Ghz Wireless Module (NRF24L01) [S275]






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


GitHub : https://github.com/rdiot/rdiot-s275.git


* Specs

nRF24L01 is a single chip radio transceiver for the world wide 2.4 - 2.5 GHz ISM band. 

The transceiver consists of a fully integrated frequency synthesizer, a power amplifier, a crystal oscillator, a demodulator, modulator and Enhanced ShockBurst? protocol engine. 

Output power, frequency channels, and protocol setup are easily. 

programmable through a SPI interface. 

Current consumption is very low, only 9.0mA at an output power of -6dBm and 12.3mA in RX mode. 

Built-in Power Down and Standby modes makes power saving easily realizable. 

Maximum operating speeds up to 2Mbps, GFSK modulation efficiency, Anti-interference ability, Particularly suitable for industrial control applications. 

125 Communications channels, Multi-point communication and frequency hopping to meet the communication needs. 

Built-in hardware CRC error detection, Multipoint communication address control. 

Low-power 1.9 ~ 3.6V, only 1uA on Power down mode. 

Built-in 2.4Ghz antenna. 

Available software to set the address, only received local Address when output data(Provide interrupt instruction), can be directly connected to a variety of microcontrollers, Software programming is very convenient. 

Support 6 Data channels of data reception. 

Standard DIP Pitch Interface for embedded applications. 


* Contents

- Connect 


VCC - 3.3V

CSN - D8

MOSI - D11

IRQ - NONE

GND - GND

CE - D7

SCK - D13

MISO - D12


- parts

Rotary Encoder Module (KY-040) [S120]


- Library : https://github.com/nRF24/RF24

- Tested Library Download :  RF24-master.zip



- Key Code

- RF24_TX : https://github.com/rdiot/rdiot-s275/blob/master/RF24_TX.ino

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <SPI.h>

#include <nRF24L01.h>

#include <RF24.h>


LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x20 for a 16 chars and 2 line display


RF24 radio(7, 8); // SPI Bus CE, CSN 

const byte address[6] = "00001"; // RX = TX same address

int pin = A0; // Rotary Encoder Module (KY-040) [S120] : http://rdiot.tistory.com/126 [RDIoT Demo]


void setup() {

  pinMode(pin, INPUT);

  

  Serial.begin(9600);

  

  radio.begin();

  radio.openWritingPipe(address);

  radio.setPALevel(RF24_PA_MIN); // Power Level : accoding to distance : RF24_PA_MIN / RF24_PA_LOW / RF24_PA_HIGH / RF24_PA_MAX


  radio.stopListening();  // TX 


  lcd.init(); // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD1602");

  delay(1000);

  lcd.clear();

    

}


void loop() {

  lcd.setCursor(0,0);

  lcd.print("S275:RF24L01 TX");

  

  int readVal = analogRead(pin);

  readVal = map(readVal, 0, 1023, 0, 179);

  Serial.println(readVal);


  lcd.setCursor(0, 1);

  lcd.print("msg=>" + String(readVal) + "  ");

   

  char buf[4];

  itoa(readVal, buf, 10);

    

  radio.write(&buf, sizeof(buf)); //send messages to RX 

  delay(10);

  

}


- RX24_RX : https://github.com/rdiot/rdiot-s275/blob/master/RF24_RX.ino

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <SPI.h> 

#include <nRF24L01.h>

#include <RF24.h>

#include <Servo.h> 


LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x20 for a 16 chars and 2 line display


RF24 radio(7, 8); // SPI Bus CE, CSN 

const byte address[6] = "00001"; // TX = RX same address


Servo myservo; 

int servoPin = 4; 


void setup() {


  Serial.begin(9600);

  

  radio.begin();

  radio.openReadingPipe(0, address);

  radio.setPALevel(RF24_PA_MIN); // Power Level : accoding to distance : RF24_PA_MIN / RF24_PA_LOW / RF24_PA_HIGH / RF24_PA_MAX


  radio.startListening(); // RX


  myservo.attach(servoPin); 


  lcd.init(); // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD1602");

  delay(1000);

  lcd.clear();

 

}


void loop() {

  lcd.setCursor(0,0);

  lcd.print("S275:RF24L01 RX");


  lcd.setCursor(0, 1);

  if (radio.available()) {    

    char text[4] = "";

    

    radio.read(&text, sizeof(text));

    Serial.println(text);

    

    lcd.print("rcv=>" + String(text) + "     ");


    int value = atoi(text);

     myservo.write(180-value);

  }


  delay(10);

  

}


- how to debug radio details 

#include <printf.h>


  printf_begin();

  radio.printDetails();





Posted by RD IoT RDIoT

댓글을 달아 주세요

nRF905 Wireless Module 433,868,915Mhz (NRF905) [S117]



 


 

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


GitHubhttps://github.com/rdiot/rdiot-s117.git


* Specs

Tri-band transceiver operating frequency for the international ISM band 433/868/915MHz GMSK modulation, anti-interference ability, especially for industrial control applications using the DSS + PLL frequency synthesizer technology, excellent frequency stability, high sensitivity, to achieve - 100dBm low operating voltage (2.7V), low power consumption, standby only 1uA maximum transmit power of +10 dBm with multiple channels (up to more than 170) meet the requirements for low-power devices, in particular, to meet the needs of multi-channel work of special occasions, the work rate up to 76.8 Kbps

External components of at least (10), the basic need to debug. Low transmit power and high receive sensitivity of the design, the use of the license required to apply for open use at distances up to 1000m and the specific use of the environment and component parameters.


Electrical Characteristics:

NRF905 work band: 433/868/915MHz

Channel number: 170

Function: transmitter / receiver

Frequency stabilization method: PLL

Modulation mode: the FSK / GMSK

Maximum output power: +10 dBm

Sensitivity:-100dBm

Maximum operating rate: 76.8Kbit / s

Working voltage :2.7 - 3 .3 V


Application areas:

Vehicle monitoring, remote control, telemetry, small wireless network, wireless meter reading, access control systems, residential paging, industrial data acquisition systems, wireless tags, identification, non-contact RF smart cards, small wireless data terminals, security, fire systems, wireless remote control system, bio-signal acquisition, hydrological and meteorological monitoring, robot control, wireless 232 data communications, wireless 485/422 data communications, digital audio, digital image transmission.


* Contents

 

 

 

- Connect

VCC ---- Power supply.
TXE ---- RF module mode selecting.
CE ---- Enable RF module for transmit and receive.
PWR ---- Power up chip.
CLK ---- Output clock, divided crystal oscillator full swing clock.
CD ---- Carrier detect.
AM ---- Address matched.
DR ---- Receive and transmit ready.
MISO ---- SPI master input slave output.
MOSI ---- SPI mater output slave input.
SCK ---- SPI clock.
CSN ---- SPI enable.
GND ---- Ground
GND ---- Ground

 

- KOR : 919.7Mhz, 921.7Mhz, 923.1Mhz


- Reference Source : http://www.electrodragon.com/wp-content/uploads/2011/11/NRF905-for-arduino.zip

 

- Changed Code Library

PROGMEM unsigned const int freq_tab[10] = {
 

- TX Source : https://github.com/rdiot/rdiot-s117/blob/master/nRF905_TX.ino

#include <NRF905.h>
#include <SPI.h>

#define BUF_LEN          32
#define CONF_LEN         10

#define NRF905_CSN       10

unsigned char tx_buf[BUF_LEN]= "RDIoT TX CNT:  \r\n";
unsigned char read_config_buf[CONF_LEN];

byte tx_address[4]= {0xcc,0xcc,0xcc,0xcc};

void setup()
{
    unsigned char i;
   
    pinMode(NRF905_CSN,OUTPUT); //to make sure SPI works
   
    nrf905=NRF905(NRF905_CSN);
   
    nrf905.init();


    /**
        default configuration, need to specify frequency
        choose Z-Wave frequency band, support :
        US  908.42Mhz
        EUROPE  868.42MHz
        AFRICA  868.42MHz
        CHINA  868.42MHz
        HK  919.82MHz
        JAPAN  853.42MHz
        AUSTRALIA 921.42MHz
        NEW_ZEALAND 921.42MHz
        BRASIL  921.42MHz
        RUSSIA  896MHz
    */
    nrf905.write_config(US);
 
 
    nrf905.read_config(read_config_buf);

    Serial.begin(9600);

    for(i=0; i<10; i++)
    {
        Serial.print(read_config_buf[i],HEX);
        Serial.print(' ');
    }
   
    tx_buf[12] = '0';
}

void loop()
{
    /** transmit data packet with default TX Address */
    nrf905.TX(tx_buf);
   
    /** transmit data packet with specified TX Address */
//    nrf905.TX(tx_buf, tx_address);
   
    // NOTE: TX_Address and RX_Address must be the same
   
    /** Count Sending times */
    tx_buf[12]++;
    if(tx_buf[12] == 0x3A){
      tx_buf[12] = '0';
    }
    delay(50);
}

 


 

- RX Source : https://github.com/rdiot/rdiot-s117/blob/master/nRF905_RX.ino

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

#include <NRF905.h>
#include <SPI.h>
#define BUF_LEN          32
#define CONF_LEN         10

//NRF905 nrf905;

unsigned char rx_buf[BUF_LEN]= {0};
unsigned char read_config_buf[CONF_LEN];
unsigned char rx_address[4]= {0xcc,0xcc,0xcc,0xcc};
String str1="";

LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x20 for a 16 chars and 2 line display

void putstring(unsigned char *str)
{
   
    while(*str){
        str1 += char(*str++);
        //Serial.write(*str++);  
       
    }
}

void setup()
{
    char i;
    pinMode(10,OUTPUT);
    nrf905=NRF905(10);
   
    /** pin/port configuration */
    nrf905.init();

 
    /***************************************************
        default configuration, need to specify frequency
        choose Z-Wave frequency band, support :
        US  908.42Mhz
        EUROPE  868.42MHz
        AFRICA  868.42MHz
        CHINA  868.42MHz
        HK  919.82MHz
        JAPAN  853.42MHz
        AUSTRALIA 921.42MHz
        NEW_ZEALAND 921.42MHz
        BRASIL  921.42MHz
        RUSSIA  896MHz
    */
 nrf905.write_config(US);  
   
    /***********************************************************
 read register configuration, check register value written */
    nrf905.read_config(read_config_buf);
   
    /** serial communication configurate */
    Serial.begin(9600);
   
    /** test configuration */
    for(i=0; i<CONF_LEN; i++){
        Serial.print(read_config_buf[i],HEX);
        Serial.print(' ');
    }

  lcd.init();  // initialize the lcd
  lcd.backlight();
  lcd.print("start LCD2004");
 
  delay(1000);
 
  lcd.clear();
   
}

void loop()
{

    lcd.setCursor(0,0);
    lcd.print("S117:nRF905 RCV");
 
    /** recieve data packet with default RX address */
    nrf905.RX(rx_buf);
   
    /** recieve data packet with specified RX address */
    //    nrf905.RX(rx_buf, rx_address );
   
    // NOTE: TX_Address and RX_Address must be the same
   
    /** send recieved data to PC through serial port */       
    putstring(rx_buf);

    lcd.setCursor(0,1); 
    lcd.print(str1);
    str1 = "";
  
    delay(1);
}


 

'2) Sensor > Z-Wave' 카테고리의 다른 글

nRF905 Wireless Module 433,868,915Mhz (NRF905) [S117]  (0) 2018.01.10
Posted by RD IoT RDIoT

댓글을 달아 주세요

Crash Collision Sensor Detection Module [S230]





https://www.youtube.com/watch?v=1yeZcZQk-Y8


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


* Specs 

Wrobot Crash Sensor is arduino compatible and can be used for for robot collision detection, touch collision detection. 

It is based on the high sensitivity crash sensor. 

With the Arduino sensor expansion board, in combination, it can be very easy to achieve robot collision detection, touch collision detection. 


When touch, output low level ; when release, maintain a high level

Wrobot Crash Sensor pin definitions : (1) Output (2) Vcc (3) GND

Features :

1.Based on the high sensitivity crash sensor

2.Can be used for robot collision detection, touch collision detection

3.Type : Digital

4.Sensitivity : High

5.Power Supply : 5V

6.Pin Definitions : (1) Output (2) Vcc (3) GND

7.When touch, output low level ; when release, maintain a high level

8.Apply to a variety of platforms including Arduino/51/AVR/ARM


* Contents

- connect

OUT - D3

VCC - 5V

GND - GND

 

- Key Code

int ledPin = 13;                // choose the pin for the LED
int inputPin = 3;               // connect sensor to input pin 3
 
 
void setup() {
  Serial.begin(9600);           // Init the serial port
   
  pinMode(ledPin, OUTPUT);      // declare LED as output
  pinMode(inputPin, INPUT);     // declare Micro switch as input
}
 
void loop(){
  int val = digitalRead(inputPin);  // read input value
  if (val == HIGH) {                // check if the input is HIGH
    digitalWrite(ledPin, LOW);      // turn LED OFF
  } else {
    digitalWrite(ledPin, HIGH);     // turn LED ON
    Serial.println("Switch Pressed!");
  }
  delay(50);
}


Posted by RD IoT RDIoT

댓글을 달아 주세요

Call server API for multiple sensor information [P002]


 

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


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

 

* Parts

- Arduino Uno R3

- Ethernet W5100 Shield (W5100) [B004]

- LCD1602 (HD44780) [D002]

- Temperature and humidity DHT11 sensor module (KY-015) [S008]

- Button

 

* Contents

- Collect multiple (two temperature / humidity) sensor values on one sensor and load them into the server

Posted by RD IoT RDIoT

댓글을 달아 주세요

S198 - Sonoff ITEAD WiFi Switch Module (ESP8266)

 

 

 

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


 







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




* Specs

Specification:
Voltage range: 90-250v AC(50/60Hz)
Max current: 10A
Max Wattage: 2200 watts
Dimensions: (L)88*(W)38*(H)23mm
Color: White
Humidity: 5%-95%
Wireless Frequency: 2.4Ghz
Working Temp: -20°C-75°C

 

Features:
Support WiFi network.
Support status tracking, home appliances status timely feedback to your App.
Support remotely turn on or off added devices.
Support Max 8 timing tasks for each added device.
Support numerous WiFi smart switches one smart phone.
Easy installation, easy handling and can be activated immediately and stably.

 

 

* Contents

- Connect

Input    Output
N ————N
L————-L

 

- Reference

 : https://www.itead.cc/blog/user-guide-for-sonoff-slampher

 


- download E-Welink app : https://play.google.com/store/apps/details?id=com.coolkit&hl=zh-CN





Posted by RD IoT RDIoT

댓글을 달아 주세요

UVC Camera Movie Monitoring [P006]



 

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


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

 

 

* Parts

- Arduino Yun (ARDUINO-YUN) [B015]

- Logitech HD WebCam C310 (C310) [S084]

 

 

* Contents

1. Install UVC Class

  : opkg update

  : opkg install kmod-video-uvc

   

2. Install mjpg-streamer

  : opkg install mjpg-streamer

 

3. config /etc/config/mjpg-streamer

   : config mjpg-streamer 'core'

         option device 'dev/video0'

         option resolution '640x480'

         option fps '30'

         option www '/www/webcam'

         option port '8080'

         option enabled '1'

 

4. startup mjpg-streamer

  : /etc/init.d/mjpg-streamer enable

  : /etc/init.d/mjpg-streamer start

 

5. Movie Monitoring by web browser

  : http://IP:8080/?action=stream

  : http://IP:8080/javascript_simple.html 

Posted by RD IoT RDIoT

댓글을 달아 주세요

Digital Touch Sensor Module Capacitive Switch [S243]





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


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


* Specs

Features:
Low power consumption
Power supply for 2.5-5.5V DC
The module is based on a touch-sensing capacitive touch switch module. In the normal state, the module output low, low power consumption; When a finger touches the corresponding position, the module output high, if not touched for 12 seconds, switch to low-power mode.

Specifications:
Color: Blue
Module size:1.4*1.4cm
Modes: jog, self-locking

Package includes:
1 x Digital Touch Sensor Module



* Contents

- Connect

VCC ----- 5V

Middle ----- GND

OUT ----- D2


- Key Code

int touchPin = 2; 

 

void setup() {

  Serial.begin(9600);

  pinMode(touchPin, INPUT);  

}

 

void loop() {

  int touchValue = digitalRead(touchPin);

  Serial.println(touchValue);

 

  delay(100);  

}

Posted by RD IoT RDIoT
TAG touch

댓글을 달아 주세요

UVC Camera Servo Motor Control [P006.1]




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


*GitHubhttps://github.com/rdiot/rdiot-p006.1.git


* Parts

- Arduino Yun (ARDUINO-YUN) [B015]

- Logitech HD WebCam C310 (C310) [S084]

- SG90 Camera Mount [B051]

- Tower Pro SG90 Micro Servo (SG90) [D018]  

 

Contents

- Control Interface 


- Source

#include <Bridge.h>
#include <YunServer.h>
#include <YunClient.h>
#include <Servo.h> 
 
YunServer server;

Servo myservo1;
Servo myservo2;

int servoPin_leftright = 9; 
int servoPin_updown = 10; 

int pos_updown_min = 100; 
int pos_updown_max = 150;

int pos_leftright_min = 0;
int pos_leftright_max = 90;

int pos_updown;
int pos_leftright;
int pos_cnt = 5;

void setup() {
  Serial.begin(9600);
  pinMode(13,OUTPUT);
  
  digitalWrite(13, LOW);
  Bridge.begin();
  digitalWrite(13, HIGH);
  
  server.listenOnLocalhost();
  server.begin();

  myservo1.attach(servoPin_leftright); 
  myservo2.attach(servoPin_updown); 

  for(int pos = 0; pos < 65; pos += 1) 
  { 
    myservo1.write(pos);
    pos_leftright = pos;

    delay(100); 
  }

  for(int pos = 150; pos>=100; pos-=1)
  { 
    myservo2.write(pos); 
    pos_updown = pos;
    delay(100); 
  } 
}

void loop() {
  YunClient client = server.accept();
 
  if (client) {
    process(client);
    client.stop();
  }
  delay(50); 
}

void process(YunClient client) {
  String command = client.readStringUntil('/');
 
  if (command == "control") {
    controlCommand(client);
  }
}
 
void digitalCommand(YunClient client) {
  int pin, value;
pin = client.parseInt();
 
  if (client.read() == '/') {
    value = client.parseInt();
    digitalWrite(pin, value);
  } 
  else {
    value = digitalRead(pin);
  }
  client.print(F("Pin D"));
  client.print(pin);
  client.print(F(" set to "));
  client.println(value);
 
  String key = "D";
  key += pin;
  Bridge.put(key, String(value));

}

void controlCommand(YunClient client) {
  String mode = client.readStringUntil('/');
  
  if(mode == "up")
  {
    int temp = pos_updown + pos_cnt;
    if(temp < pos_updown_max)
    {
      myservo2.write(temp); 
      pos_updown = temp;
    }
  }

  if(mode == "down")
  {
   int temp = pos_updown - pos_cnt;
    if(temp > pos_updown_min)
    {
      myservo2.write(temp); 
      pos_updown = temp;
    } 
  }

  if(mode == "right")
  {    
   int temp = pos_leftright - pos_cnt;
    if(temp > pos_leftright_min)
    {
      myservo1.write(temp); 
      pos_leftright = temp;
    }  
  }

  if(mode == "left")
  {
   int temp = pos_leftright + pos_cnt;
    if(temp < pos_leftright_max)
    {
      myservo1.write(temp); 
      pos_leftright = temp;
    }

  }

  client.print(F("Camera "));
  client.print(mode);
  client.print(F(" Current Point X = "));
  client.print(pos_leftright);
  client.print(F(", Current Point Y = "));
  client.print(pos_updown);
}


Posted by RD IoT RDIoT

댓글을 달아 주세요

12V Thermostat Temperature Controller with NTC Sensor [S238]




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


* Specs

Features:

 Used advanced micro-computer technology

 Built-in 3 LED display windows, start temp, realtime temp and stop temp

 Switch to heating or cooling mode automatically

 Relay output separately, can control 1000W device

 It is easily to install

 Temperature Measurement Range: -9-99℃

 Measuring Accuracy: ±1℃

 Control Accuracy: 1℃

 Meaturement Input: NTC(10K. 0.5%) waterproof type sensor

 Input Voltage: DC12V

 Output: 10 a relay all the way

 Size: Approx. 7.2cm x 5.1cm x 2cm/ 2.83" x 2" x 0.78"


Package included:

 1 x 12V Digital Led Temperature Controller

 1 x NTC Temp Sensor

 1 x Manual


 * Contents

 - Input DC 12V 

 - Relay Output AC 220V, DC 12V 

 - Start (On), Stop (Off)

Posted by RD IoT RDIoT

댓글을 달아 주세요

4x3 Matrix 12 Key Membrane Switch Keypad [S228]



https://www.youtube.com/watch?v=15Asj5XZBlg


* Specs

Pad Size: 69.2 x 76.9 x 0.8mm

Cable Length: 3-1/3" or 86mm (include connector)

Connector: Dupont 7 pins, 0.1" (2.54mm) Pitch

Mount Style: Self-Adherence

Max. Circuit Rating: 35VDC, 100mA

Insulation Spec.: 100M Ohm, 100V

Dielectric Withstand: 250VRms (60Hz, 1min)

Contact Bounce: <=5ms

Life Expectancy: 1 million closures

Operation Temperature: -20 to +40 °C

 

Package:

1PCS X4 x 3 Matrix Array 12 Key Membrane Switch Keypad Keyboard

 

* Contents

- LIbrary : http://playground.arduino.cc/uploads/Code/keypad.zip

- Connect

7 ----- D9

6 ----- D8

5 ----- D7

4 ----- D6

3 ----- D5

2 ----- D4

1 ----- D3


- Key Code

#include <Keypad.h>

const byte ROWS = 4; //four rows

const byte COLS = 3; //four columns

//define the cymbols on the buttons of the keypads

char hexaKeys[ROWS][COLS] = {

 {'1','2','3'},

 {'4','5','6'},

 {'7','8','9'},

 {'*','0','#'}

};

byte rowPins[ROWS] = {9, 8, 7, 6}; //connect to the row pinouts of the keypad

byte colPins[COLS] = {5, 4, 3}; //connect to the column pinouts of the keypad

//initialize an instance of class NewKeypad

Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);

void setup(){

 Serial.begin(9600);

}

 

void loop(){

 char customKey = customKeypad.getKey();

 

 if (customKey){

 Serial.println(customKey);

 }

}

Posted by RD IoT RDIoT
TAG Keypad

댓글을 달아 주세요

IR Infrared Obstacle Avoidance Sensor 2-180cm (DIY) [S246]



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


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

* Specs

Features:

1.Many kinds of welding methods,vertical and horizontal,expand the scope of application.

2.With precision potentiometer to adjust the range of infrared 38KHz detection.

3.The sensor detects the band enable port,which is convenient for the signal line as the bus line.

4.On power enable the port of the high level of the sensor,the sensor can detect the output signal.

5.Detection range can be up to 1.2 meters.

6.The software is enhanced,and the infrared ray interference of the infrared remote control equipment can be avoided.

7.Using EEPROM to record the work of each module, the probability of interference with each other is down to 1%.

8.Signal low level output.

9.Pin SIP head,application of bread board or through hole project.

10.Board set the jumper JP,short circuit when the output signal has a latch function,or dynamic output.

 

Specifications:

1.Power requirements:5 VDC

2.Communication:digital high/low output

3.Working temperature:32 to 158 degrees F (0 to +70 degrees)

4.Size:2.4cm * 2.8cm

 

Applications:

1.Warehouse door switch (latch set)

2.Security alarm system

3.Automatic production line transportation belt object count

4.Robot control

 

Package Included:

1 * 38KHz IR Infrared Obstacle Avoidance Sensor Switch


* Contents

- Connect

EN ----- X

SIG ----- D2

VCC ----- 5V

GND ----- GND


- Key Code

int T = 2; // INPUT PIN

 

void setup()

{

 Serial.begin(115200); 

 Serial.println("Arduino Examples - IR Sensor");

 Serial.println(" http://docs.whiteat.com/?p=1142");

 pinMode(T, INPUT);

}

 

void loop()

{

 if (LOW == digitalRead(T))

 {

 Serial.println("IR Detected"); //detected

 }

 else

 {

 Serial.print("."); 

 }

 delay(100);

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

MF-A03 Knob + Sheet Scale (MF-A03) [S216]



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


* Specs

A03 dial knob + MF-A03 bakelite knob with scale plate / sheet scale digital potentiometer

Posted by RD IoT RDIoT

댓글을 달아 주세요

3362P 10K Trimmer Potentiometer (3362P-10K) [S091]



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


* Specs

10Pcs 3362P-103 3362 P 10K ohm High Precision Variable Resistor Potentiometer

Posted by RD IoT RDIoT

댓글을 달아 주세요



3296W Multiturn Trimmer Potentiometer (3296W) [S089]



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


* Specs

Features

Multiturn / Cermet / Industrial / Sealed 5 terminal styles Tape and reel packaging available Chevron seal design Listed on the QPL for style RJ24 per Mounting hardware available


* Contents

- Connect

3 (Left)

2 (Middle) ----- GND

1 (Right) ----- VCC 

Posted by RD IoT RDIoT

댓글을 달아 주세요

Linear Potentiometer B1K~B1M (B1K~B1M) [S070]




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


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



* Contents

- Connect

Left ----- D8

Middle ----- LED + 

 

LED (+) ----- Potentiometer Middle

LED (-) ----- GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


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

int pin=8;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

  pinMode(pin, OUTPUT);


  digitalWrite(pin,HIGH);

  delay(1000);


  lcd.clear();

}


void loop()

{

  lcd.setCursor(0,0);

  lcd.print("S070:B1K~B1M");


  lcd.setCursor(0,1);

  lcd.print("analog=" + (String)analogRead(A0) + " ");

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

Slide Pot 10K Module [S061]



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


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



* Specs

Two analog outputs, analog outputs 0-VCC voltage signals

Size: 90 * 20mm / 0.39*0.78"

Voltage: 3.3V or 5V

Port: Analog

Resistance: 10K

Quantity:1pc


* Contents

- Connect

GND ----- X 

VCC ----- X

OTB ----- A1

GND ----- GND

VCC -----5V

OTA -----  A0


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

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

int pot1Pin = A0;

int pot2Pin = A1;

 

int val;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  delay(1000);

  lcd.clear();

}

 

void loop()

{

  lcd.setCursor(0,0);

  lcd.print("S061:Slide Pot");

 

  lcd.setCursor(0,1);

  lcd.print("OTA=" + (String)analogRead(pot1Pin) + " -> " + (String)map(analogRead(pot1Pin), 0, 1021, 0, 100)  + "     " );

 

  lcd.setCursor(0,2);

  lcd.print("OTB=" + (String)analogRead(pot2Pin) + " -> " + (String)map(analogRead(pot2Pin), 0, 1021, 0, 100)  + "     ");

 

  delay(10);

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

Taper Rotary Potentiometer B10K (B10K) [S060]



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


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


* Specs

Manufacturer: ALPHA

Manufacturer Part No: B10K OHM 17mm

Comes with Dust Seal


Specifications

Adjustment Type: Top Adjustment

Power: 1/2W

Resistance: 10K OHM OHMS

Type: Linear

Type B

Features

Knurled Shaft

Suits Most Standard knobs

Shaft Diameter: 6mm

Shaft Length: 10mm

Mounting Hole: 7.5mm

Base Diameter: 16mm


* Contents

- Connect

Left - 5V

Middle - A0 (OUT)

Right - GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


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

int potPin = A0;

int val;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  //pinMode(potPin, INPUT);

  delay(1000);


  lcd.clear();

}


void loop()

{

  lcd.setCursor(0,0);

  lcd.print("S060:B10K");


  val = analogRead(potPin);


  lcd.setCursor(0,1);

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


  val = map(val, 0, 1021, 100, 1);

 

  lcd.setCursor(0,2);

  lcd.print("val1~100=" + (String)val + "  " );


  delay(10);

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

Amp Pot B5K (B5K) [S027]



https://www.youtube.com/watch?v=7J1AMx28ROs


* Specs

5k

2W @ 70°C ambient

Non-rotational key

Temp. range: -55°C to +120°C

Shaft length: 0.875" 

Shaft dia.: 0.25"

Mounting hole: 0.375" 

Max. panel thickness: 0.25"


* Contents

- Connect

Potentiometer

LEFT - 5V

MIDDLE - A0 (OUT)

RIGHT - GND


Servo

Black - GND

Red - 5V

Red -  D12


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Servo.h> 


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

Servo myservo; 

int servoPin = 12;

int potPin = A0;

int val;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  myservo.attach(servoPin); 

  delay(1000);


  lcd.clear();

}


void loop()

{


  val = analogRead(potPin);

  val = map(val, 0, 1023, 0, 179);

 

  lcd.setCursor(0,0);

  lcd.print("S027:B5K");


  myservo.write(val);

  lcd.setCursor(0,1);

  lcd.print("pos0~179=" + (String)val + "  " );


  delay(10); 

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

3G Shield Call and Send SMS by AT Command [P011.1]



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


*GitHubhttps://github.com/rdiot/rdiot-p011.1.git


* Parts

- Arduino UNO

ITEAD 3G Shield (IM121026002) [B014]

- Cell Phone 


* Contents

Send SMS and Call to my Cell Phone

AT+CMGF=1

AT+CPMS="SM","SM","SM"

AT+CMGW="01045625456"<CR>(TEXT MODE)

hi there. This is test for SMS.

Crtl+Z


AT+CMSS=3

AT+CMSS=4

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

3G Shield Call and Send SMS by AT Command [P011.1]  (0) 2016.09.17
ITEAD 3G Shield (IM121026002) [B014]  (0) 2016.09.01
Posted by RD IoT RDIoT

댓글을 달아 주세요

Bluetooth Anti Lost Smart Tracker iTag [S213]



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


* Specs

Free app to pair smart phone to iTag

Alerts when iTag and iPhone are ut of range

Self-portrait. Works as remote shutter, with burst shot

Bluetooth 4.0/Bluetooth Smart

Replaceable battery : Model CR2032 Lithum Coin Battery

Last Seen provides you within pin-drop on map to help you recover your item

Trigger on/off the voice recording on mobile phone

Posted by RD IoT RDIoT

댓글을 달아 주세요

iBeacon Bluetooth 4.0 BLE Module [S227]



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


* Specs

iBeacon  Module Bluetooth 4.0 BLE Support Near-field Positioning Sensor Wireless Acquisition


Description:

Tested with iOS 7.0

Based on TI's CC2541. Range is 30M

Size: 24.8mm x 24.8mm,  thickness 7.5mm

 

You can customize your own iBeacon configuration including UUID etc

Support firmware upgrade 

Support payment interface 

Support broadcast read the battery level, temperature, humidity acquisition, without connecting module

Documents: https://cloud.mail.ru/public/f22154604af3%2FiBeacon_en-FZ1095.zip



BT Version: Bluetooth Specification V4.0 BLE

Send and receive no bytes limit.

Working frequency: 2.4GHz ISM band

Modulation method: GFSK(Gaussian Frequency Shift Keying)

RF Power: -23dbm, -6dbm, 0dbm, 6dbm, can modify through AT

Command AT+POWE.

Speed: Asynchronous: 6K Bytes

Synchronous: 6K Bytes

Security: Authentication and encryption

Service: Central & Peripheral UUID FFE0,FFE1

Power: +3.3VDC 50mA

Long range: Open space have 100 Meters with iphone4s

Power: In sleep mode 400uA~1.5mA, Active mode 8.5mA.

Working temperature:–5 ~ +65 Centigrade

Size: HM- 10 26.9mm x 13mm x 2.2 mm; HM-11 18*13.5*2.2mm

Posted by RD IoT RDIoT

댓글을 달아 주세요

CC2540 BLE Protocol Analyzer (CC2540) [S173]




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


* Specs

Function characteristics:

Size: 4.5 * 1.7 cm

Small volume, light weight, leads to download port and common IO port, standard 1.27mm pin interface

Frequency band, the working frequency is 2.4GHz

Wireless transmission rate up to 1Mbps

Power: receiving the current <20mA, the emission current <25mA

The use of PCB antenna, extended the receiving distance.

With the SmartRF Packet Sniffer can achieve Bluetooth low energy BLE protocol analyzer function, with the CC2540_USBdongle_HostTestRelease_All.hex firmware can use BTool as a PC host computer

The official design, compatible with all the official application. The whole network only ultra narrow frame design.

Posted by RD IoT RDIoT

댓글을 달아 주세요

Bluetooth 4.0 MP3 Decoding Board Module [B147]




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


* Specs

This product support recording function.

In the state of AUX long press mode key to enter the recording, the premise is to have U disk or SD card

Can also be in the U disk or SD card state long press play button to choose play the recording.

Function characteristics:

 

* supported formats: APE FLAC WAV to WMA MP3

* version 4.0 bluetooth chip

* special android APK apple apps for player control operation

* bluetooth push to save in hand pattern in the music scan transfer via bluetooth to players

* mobile phone can read U disk inserted in decoding board/music files in SD card Displayed in the mobile phone Operating as a local file

* radio function, can directly control the automatic searching, manually selected frequency fine tuning

* audio input function, can realize AUX input signal transfer function

* 7 section of the EQ can change automatically presented seven sound effect, to choose from.

DAE will work sound function Can choose virtual bass The high increase. 



Posted by RD IoT RDIoT

댓글을 달아 주세요

Bluetooth Module HC-05 (HC-05) [S128]




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


* Specs

30ft Wireless Bluetooth RF Transceiver Module serial RS232 TTL HC-05 for arduino

HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for transparent wireless serial connection setup.


Typical -80dBm sensitivity

Up to +4dBm RF transmit power

Low Power 1.8V Operation ,1.8 to 3.6V I/O

PIO control

UART interface with programmable baud rate

With integrated antenna

With edge connector


* Contents

PC - FT232RL - HC-05 

Communicate beteween PC and HC-05

Posted by RD IoT RDIoT

댓글을 달아 주세요

HC Serial Bluetooth Module (HC-06) [S018]




HC Serial Bluetooth Module (HC-06) Phone to Slave [S018] 

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


HC Serial Bluetooth Module (HC-06) Mster to Slave [S018]

https://www.youtube.com/watch?v=y8-W5BIm6xU


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


* Specs

Serial port bluetooth, Drop-in replacement for wired serial connections, transparent usage. You can use it simply for a serial port replacement to establish connection between MCU and GPS, PC to your embedded project and etc.

And now, we provide HC-05 and HC-06. HC-05 could be setting to Master or Slave by user. HC-06 has be designed Master or Slave when the factory, user couldn't change the role.


Feature :

Bluetooth protocal:  Bluetooth Specification v2.0+EDR

Frequency:  2.4GHz ISM band

Modulation:  GFSK(Gaussian Frequency Shift Keying)

Emission power:  ≤4dBm, Class 2

Sensitivity:  ≤-84dBm at 0.1% BER

Speed: Asynchronous:  2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps

Security:  Authentication and encryption

Profiles:  Bluetooth serial port

Power supply: +3.3VDC 50mA

Working temperature: -20 ~ +75 Centigrade

Dimension: 26.9mm x 13mm x 2.2 mm


Default : Slave, 9600 baud rate, N, 8, 1. Pincode 1234


* Contents

- Connect

WAKEUP

VCC(3.6~6V) ----- 5V

GND ----- GND

TXD ----- RX

RXD ----- TX

STATE 


- Master Setup

AT

AT+ROLE=M

Arduino Reboot

AT+PIN1234

AT+BAUD4


- Slave Setup

AT

AT+ROLE=S

Arduino Reboot

AT+PIN1234

AT+BAUD4

AT+NAMEbtSlave


- Key Code

@Setup Master or Slave 

#include <SoftwareSerial.h>

 

SoftwareSerial BTSerial(2, 3);

 

void setup()  

{

  Serial.begin(9600);

  BTSerial.begin(9600);

}

void loop()

{

  if (BTSerial.available())

    Serial.write(BTSerial.read());

  if (Serial.available())

    BTSerial.write(Serial.read());

}  


@ Slave Test Source (Phone Master -> Slave)

#include "U8glib.h"

#include <SoftwareSerial.h>

U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);

SoftwareSerial BTSerial(2, 3);

 

char data=NULL;

String str="";

int ledPin = 9;

 

void setup() {

 pinMode(ledPin,OUTPUT);

  Serial.begin(9600);

  BTSerial.begin(9600);

}

 

void loop(void) {

 

  if (BTSerial.available()) 

  {

   //Serial.write(BTSerial.read()); 

    data = (char)BTSerial.read();

   

    if(data == '1') {

      digitalWrite(ledPin,HIGH);

      str = "ON";

    } else if(data == '0') {

      digitalWrite(ledPin,LOW);

      str = "OFF";

    }

   }

 

  // picture loop

  u8g.firstPage();  

  do {

    draw();

  } while( u8g.nextPage() );

  

  // rebuild the picture after some delay

  delay(100);

 

}

 

void draw(void) {

  u8g.setFont(u8g_font_9x15B);

  u8g.setPrintPos(0, 12); 

  u8g.println("HC-06");

 

  u8g.setFont(u8g_font_helvB14);

  u8g.setPrintPos(0,40);

 

  u8g.print("data="+(String)data);

 

  u8g.setFont(u8g_font_helvB14);

  u8g.setPrintPos(0,60);

 

  u8g.print("cmd="+(String)str);

}

 


@ Master HC-06 <-> Slave HC-06 Test Source

#include <SoftwareSerial.h>

SoftwareSerial BT_Serial(2,3); //RX, TX

 

void setup()

{

  Serial.begin(9600);

  BT_Serial.begin(9600); // connect bluetooth

}

 

void loop()

{

  if(BT_Serial.available())

    Serial.write(BT_Serial.read()); // bluetooth read

    

  if(Serial.available())

    BT_Serial.write(Serial.read()); // bluetooth write  

}

Posted by RD IoT RDIoT

댓글을 달아 주세요