Products
Technology
SMS solutions
Databases
Modbus
M-Bus
PBX systems
Robotics
Building robot hardware
Building electronics
Building robot software
Introduction/Protocols
Architecture
How to develop a devhandler
Line protocol
DeviceHandlers
Oz433Mhz Transceiver
OzAnalogJoystickController
OzAnalogSensor
OzButtonController
OzBuzzerController
OzDCMotorControllerL298N
OzDHTController
OzEEPROMController
OzKeyboardController
OzGyroscopeSensor
OzIDManager
OzIRTransceiver
Example
OzLCDController
OzNfcReader
OzOpticalGateController
OzRegisterManipulation
OzRF24Transceiver
OzRgbLedController
OzRGB_Sensor
OzRotaryController
OzServoController
OzStepCounter
OzStepperMotorMultiController
OzSwitchController
OzTemperatureController
OzTimer
OzUltrasonicSensor
Examples
Bootloader
Robot training
Upload Arduino code
Company


Ozeki 10
OzIRTransceiver OzIRTransceiver | OzLCDController OzLCDController

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 > Technology > Robotics > Building robot software > Introduction/Protocols > DeviceHandlers > OzIRTransceiver > Example
Legal | Privacy policy | Terms of use
Page: 5567 | Login | 18.204.227.250