Tag Archives: IR LED

ESP8266 NodeMCU Backdoor uPWM Hack for IR signals

We received our ESP8266 NodeMCU several months ago it has been difficult to find a working example of Hardware PWM to generate crisp Infrared carrier signals. Most posts we have read suggest that there is no PWM readily available on any of the supported platforms. As we have already shown with Arduinos and the Particle Photon we figured it would be possible to use a spare UART pin on the ESP8266 NodeMCU to achieve our goal.  After some initial success we encountered some watchdog timeouts/resets and it seemed like the uPWM hack would not be possible on the ESP8266 Node MCU platform. For a few weeks we ‘parked’  the effort and today we decided to try again with all of the latest and updated firmware available from the ESP8266 community via the Arduino IDE. This time we were successful and the ESP8266 NodeMCU Backdoor uPWM Hack for IR signals using works!

ESP8266 NodeMCU uPWM Inverted IR Circuit
ESP8266 NodeMCU uPWM Inverted IR Circuit

Continue reading ESP8266 NodeMCU Backdoor uPWM Hack for IR signals

ESP8266 NodeMCU Infrared decoding added to AnalysIR

A few months ago a new user to AnalysIR, from Canada, asked us to assist in adding ESP8266 NodeMCU Infrared decoding over WiFi into  AnalysIR. We set about making some upgrades to AnalysIR for this and in double quick time he had AnalysIR accepting IR signals from the ESP8266 over WiFi. He stressed the ease of use of the support within the Arduino IDE for ESP8266 devices and he wasn’t kidding. This motivated us to go and order an ESP8266 for US$3.60 including shipping from Aliexpress. Just the other day the NodeMCU arrived, presumably  delayed somewhat by the extended XMAS holidays & celebrations, in this part of the world. So we set about porting our existing firmware for Arduino & Photon over to the new device.

ESP8266 NodeMCU Infrared decoding with AnalysIR
AnalysIR supports ESP8266 NodeMCU over WiFi & Serial/USB

ESP8266 NodeMCU now joins a growing list of devices supported for use with AnalysIR, including: Continue reading ESP8266 NodeMCU Infrared decoding added to AnalysIR

Troubleshooting the Big Button Infrared remote control with AnalysIR

Marco is  a volunteer for an organization (NSW Australia) that builds custom aids for people with disability, and has recently been looking at a project to create a ‘very large button’ IR remote control for a cable TV Set Top Box (STB). The custom unit needed basic functions (Channel Up/Down, Volume Up/Down and Power On/Off). Commercially available large button remotes have buttons that are still too small and/or they have too many buttons. Soon he hit a roadblock trying to capture some difficult Foxtel signals and searched all over the web looking for a solution. Needless to say, nothing worked out for him until he came across AnalysIR via Google. Once he started Troubleshooting the Big Button Infrared remote control with AnalysIR the root cause of his problems became obvious.

Troubleshooting the Big Button Infrared remote control with AnalysIR
Marco’s Big Button Infrared Remote control

Continue reading Troubleshooting the Big Button Infrared remote control with AnalysIR

Preview: A.IR Shield Photon, a high-end Infrared Shield for AnalysIR

The final member of our first MakeIR series of devices & kits is the A.IR Shield Photon. This shield works out of the box with AnalysIR and is essentially plug & play, with additional prototyping options. The shield plugs into a (Particle) Photon with headers or pin-compatible clone. Although designed specifically for AnalysIR, users can also upload any sketches that run on the Photon for Infrared remote control projects by customising the included firmware. A.IR Shield Photon is built with only the highest quality IR components available and boasts dual Infrared emitters with configurable IR Power. The supplied firmware supports hardware PWM for sending IR signals.

A.IR Shield Photon block diagram RevA
A.IR Shield Photon block diagram

We have provided a link below to the preliminary product data sheet and would welcome feedback on additional, nice to have or missing features, if any. Please read the data sheet for a more detailed description of the A.IR Photon shield.

