28
STEP1:
Plug two Crowtail-Motor Base Shields onto two Arduino or Crowduino boards respectively.
Hardware Connection
STEP2:
Open the downloaded folder “Crowtail Deluxe Kit for Arduino demo code”, navigate to the
folder “lib”, and add “IRSendRev” folder to the Arduino library.
STEP3:
Connect Crowtail-Infrared Emitter and Crowtail-Collision Sensor to D3 and D2 port of
Crowtail-Motor Base Shield. Open the P13_IR_Emitter inside the P13_IR_Control folder with Arduino
IDE and upload it.
STEP4:
Connect Crowtail-Infrared Receiver, Crowtail-LED and Crowtail-Buzzer to D2, D3 and D4
port of Crowtail-Motor Base Shield. Open the P13_IR_Receiver inside the P13_IR_Control folder
with Arduino and upload it.
The Infrared Emitter is an LED make from gallium arsenide, with
its color centered around 940nm. It's used to transmit infrared
signals through an infrared LED, while there is an Infrared
receiver to get the signals on the other side. We can not only use
the emitter to transmit data or commands, but also to emulate
remotes to control your home appliance using an Arduino.
The Crowtail- IR Receiver module uses the HS0038B which is miniaturized
receivers for infrared remote control systems and it is the standard IR
remote control receiver series, supporting all major transmission codes.
The IR detector has 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 Crowtail-Infrared Receiver and the Crowtail-Infrared Emitter to work
together.
Infrared control allows people to wirelessly control various electronic devices, especially widely used
by household appliances, such as your TV remote control, air conditioner remote control, etc. In
addition, it would be a good idea to use Infrared control to control your smart car. Therefore, in this
lesson, we will use Crowtail- Infrared Emitter and Crowtail- Infrared Receiver to make our own IR
control system to control led and buzzer.
Lesson 13 – IR control
Arduino Uno/Crowduino Uno x2
Crowtail - Motor Base Shield x2
Crowtail - Infrared Emitter x1
Crowtail - Infrared Receiver x1
Crowtail - Collision Sensor x1
Crowtail - LED x1
Crowtail - Buzzer x1
Crowtail - Cable x5
Required Parts
Introduction
Содержание Crowtail Deluxe Kit
Страница 47: ......