Products
Ozeki 10
Introduction
Apps
Connections
SMS
Email
Gamepad
Arduino
Analog Sensor
Button
Buzzer
DC Motor
DHT Sensor
Gyroscope
ID Manager
IR Transceiver
Arduino Mega
Arduino Nano
Arduino Uno
Protocol
Chat Control
Joystick
Keyboard
LCD Display
NFC Reader
Optical Gate
RF 433 MHz
RF 2.4 GHz
RGB LED
RGB Sensor
Rotary Encoder
Servo Motors
Stepper Motors
Switch Controller
Temperature Sensor
Ultrasonic
Orientation
PBX VoIP Phone
Speech Engines
Split view camera
Autoconnect to Serial
Installation guide
Terms and Definitions
HTTP API
Network speed calculate
SMS
Bulk Messenger
Cluster
Developer tools
Robots
Hardware
Technology
Company


Ozeki 10
IR Transceiver IR Transceiver | Arduino Nano Arduino Nano

Arduino Mega 2560

OzIRTransceiver is capable to encode and transmit as well as receive and decode different type of remote controller signals. An infrared LED needs to be wired to the microcontroller to transmit signals. To receive signals you should wire an infrared receiver, for example the 1838B. The most widely used application of this device is to read signals from the most popular remote controller brands.

Required hardware

  • Arduino Mega 2560
  • 1838B infrared IR receiver module
  • Infra Red LED
  • Resistor 100Ω

Before you upload this code to your Arduino, please format the EEPROM...

IR receiver source code to install on controller


#include <OzIDManager.h>
#include <OzIRTransceiver.h>

OzIDManager* manager;
OzIRTransceiver* IRTransceiver;

void setup(){
    Serial.begin(115200);

    manager = new OzIDManager;
    manager->_sendACK = true;
    manager->_checksum = true;

    OzCommunication::setIDManager(manager);

    IRTransceiver = new OzIRTransceiver(2, MODE::RECEIVE);

    int x = 1;
    manager->sendLinkSetup();
    manager->PrintWelcomeLine(IRTransceiver, x++, "MyIRReceiver");
}

void loop(){
    OzCommunication::communicate();
    IRTransceiver->ownLoop();
}

IR transmitter source code to install on controller


#include <OzIDManager.h>
#include <OzIRTransceiver.h>

OzIDManager* manager;
OzIRTransceiver* IRTransceiver;

void setup(){
    Serial.begin(115200);

    manager = new OzIDManager;
    manager->_sendACK = true;
    manager->_checksum = true;

    OzCommunication::setIDManager(manager);

	//Mega D9, Nano, Uno D3 pin
    IRTransceiver = new OzIRTransceiver(MODE::SEND);

    int x = 1;
    manager->sendLinkSetup();
    manager->PrintWelcomeLine(IRTransceiver, x++, "MyIRTransmitter");
}

void loop(){
    OzCommunication::communicate();
    IRTransceiver->ownLoop();
}

Copyright © 2000- - Ozeki Ltd | info@ozeki.hu
Home > Products > Ozeki 10 > Connections > Arduino > IR Transceiver > Arduino Mega
Legal | Privacy policy | Terms of use
Page: 3099 | Login | 34.204.178.160