Grove - Infrared Receiver

Similar documents
Grove - Infrared Temperature Sensor

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

Grove - Collision Sensor

Grove - 433MHz Simple RF link kit User Manual

EARTH PEOPLE TECHNOLOGY. EPT-200TMP-TS-U2 Temperature Sensor Docking Board User Manual

User Manual. Grove - IR Distance Interrupter. Release date: 2015/9/22. Version: 1.0

Grove - Gas Sensor(MQ9)

Portland State University MICROCONTROLLERS

Arduino Lesson 1. Blink. Created by Simon Monk

INA169 Breakout Board Hookup Guide

AS726X NIR/VIS Spectral Sensor Hookup Guide

Grove - I2C Color Sensor User Manual

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

CPSC 226 Lab Four Spring 2018

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

Application Note AN 157: Arduino UART Interface to TelAire T6613 CO2 Sensor

smraza Getting Start Guide Contents Arduino IDE (Integrated Development Environment)... 1 Introduction... 1 Install the Arduino Software (IDE)...

Programming 2 Servos. Learn to connect and write code to control two servos.

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

APDS-9960 RGB and Gesture Sensor Hookup Guide

Computational Crafting with Arduino. Christopher Michaud Marist School ECEP Programs, Georgia Tech

Grove - HCHO Sensor. Release date: 9/20/2015. Version: 1.0. Wiki:

ZX Distance and Gesture Sensor Hookup Guide

Adafruit 16-Channel Servo Driver with Arduino

URM37 V3.2 Ultrasonic Sensor (SKU:SEN0001)

FABO ACADEMY X ELECTRONIC DESIGN

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

Adafruit 16-Channel Servo Driver with Arduino

Arduino and Servo Motor

The wiring is relatively simple. You should put the module on one of the compatible Arduinos. The following are compatible:

Operating Mode: Serial; (PWM) passive control mode; Autonomous Mode; On/OFF Mode

TWEAK THE ARDUINO LOGO

Arduino An Introduction

Experiment 1 Identification of Components and Breadboard Realization

Adafruit SGP30 TVOC/eCO2 Gas Sensor

Lesson 13. The Big Idea: Lesson 13: Infrared Transmitters

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

Using the S5U13781R01C100 Shield Graphics Library with Atmel Studio

Capacitive Touch with Conductive Fabric & Flora

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman

ArduCAM USB Camera Shield