MakeIR - AIR Shield Photon
MakeIR – AIR Shield Photon

Continue reading Preview: A.IR Shield Photon, a high-end Infrared Shield for AnalysIR

Backdoor uPWM Hack on Photon for Infrared signals using UART

Since we received our Photon several months ago it has been difficult to find a working example of Hardware PWM on the Photon. Initially, we ported our softPWM approach to the Photon, which is excellent. However, we figured it must be possible to use at least one of the spare UARTs on the Photon to achieve our goal. So first we started prototyping on the Arduino and quickly got a working example with some limitations – only 40 kHz and 33 kHz carrier frequencies were possible with the UART without delving into the registers a bit more. Then we moved the code over to the Photon, leveraging our previous softPWM examples, upgraded with the Arduino code – EUREKA! The Backdoor uPWM Hack on Photon for Infrared signals.

uPWM Circuit diagram for Photon
uPWM Circuit diagram for Photon using UART

Continue reading Backdoor uPWM Hack on Photon for Infrared signals using UART

Latest release of AnalysIR V1 preview #2 is now available for download

Dublin, Ireland – 17th April 2015. We are happy to announce the latest release of AnalysIR V1 preview #2 is now available for download by our backers & supporters. Existing users of AnalysIR will receive an email with instructions on how to download this version. New users will receive the details as part of the registration process.

AnalysIR Screenshot
AnalysIR Screenshot

A major highlight of this release is full AnalysIR support for our soon to be released LearnIR (IR Learner). LearnIR delivers the best performance available for receiving and sending Infrared signals with excellent accuracy.

View the AnalysIR Product Sheet(PDF)

We would like to extend a big thanks to the many users around the world who have helped with feature requests, new protocols and testing over the last months.

Some Highlights in this latest release include:

Continue reading Latest release of AnalysIR V1 preview #2 is now available for download

Driving an Infrared Led directly from an Arduino Pin

logobutton200x200A common question asked on forums is one about – Driving an Infrared Led directly from an Arduino pin.  Although the answer may be obvious to anyone with at least a basic knowledge of Ohm’s Law, many are confused about how to choose a resistor value for optimum performance. Often, there is a debate about whether a resistor is required at all, given that the AVR pins are rated to deliver an absolute maximum of 40mA on a pin. (Note: All of the quoted specs in the data sheet are for test conditions of up to 20mA on a pin). Of course there are better ways to drive an IR LED with a transistor circuit or even a constant current circuit. However, in this post we consider only the direct drive circuit using a current limiting resistor, as illustrated in the diagram down below.
Make sure to read the caveats at the end of this post.

Analysis of Voltage & Current for Infrared Led driven by Arduino
Analysis of Voltage & Current for Infrared Led driven by Arduino

Continue reading Driving an Infrared Led directly from an Arduino Pin

Poor maker’s Infrared receiver #2

Our recent post about the silver bullet IR receiver proved very popular and we promised that we would follow-up with another variant of the poor maker’s Infrared receiver. This time we are using an IR Led (emitter), 2 resistors and any standard Arduino. You will also need to download the Arduino code provided below, compile and upload it. One of the most common problems encountered when trying to decode IR signals is that makers don’t always have the appropriate IR receiver for the job in hand or have to wait for one to be delivered by mail. Here we present an affordable method to allow you to use any IR emitter (LED) as a receiver and as a bonus we are publishing the Arduino code to make it all work.

Circuit Diagram: Poor maker's IR Receiver
Circuit Diagram: Poor maker’s IR Receiver

Continue reading Poor maker’s Infrared receiver #2

Infrared Component Kits

We have decided to offer a small number of Infrared Component Kits to help users of AnalysIR get started quickly. As a minimum you will require 1 IR receiver to use AnalysIR, plus we highly recommend the ‘IR Learner’ below if you also want to measure modulation frequency.

(Note: This is an updated copy of the original document from the crowd-funding campaign. The original document can be found here.)

