Coder Social home page Coder Social logo

Comments (10)

markszabo avatar markszabo commented on August 20, 2024 1

It's usually 38 by other encodings (simply check how they call enableIROut()), so that would be my guess

from irremoteesp8266.

markszabo avatar markszabo commented on August 20, 2024

There is a sendRaw() function which can be used to send the rawData array, but that doesn't always work.

from irremoteesp8266.

casper-gh avatar casper-gh commented on August 20, 2024

Thanks @markszabo, but what value should I use for Hz parameter?

from irremoteesp8266.

casper-gh avatar casper-gh commented on August 20, 2024

Much appreciated, it works perfect with value 38.

However I have a last question, kind of out of scope of this app, but I'm new to Arduino:

How do I set up the ESP8266 Arduino so the sketch starts automatically when the system reboots? When I disconnect the power from system, the sketch is gone, and I have to redeploy it.

from irremoteesp8266.

markszabo avatar markszabo commented on August 20, 2024

Okay, just to make sure we are on the same page: you have an ESP8266 microcontroller (hardware), and you are using the Arduino IDE (software) to program it, right? In this case if you restart your ESP8266 (or just simply disconnect the power) the sketch should automatically restart.
However when ESP8266 starts it checks the GPIO0 pin. If that pin is LOW, then it will go to bootloader mode and wait for a new sketch to be uploaded. If it receives the new sketch, it stores it and then starts it (regardless of the state of the GPIO0 pin). But if your GPIO0 pin is still LOW, then when you restart it, it will go to bootloader mode again and wait for a new sketch. So check if your GPIO0 pin is LOW at startup :)

from irremoteesp8266.

casper-gh avatar casper-gh commented on August 20, 2024

@markszabo Yes we're on the same page, and I'm using the IRServer so the pin is set to 0 by its default. However after I disconnect and reconnect the power, I couldn't access the web server anymore.

Sorry for being dumb, but what does is mean when you say "pin is LOW", and how can I set it to HIGH or whatever it is for the autostart to work?

Thanks a lot

from irremoteesp8266.

casper-gh avatar casper-gh commented on August 20, 2024

Okay I figured it out, I need to use GPIO4 for the IR emitter data instead if GPIO0 (changed IRsend irsend(0); to IRsend irsend(4); in IRServer) based on this blog post https://zoetrope.io/tech-blog/esp8266-bootloader-modes-and-gpio-state-startup.

from irremoteesp8266.

skyforcetw avatar skyforcetw commented on August 20, 2024

I'm processing UNKOWN IR encoding recently.
I found there are a bit difference in IRremote between avr & ESP8266 version:

avr version: A long space will create a STOP state in IR receive.
ESP8266 version: Continued receive until read timeout.

This difference may cause avr receive one IR packet and STOP, ESP8266 receive more packets and signal length is non stable.

Is any chance to improve this?

from irremoteesp8266.

Joypacharya avatar Joypacharya commented on August 20, 2024

I thought you are decoding AC remote.
You should increase your Buffer size.If you do this thing then you will get definitely result.
In such case this is happyend. So,try it and reply me back.

from irremoteesp8266.

crankyoldgit avatar crankyoldgit commented on August 20, 2024

Closing this issue due to inactivity and it appears the original request has been addressed.

from irremoteesp8266.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.