# Serial confusion

**URL:** <https://community.particle.io/t/serial-confusion/17255>\
**Category:** Troubleshooting\
**Created:** [November 8, 2015, 4:39pm UTC](https://community.particle.io/t/serial-confusion/17255 "2015-11-08T16:39:23Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![AnalysIR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/analysir/32/2071_2.png) [@AnalysIR](https://community.particle.io/u/AnalysIR)\
**Post date:** [November 10, 2015, 1:27pm UTC](https://community.particle.io/t/serial-confusion/17255/8 "2015-11-10T13:27:10Z")

</div>

@Infinity see the post below for a hardware PWM hack.  
Unfortunately, it makes use of the Tx pin, which may be an issue for you.

> [@Backdoor uPWM Hack on Photon for Infrared signals using UART](https://community.particle.io/t/backdoor-upwm-hack-on-photon-for-infrared-signals-using-uart/16137):
>
> We have finally found an easy way to get Hardware PWM for Infrared signals using the Photon, using the UART hack below. It may also be of use to others looking for faster PWM and variable duty cycles at 10% intervals. The full source code and IR driver circuit are availabe via the link above or via [http://www.AnalysIR.com/](http://www.AnalysIR.com/) PS: This should also work on Spark & other fast MCUs, if needed. (untested) .[image]

We made an earlier post showing how to generate softPWM, which would work for short bursts, but probably not for continuous PWM. (Follow link in this post)

> [@Photon: Sending Infrared remote control signals](https://community.particle.io/t/photon-sending-infrared-remote-control-signals/12730/12):
>
> I’ll start a new project thread when I have something more interesting but I can verify your IR sending code works on a Spark Core without any modifications. Here is the start of my project: [https://github.com/edalquist/ac\_ir\_control](https://github.com/edalquist/ac_ir_control) The IR recorder code is directly from your blog. The IR sending code is slightly modified with some extra debugging and a safety check for bad IR code data. With those I managed to capture the on/off button from the remote with an Arduino Uno and then replay tha…

---

_[View the full topic](https://community.particle.io/t/serial-confusion/17255)._