IR receivers/emitter in Infrared Component Kits:

ModelFrequencyDescriptionGainTypical Application
TSSP403838kHz1 x IR receiverFixed GainBarrier + AnalysIR
TSMP5800020 -> 60kHz1 x IR receiverLearner + AnalysIR
TSOP443636kHz1 x IR receiverAGC 4RC5/6
TSOP3443838kHz1 x IR receiverAGC 4NEC
TSOP484040kHz1 x IR receiverAGC 2SONY
TSOP225656kHz1 x IR receiverAGC 2RCA
TSAL6100All1 x IR emitterIR LED transmitter

AGC 2: Standard Applications
AGC 4: Very Noisy Environment

Kits do not include AnalysIR

Select one or more kits from the following:

ItemKit AKit BKit CKit DKit EKit F
TSSP4038YYYYYY
TSMP58000YYYYYY
TSOP4436YYYY
TSOP34438YYYY
TSOP4840YY
TSOP34156Y
TSAL6100YYYYY
Bonus Giftsee 11
below
YYYYYY
Shippingsee 9
below
YYYYYY
Student TipYYYYYY
Perk Price$8$10$10$12$13$15

 Y = Included

Instructions:

  1. Select the kit you want based on the items included
  2. For example, Kit A contains 1 x TSSP4038, 1 x TSMP58000, plus shipping (see 9 below) and a small tip/gratuity for the student.
  3. Then purchase the kit or kits you want by contributing the relevant cost (or sum for multiple kits)
  4. To purchase Kit A just make  an $8 payment  via the PayPal button on this page. To purchase multiple kits just make one contribution to the same perk for the total amount.
  5. If you select Kit B or Kit C then include  a message on PayPal to clarify which perk you want.
  6. These component Kits do not include AnalysIR.
  7. Cost increased (Sep 2014) due to increase in postage.
  8. TSOP4438 replaced with more modern TSOP34438.
  9. Shipping: is included in price above, provided you are also buying AnalysIR or have bought AnalysIR previously. Otherwise, add $5 to the prices above (once only) for worldwide shipping.
  10. Delivery, usually takes from 5->10 working days. There may be some exceptions to this – depending on location.
  11. Bonus gift: We also include a selection of useful components, with all kits, to help with your IR projects. (2 x NPN + 8 x resistors … enough to complete a good Infrared emitter circuit for longer range)

Notes:

  1. Please feel free to order these parts directly your-self. We won’t be offended in any way. We are not offering these to make any $$$ at all. In fact it is much less work for us if backers have or supply their own components.
  2. Kit A, B or C is more than adequate for most users.
  3. Standard shipping worldwide for owners of AnalysIR is included, Otherwise add an extra $5, as per Instruction 9 above.  Postage is not tracked or insured. Unfortunately, we cannot provide any replacements for items mislaid in the post or delivery failures. Due to the low value, we do not expect that there would be customs charges etc.  and if there are any you will have to cover this cost.
  4. We have included a small tip/gratuity for the student who has agreed to pack & post these perks.
  5. This perk is intended as a quick start aid for backers.
  6. These perks will be posted from Dublin, Ireland and typically take 5-10 working days depending on worldwide destination.
  7. You can select multiple kits.
  8. All kit IR components are from Vishay, who are a leading supplier of high quality components. We use them all the time for IR components.
  9. We have allowed for the Sales Tax, IGG, PayPal, Currency & inward shipping charges which will be levied on us for these components.
  10. We reserve the right, at our sole discretion, to alter or replace any component if it is not available when we order them. However, we will do our best to match functionality as much as is reasonable. Hopefully this won’t be an issue.
  11. We have not included any Arduinos as they are freely available online. Many of these kit components are not easily available in quantities of 1, without excessive mark-ups, high minimum orders or postage.
  12. Shipping will be to PayPal registered address. (Let us know, immediately, if you want it sent to an alternative address)
  13. Use the Contact Form to contact us, directly.

E.&O.E.