Simple Infrared PWM on Arduino

Posted on Monday, May 11th, 2015 in Arduino, infrared by DP


The crew from AnalysIR has written up an article on Simple Infrared PWM on Arduino. This first part of a series will show you how to generate the simple Infrared carrier frequency on Arduino:

We are often asked on discussion boards, about conflicts between IRremote or IRLib and other Arduino Libraries. In this post, we present a sketch for ‘Simple Infrared PWM on Arduino’. This is the first part in a 3 part series of posts. Part 1 shows how to generate the simple Infrared carrier frequency on Arduino, using any available IO pin and without conflicting with other libraries. Part 2 will show how to send a RAW infrared signal using this approach and Part 3 will show how to send a common NEC signal from the binary or HEX value

This entry was posted on Monday, May 11th, 2015 at 11:30 pm and is filed under Arduino, infrared. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

4 Responses to “Simple Infrared PWM on Arduino”

  1. KH says:

    Yeah, yeah, the old change state then delay loop trick.
    This dinosaur asks: Is there any Arduino user who’d move to C/C++ to get proper things done rather than continue with simple coding loops?
    (This is not meant to inflame, rather, such Arduino code always seems… disappointing to me.)

    • rumburack says:

      Why do things proper if they work cheap and dirty?

      For trying a concept (“Does it work?”) I often start with something very simple. Outlining the idea, fishing for problems, limitation etc. The about example looks like such a “proof of concept” to me.

      If it works I start to refactor it into something nicer. And depending of payment (Most customers don’t pay for “beauty of code”) and need, it is refactored multiple times…

      (I don’t see so much different between Wiring/Arduino and C/C++ beside the hassle with stupid make systems, prototypes and f*cking forwards and such…)

    • Max says:

      “Is there any Arduino user who’d move to C/C++ to get proper things done”
      I suspect the answer is “not really”, as in “hardly ever”. The biggest problem with the Arduino is that even though it almost never actually works properly and takes away orders of magnitude of the performance the hardware is actually capable of, 99% of the time it just sort-of-works as-is. In our brave new world where in computing guaranteed unreliability and large-scale pissing away of resources is the accepted way to do things (“just get bigger/better/faster/more/newer hardware”), nobody wonders anymore what the problem might be with that. Unless you’ve experienced otherwise yourself, in which case it becomes unbearable – everybody else seems content with the status quo though.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Joe Desbonnet: Ya, I can recommend the low melting point solder. I used brand 'ChipQuik' and it's amazingly easy to use.
  • Jerome: I need a new BusPirate for the Fablab ;) Many thanks!
  • Max: Seems like an unexpectedly violent way to remove the chip indeed. A hot air station should of course do the job just fine, but in...
  • jose: Part removal described here is pure butchery, the cheapest hot air station will do a fast and clean job removing the QFP, heat air to...
  • Cody: Yes please