AIR SHield ESP8266/ESP32 Tx: Difference between revisions

From AnalysIR WiKi
Jump to navigation Jump to search
 
Line 77: Line 77:


== Tx vs TRx Shield ==
== Tx vs TRx Shield ==
The Tx Shield is the same as [http://www.analysir.com/wiki/index.php?title=A.IR_Shield_ESP8266/ESP32_TRx A.IR Shield ESP8266 TRx], '''except''' it has no IR receive capability and also features 2 IR send outputs. The first is the same dual IR Emitter and the second is a 3.5mm jack for connecting IR blasters.
The TRx Shield is the same as [http://wiki.analysir.com/index.php?title=AIR_SHield_ESP8266/ESP32_Tx A.IR Shield ESP8266/ESP32 Tx], '''except''' the TRx has dual IR receivers & dual IR Leds and no 3.5mm jack.  


Use the '''TRx''' when you:
Use the '''TRx''' when you:
Line 84: Line 84:
* Need to decode or reverse engineer signals.
* Need to decode or reverse engineer signals.
* Don’t need to use an IR blaster cable
* Don’t need to use an IR blaster cable
* Need to send and/or receive IR signals.


Use the '''Tx''' when you:
Use the '''Tx''' when you:

Latest revision as of 16:17, 12 March 2019

A.IR Shield ESP8266 Tx with both Wemos D1 Mini & ESP32 D1 Mini

Where to purchase

Visit AnalysIR's IR Shop where you will find this and a range of similar Infrared solutions.

Data Sheet

The data sheet can be found by clicking here

Loading Firmware

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page

However, please note that there is a different firmware for Tx and TRx shields. Essentially the receive parts are removed from the Tx version.

AnalysIR Setup

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page Essentially the only difference is that you cannot receive signals using the Tx shield. However, you can send previously recorded signals from AnalysIR using the Tx shield for testing and troubleshooting.

IR Power Headers

When looking forward from the rear of the shield, header JP1 is located at the left/centre of the shield(with the IR LEDs pointing forward & USB/3.5mm jack to the rear). Insert both jumpers into the x2 or x3 position to double the IR power. Insert one jumper into the x2 and x3 position to triple the IR power. When inserted left-to-right the jumpers are active, otherwise they are inactive. If both jumpers are inactive the IR power will be x1. These jumpers control the IR power for the 2 IR LEDs only. The IR power going to the 3.5mm jack is constant and at a lower level.

Bear in mind that the shield has 2 IR Emitters, which are configured in such a way as to deliver double the IR over using a single LED, for the same power budget. We usually, configure both a TSAL6100 and a TSAL6200 which are identical except that they emit at different angles, thus giving both wide angle and long range coverage for all your signals.

IR Enable Headers

When looking forward from the rear of the shield, header JP2 is located at the right/centre of the shield (with the IR LEDs pointing forward & USB/3.5mm jack to the rear). The jumper towards the front enables the 2 IR LEDs and the jumper towards the rear enables the 3.5mm jack, when inserted. You can enable either circuit or both. If neither jumper is inserted then there will be no IR emitted. (Some users may want to leverage this to use a relay or mechanical switch to allow control over which circuit is enabled.)

3.5mm Jack

The jack is located at the rear of the shield. You can insert traditional IR blasters with 2 connections on the jack into this socket. this allows you to route signals into cabinets or from behind TV or even form cabinets to target devices. The circuit can be left enabled when not in use. However, make sure to turn off all power when inserting or removing the jack plug.

Inserting Shield into Wemos D1 Mini

Make sure the 2 IR Leds are pointing towards the PCB antenna on the Wemos D1 Mini (opposite end to the USB connector/3.5mm jack). All pins of the shield should be inserted into the female headers

Inserting Shield into ESP32 D1 Mini

Make sure the 2 IR Leds are at the same end as the PCB antenna on the ESP32 D1 Mini (opposite end to the usb connector/3.5mm jack). All pins of the shield should be inserted into the female headers. There will be 2 slots empty on the female headers at the USB/jack end.

LEDs

There are 2 LEDs of interest. The first is located on the Wemos D1 Mini. This LED is on the same IO pin as the IR send pin of the shield. After start-up it will always appear on. If this is an issue, it is relatively easy to remove this LED with a soldering iron. For the ESP32, the LED(s) on board the module is not used. The second LED is at the front of the shield and after startup will briefly flash red as IR signals are transmitted. However, when both IR power jumpers are installed, the LED may not flash or be very dim. This is normal behaviour and is related to the use of the red LED as part of the constant current driver circuit for the IR LEDs.

Pinouts

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page However, please ignore any IR receiver related pins.

Customisation

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page

Sending IR signals from AnalysIR

To send with AnalysIR - just do Menu->Power Tools->Send IR

Sending IR signals without AnalysIR using A.IR format

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page

Sending signals with CURL

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page

Sending Test signals from a HTML POST form

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page

Network Connections to A.IR Shield ESP8266 TRx over WiFi

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page

BAUD Rate

The default BAUD Rate is set at 115,200 bps and may be amended within the firmware. AnalysIR, expects the default value

Precautions

Refer to section in A.IR Shield ESP8266/ESp32 TRx wiki page

In addition, turn off power before inserting or removing the 3.5mm jack.

Using the A.IR Shield ESP8266 TRx with the ESP8266IRremote library

You should just use the following line in your sketch to reflect the use of the A.IR Shield ESP8266 TRx.

For sending IR (Wemos D1 Mini)

IRsend irsend(2); // An IR LED is controlled by GPIO pin 2 (D4)

For receiving IR Not supported with shield - use the TRx shield instead.

Tx vs TRx Shield

The TRx Shield is the same as A.IR Shield ESP8266/ESP32 Tx, except the TRx has dual IR receivers & dual IR Leds and no 3.5mm jack.

Use the TRx when you:

  • Need to receive signals or measure carrier frequency – with or without AnalysIR
  • Need to decode or reverse engineer signals.
  • Don’t need to use an IR blaster cable
  • Need to send and/or receive IR signals.

Use the Tx when you:

  • Need to use an IR blaster cable
  • Need to send IR in 2 different positions (inside/outside cabinet)
  • Need to send to multiple devices in different positions
  • Don’t need Rx or decoding capability.

Getting Support

If you need additional support please open a new issue in our IRforum - under Products:Support Requests.

More Information

If...

  • There is a topic not covered here or
  • You would like us to add some more information or
  • You have a tip to add or
  • you have noticed a mistake

then let us know via the contact page