Milli Developer Kit Reference Application Published on Silver Spring Networks STAGE (

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

HC-SR501 Passive Infrared (PIR) Motion Sensor

Gravity: 12-Bit I2C DAC Module SKU: DFR0552

DHT11 Electronic Brick of Digital Temperature & Humidity Sensor

Community College of Allegheny County Unit 4 Page #1. Timers and PWM Motor Control

Lesson 3: Arduino. Goals

Megamark Arduino Library Documentation

LESSONS Lesson 1. Microcontrollers and SBCs. The Big Idea: Lesson 1: Microcontrollers and SBCs. Background: What, precisely, is computer science?

Welcome to Arduino Day 2016

Sten BOT Robot Kit 1 Stensat Group LLC, Copyright 2016

CONSTRUCTION GUIDE Light Robot. Robobox. Level VI

Internet of Things Student STEM Project Jackson High School. Lesson 2: Arduino and LED

ESC 100: Exploring Engineering. Fall Lab 2: Calibrating An Infrared Distance Sensor

You'll create a lamp that turns a light on and off when you touch a piece of conductive material

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

Security in a Radio Controlled Remote Switch

Application Note AN 102: Arduino I2C Interface to K 30 Sensor

Programming a Servo. Servo. Red Wire. Black Wire. White Wire

Parts List. Robotic Arm segments ¼ inch screws Cable XBEE module or Wifi module

Community College of Allegheny County Unit 7 Page #1. Analog to Digital

LAUNCHPAD. Getting Started Guide

Robotic Arm Assembly Instructions

RFBee User Manual v1.0

1. Introduction to Analog I/O

LED Driver 5 click. PID: MIKROE 3297 Weight: 25 g

RC5 Infrared board. EB060

XLR PRO Radio Frequency (RF) Modem. Getting Started Guide

VBRC 5. Radio Communicator. Installer Manual

Montgomery Village Arduino Meetup Dec 10, 2016

CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike. Robobox. Level VII

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

VBRC 4. Radio Communicator. Installer Manual

Lab 2: Blinkie Lab. Objectives. Materials. Theory

1Getting Started SIK BINDER //3

Arduino Hacking Village THOTCON 0x9

A circuit for controlling an electric field in an fmri phantom.

Follow this and additional works at: Part of the Engineering Commons

Servo board bit machine software use: QSC32 Servo controller front. QSC32 Servo controller back

Coding with Arduino to operate the prosthetic arm

TETRIX Servo Motor Expansion Controller Technical Guide

arduino networking F27EBFB1FE7F3F332D72989D873678CF Arduino Networking 1 / 6

Adafruit 16-Channel Servo Driver with Arduino

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Arduino as a tool for physics experiments

keyestudio keyestudio Mini Tank Robot

Blackaddr Audio. GTA Pro (PCB Rev 2/A) User Guide v1.0

Practical Assignment 1: Arduino interface with Simulink

100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS

Veyron Servo Driver (24 Channel) (SKU:DRI0029)

Arduino: Sensors for Fun and Non Profit

URM37 Ultrasonik Mesafe Sensörü - Arduino - Raspberry Pi - LattePanda Uyumlu - DFRobot

Robotycs - YLab Robotics Group Toy Hacking Workshop Part 2 November 11, 2015

1 Lab + Hwk 4: Introduction to the e-puck Robot

Content Components... 1 i. Acrylic Plates... 1 ii. Mechanical Fasteners... 3 iii. Electrical Components... 4 Introduction... 5 Getting Started... 6 Ar

Moto1. 28BYJ-48 Stepper Motor. Ausgabe Copyright by Joy-IT 1

Transcription:

Grove - Infrared Receiver The Infrared Receiver is used to receive infrared signals and also used for remote control detection. There is an IR detector on the Infrared Receiver which is used to get the infrared light emitted by the Infrared Emitter. The IR detector have a demodulator inside that looks for modulated IR at 38 KHz. The Infrared Receiver can receive signals well within 10 meters. If more than 10 meters, the receiver may not get the signals. We often use the two Groves-the Infrared Receiver and the Grove - Infrared Emitter to work together. Version Product Version Changes Released Date Grove Infrared Receiver v1.0 Initial Nov. 01 2015 Grove Infrared Receiver v1.1 Change the Silkscreen Jul. 24 2016

Specifications Voltage: 3.3-5V Distance:10m Tip More details about Grove modules please refer to Grove System Platforms Supported Arduino Raspberry Pi BeagleBone Wio LinkIt ONE Caution The platforms mentioned above as supported is/are an indication of the module's hardware or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library. Getting Started The Grove - Infrared Emitter can send data while Grove - Infrared Receiver will receive them. Play With Arduino Note If this is the first time you work with Arduino, we firmly recommend you to see Getting Started with Arduinobefore the start.

Hardware Step 1. Prepare the below stuffs: Seeeduino V4.2 Base Shield Grove Infrared Emitter Grove Infrared Receiver Step 2. Connect Grove - Infrared Emitter to port D3 of one Grove-Base Shield. Step 3. Connect Grove - Infrared Receiver to port D2 of the other Grove-Base Shield. Step 4. Plug Grove - Base Shield into Seeeduino. Step 5. Connect Seeeduino to PC via a USB cable. Note If we don't have Grove Base Shield, We also can directly connect this module to Seeeduino as below.

Seeeduino 5V GND Not Conencted D3 Grove Infrared Emitter Red Black White Yellow 5V GND Not Conencted D2 Red Black White Yellow Software Step 1. Download the IRSendRev-master library from Github. Step 2. Refer How to install library to install library for Arduino. Step 3. Restart the Arduino IDE. Open recv example via the path: File->Examples- >Grove - Infrared Receiver And Emitter->recv.

Or you can open a new sketch and copy the belowing code into your Arduino IDE. 1#include <IRSendRev.h> 2 3#define BIT_LEN 0 4#define BIT_START_H 1 5#define BIT_START_L 2 6#define BIT_DATA_H 3 7#define BIT_DATA_L 4 8#define BIT_DATA_LEN 5 9#define BIT_DATA 6 10 11const int pinrecv = 2; // ir receiver connect to D2 12 13void setup() 14{ 15 16 17 Serial.begin(115200); IR.Init(pinRecv); Serial.println("init over"); 18} 19 20unsigned char dta[20]; 21 22void loop() 23{ 24 if(ir.isdta()) // get IR data 25 26 27 { IR.Recv(dta); // receive data to dta 28 29 30 31 32 33 34 Serial.println("+------------------------------------------------------+"); Serial.print("LEN = "); Serial.println(dta[BIT_LEN]); Serial.print("START_H: "); Serial.print(dta[BIT_START_H]); Serial.print("\tSTART_L: "); Serial.println(dta[BIT_START_L]); 35 36 37 38 39 Serial.print("DATA_H: "); Serial.print(dta[BIT_DATA_H]); Serial.print("\tDATA_L: "); Serial.println(dta[BIT_DATA_L]); 40 41 42 Serial.print("\r\nDATA_LEN = "); Serial.println(dta[BIT_DATA_LEN]); 43 44 45 46 47 48 49 50 51 Serial.print("DATA: "); for(int i=0; i<dta[bit_data_len]; i++) { Serial.print("0x"); Serial.print(dta[i+BIT_DATA], HEX); Serial.print("\t"); } Serial.println(); 52 53 54 Serial.print("DATA: "); for(int i=0; i<dta[bit_data_len]; i++)

55 56 57 58 59 60 61 62} } { Serial.print(dta[i+BIT_DATA], DEC); Serial.print("\t"); } Serial.println(); Serial.println("+------------------------------------------------------+\r\n\r\n"); Step 4. Upload the recv demo to the seeeduino with Grove - Infrared Receiver. If you do not know how to upload the code, please check how to upload code. Step 5. Open send example via the path: File->Examples->Grove - Infrared Receiver And Emitter->send. Or you can open a new sketch and copy the belowing code into your Arduino IDE. 1#include <IRSendRev.h> 2 3#define BIT_LEN 0 4#define BIT_START_H 1 5#define BIT_START_L 2 6#define BIT_DATA_H 3 7#define BIT_DATA_L 4 8#define BIT_DATA_LEN 5 9#define BIT_DATA 6 10 11const int ir_freq = 38; // 38k 12 13unsigned char dtasend[20]; 14 15void dtainit() 16{ 17 dtasend[bit_len] = 11; // all data that needs to be sent 18 dtasend[bit_start_h] = 179; // the logic high duration of "Start" 19 dtasend[bit_start_l] = 90; // the logic low duration of "Start" 20 dtasend[bit_data_h] = 11; // the logic "long" duration in the communication 21 22 dtasend[bit_data_l] = 33; // the logic "short" duration in the communication 23 dtasend[bit_data_len] = 6; // Number of data which will sent. If the number is other, you 24should increase or reduce dtasend[bit_data+x]. 25 26 dtasend[bit_data+0] = 128; // data that will sent 27 dtasend[bit_data+1] = 127; 28 dtasend[bit_data+2] = 192; 29 dtasend[bit_data+3] = 63; 30 dtasend[bit_data+4] = 192; 31 dtasend[bit_data+5] = 63; 32} 33 34void setup() 35{ 36 dtainit(); 37} 38

39void loop() 40{ 41 IR.Send(dtaSend, 38); 42 43 delay(2000); } Step 6. Upload the send demo to the seeeduino with Grove - Infrared Emitter. Step 7. Open the Serial Monitor of Arduino IDE by click Tool-> Serial Monitor. Or tap the Ctrl + Shift + M key at the same time. If every thing goes well, The result should be like: Resources [Zip] Grove - Infrared Receiver eagle files [Lib] IR Send and Receiver Library [Lib] IR Receive Library for LinkIt ONE [Pdf] TSOP282 Datasheet

Projects IR LaunchPad to LaunchPad Communication: Send text from one LaunchPad to another using the Grove IR emitter and receiver! Tech Support Please submit any technical issu into our forum or drop mail to techsupport@seeed.cc http://wiki.seeedstudio.com/grove-infrared_receiver/ 11-30-18