-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinout #7
Comments
To GND by default |
When we put LED IR to GPIO0 ESP 8266 ESP 12E always at programming mode, can I change to another GPIO ? |
Sure, just use eg. irsend(1) instead of irsend(0) and connect your ir led to GPIO1 |
if connect the gpio0 to the led the esp would go in flashmode, change to gpio2 the blue light on the esp-01 stay bright (uart-mode?) someone a simple idea how to solve that problem?? |
Use irsend(5) to use gpio05 |
on an ESP8266-ESP01??
there are only 2 gpio pins, or am I wrong?
|
Sorry |
If you are not using Serial, there are two more pins available (rx and tx) in esp8266-01 that can be used like regular gpio. |
I think you may be able to use GPIO0 and GPIO2 for irsend, if you connect the led in reverse order, and change the library a bit. |
hey mark. yes, now they boots up perfectly... but the ir-led is always "bright" edit: but hey - they works. |
hm could you try this simple sketch: Change 0 to 2 if you are using that pin. This should leave your led turned off. Now change from digitalWrite(0, HIGH) to digitalWrite(0,LOW), and run it. It should turn on the led and keep it that way. |
void setup() { = dark LED void setup() { = bright LED VCC connected to LED+, GPIO2 on LED- |
This is exactly the expected behavior. Now if you edited the library correctly, it should set the pin HIGH in the end of the transmission, thus it should be dark. Are you sure you are editing the code of the library which is used by the arduino IDE? Try to make some obvious mistakes, like write a non-existing command in the library, save it, and then try to compile some code in the IDE using the library. It should throw an error message. Maybe you have to restart the IDE to recognize the changed library, but for me I don't have to do that. |
set ... void IRsend::mark(int time) { ...to ...void IRsend::mark(int time) { ...and save the file gets errors in compilingC:\Program Files (x86)\Arduino\libraries\IRremoteESP8266\IRremoteESP8266.cpp: In member function 'void IRsend::mark(int)': so the IDE works correctly. But hey.. sending IR codes still works. if the code/library to be used in battery-powered devices, it would be better the LED would be off while "standbying" |
Well, if sending IR codes works, then you can simply turn of the led after sending with digitalWrite(2, HIGH). Btw are you sure, that you also changed the library in the 321. line? It's in the function IRsend::space(int time) and it should be digitalWrite(IRpin, HIGH) for you (the default is LOW). |
you can use esp-01 without problems (GPIO 2 = irsend(2)). just change irinverter to true (irsend.cpp) and add the lines below in setup (.ino) and use vcc default for IRemiter. |
@bragasil Do you have a circuit diagram for your ESP-01 circuit that we can have so we can show ESP-01 users how to do this? |
If you use the code in the master branch (or any release after v2.3.2)
|
remembering that at the time of uploading the firmware the led should not be connected. Another issue is that if the infrared led is low power, it is not necessary to use a drive or even a resistor. |
Can you tell me if the pin conection is GPIO0 ( irsend(0) ) to GND or to 3.3V ? This two possibilits would invert the led status/
In Arduino is generaly is positive GPIO to GND but because the esp8266 can give low current most blink examples use gpio to 3.3V
The text was updated successfully, but these errors were encountered: