M5Stick IR
-
Hi all,
is there a sketch to test IR receiver on M5Stick??
I would like to send ir from a remote like this:

wich arduino library?
tnks
-
Hello, @cepics There are some projects on Github.com you can refer to.
-
@m5-docs thanks for pointing on this. digging the rabbit hole ended at this repo: https://github.com/crankyoldgit/IRremoteESP8266. very cool. very stable and very active to the moment.
but unfortunately my m5stick(gray version) nor stick_c (orange version with color lcd) does not work with it.
I used G17 for gray stick and G9 for stick_c as ir_pin - no luck - my mitsubishi AC does not respond to sent requests.
I wondering if I need change anything in IRremoteESP8266 code to make it run over IR or what is the way to verify IR on stick or stick_c works properly.
Specifically - the IRSend class in IRremoteESP8266 just uses:
pinMode(IRpin, OUTPUT); -> to start
and
digitalWrite(IRpin, outputOn);/digitalWrite(IRpin, outputOff);
to ledOn and ledOffwhile FactoryTest.ino for stick does this:
ledcSetup(1, 38000, 10);
ledcAttachPin(IrPin, 1);So my question is - are these two calls significant or I can ignore it?
-
OK - replying to myself just to provide information for further researchers.
The repo https://github.com/crankyoldgit/IRremoteESP8266 works just fine (I used theirs IRMQTTServer example). compile it specifying 17 as kDefaultIrLed and that 's it. But - I've found that IR works only if I place it very very close to the subject. ie to control my AC I have to place it say in 20 cm to its IR receiver... that was really unexpected....
@m5-docs so question is - I use default parameter for IRSend library which assumes usage of 50% duty. can I increase duty to 100% safely (w/o risk to destroy IR Led on my M5Stick or on M5StcikC - I have both) in order to increase distance? -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login