-
Notifications
You must be signed in to change notification settings - Fork 218
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
Geeklink IR Blaster - Cheap #236
Comments
That's pretty cool, thanks for sharing |
Could you please share some pictures from the inside of the unit? And is there anything to change or only to flash the HTTP-IR-Blaster Firmware? Kay |
No need to modify anything. How I did it: 5v to board 5v pin Also note that you will need to place a jumper from the KEY to GND to put the ESP into flash mode when uploading. Pin 5 is the IR Receiver |
Like this.... |
Ah gotcha, the existing micro USB port on there isn't usable? |
Not for programming the board, only for powering the device. |
Ordered one as well :-) |
Ordered 2 :-) Thanks for sharing this information. |
Received mine today. Wired it up and was eventually able to flash it. Tip that might save others some head-scratching - the mini USB cable that comes with it is NOT a data cable, so don't bother trying to use it with your CH340G! |
Yeah I did mention that.
…Sent from my iPhone
On Jan 18, 2019, at 4:59 PM, Ben Lye ***@***.***> wrote:
Received mine today. Wired it up and was eventually able to flash it.
Tip that might save others some head-scratching - the mini USB cable that comes with it is NOT a data cable, so don't bother trying to use it with your CH340G!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
No, not the USB port - I got that that wasn't for flashing, I meant the supplied cable doesn't carry data. |
Ah ok yeah. I actually also ran into issues where other USB cables wouldn’t power the device.
Wondering if the cable supplied has nonstandard wiring.
…Sent from my iPhone
On Jan 18, 2019, at 5:27 PM, Ben Lye ***@***.***> wrote:
No, not the USB port - I got that that wasn't for flashing, I meant the supplied cable doesn't carry data.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Certainly seems that way - mine only wants to power on with the supplied cable too. |
Also, I found that the device would be come unresponsive at times.
I started using the MQTT branch and it worked much better.
…Sent from my iPhone
On Jan 18, 2019, at 5:33 PM, Ben Lye ***@***.***> wrote:
Wondering if the cable supplied has nonstandard wiring.
Certainly seems that way - mine only wants to power on with the supplied cable too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Good to know - I'll keep an eye on it. |
MQTT branch? Link?
And the unresponsive stuff is probably a wifimanager issue make sure you’re using lwIP v1.4 and ESP8266 Core 2.4.0
…Sent from my iPhone
On Jan 18, 2019, at 4:38 PM, arduino43 ***@***.***> wrote:
Also, I found that the device would be come unresponsive at times.
I started using the MQTT branch and it worked much better.
Sent from my iPhone
> On Jan 18, 2019, at 5:33 PM, Ben Lye ***@***.***> wrote:
>
> Wondering if the cable supplied has nonstandard wiring.
>
> Certainly seems that way - mine only wants to power on with the supplied cable too.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I compiled it with 1.4 prebuilt but it would become unresponsive after 1-2 hours for some reason.
…Sent from my iPhone
On Jan 18, 2019, at 7:37 PM, Michael Higgins ***@***.***> wrote:
MQTT branch? Link?
And the unresponsive stuff is probably a wifimanager issue make sure you’re using lwIP v1.4 and ESP8266 Core 2.4.0
Sent from my iPhone
> On Jan 18, 2019, at 4:38 PM, arduino43 ***@***.***> wrote:
>
> Also, I found that the device would be come unresponsive at times.
>
> I started using the MQTT branch and it worked much better.
>
>
>
> Sent from my iPhone
>
> > On Jan 18, 2019, at 5:33 PM, Ben Lye ***@***.***> wrote:
> >
> > Wondering if the cable supplied has nonstandard wiring.
> >
> > Certainly seems that way - mine only wants to power on with the supplied cable too.
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub, or mute the thread.
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Can you please tell me more about the MQTT Branch? Kay |
Does anybody know where the S1 switch is connected to? |
If you have a multimeter you can easily find out - just follow the trace to the pin chip. You could also upload a simple push button sketch using different pins and check when the pin is pulled high when pressed. |
I have a multimeter. But I can't follow the trace. I will try the option with the button sketch. |
@arduino43 do you still have problems that the device becomes unresponsive? |
Just got my device and USB adapter so I'll be trying this out tomorrow. Keep me posted on any discoveries |
@arduino43 @mdhiggins I've got the same problem. The device becomes unresponsive after a while. Mostly after sending commands with normal remote to my TV. When I check the webserver there are some weird readings from the IR receiver. Also the LED flashes without sending or receiving. Really strange. |
Use pull request that added MQTT. I use MQTT but it also doesn’t crash using HTTP either. |
@arduino43 But you wrote that your device becomes also unresponsive after a time. What did you do that your device stay responsive either with Http? |
It does not using MQTT pull |
Yes ok. But do you use still http without problems? |
FYI, S1 pulls GPIO16 (the flash pin) low, so can be used to put the board into upload mode. |
I've created a tweak which puts the device into WiFi setup mode with a long press of the button, if anyone is interested. I have it so that the orange LED comes on when button is pressed. If the button is held for 3s the LED blinks rapidly, then if the button continues to be held for 2s more the device launches WiFi setup mode. |
Please share
From: Ben Lye
Sent: Friday, February 1, 2019 6:02 AM
To: mdhiggins/ESP8266-HTTP-IR-Blaster
Cc: Michael Higgins; Mention
Subject: Re: [mdhiggins/ESP8266-HTTP-IR-Blaster] Geeklink IR Blaster - Cheap(#236)
I've created a tweak which puts the device into WiFi setup mode with a long press of the button, if anyone is interested.
I have it so that the orange LED comes on when button is pressed. If the button is held for 3s the LED blinks rapidly, then if the button continues to be held for 2s more the device launches WiFi setup mode.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Here you go: I've found it's sometimes necessary to do an additional power cycle if the button isn't released quickly enough. Regarding the stability, my device seems better with these two lines commented: https://github.com/mdhiggins/ESP8266-HTTP-IR-Blaster/blob/master/src/IRController.ino#L1626-L1627 Need a bit more runtime to be conclusive, then I'll try to work out why. I've looked at the MQTT PR and I don't see anything jumping out as to why that might behave differently. |
Has anyone verified that pin 14 actually uses all 7 IR LEDs on the board for sending? A simple |
Easy to test… I will take a look.
Im doubtful that only a single LED is being used.
… On Mar 3, 2019, at 9:12 AM, Adrian Böckenkamp ***@***.***> wrote:
Has anyone verified that pin 14 actually uses all 7 IR LEDs on the board for sending?
A simple void loop() { irsend.sendSony(0xa90, 12); } for testing (whereby irsend is initialized to pin 14) just causes one LED to blink (the centered one) to blink (tested using my phone's camera) so I am concerned that we may need to use multiple pins in parallel? Any thoughts/comments on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#236 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AgFig0KEQo7EEzKkczXjQRrPN68Hmcsvks5vS8pUgaJpZM4ZnMTe>.
|
Any insights, @arduino43? 🙈 |
It fires on all LEDS.
…Sent from my iPhone
On Mar 6, 2019, at 11:26 AM, Adrian Böckenkamp ***@***.***> wrote:
Any insights, @arduino43? 🙈
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I spent the better part of yesterday getting this to work. This was not immediately clear to me since it was buried in the comments: you must change the receiver/transmitter/led pins, the main branch code doesn't work without modification. Here is the correct pin config:
In the end, I used benlye's codeline here, which already contains above: I also commented out lines 1692-1693 as recommended for stability. This did not affect the device's ability to receive codes.
So far, so good. It has been running for a whole day without issue. The range and coverage is great. Much better than the 2-LED setup I had before, which was very directional and low range despite all the resistor values I tried. Also looks much less DIY. Edit: Also FWIW, I could NOT get the recommended MQTT branch to compile. It has additional library dependencies: PubSubClient and EasyNTPClient. I installed the latest versions, but it kept throwing variable/scope errors that I never was able to fully figure out: "variable or field 'sendCodePage' declared void" Edit2: It's been running 2 days without any issues |
@arduino43 How did you make sure that all LEDs are used? I am asking because when I am looking at the LEDs (using my phone's camera) when the device sends an IR command, just the single LED in the middle is blinking. Additionally, it appears to me that reception rate of my devices (TV, AVR) is quite bad/low. Nevertheless, are you controlling your LEDs by a single IRSend object initialized to pin 14 only? (Thus, I removed the non needed pickIRsend(), pin{2,3,4}, etc objects.) That's what I am doing and maybe I am doing something wrong in the code. 🤔 |
@vicwomg I think the PR with the MQTT stuff was created against the master branch using an old commit/version which was still using EasyNTPClient. So merging it against the current master branch creates errors. I had similar issues. ;-) |
I checked my device this morning using my mobile phone. It is definitely blasting from multiple LEDs, using only pin 14 for sending. If yours doesn't then maybe there is a hardware problem? FWIW, since I commented out the this line the device has been perfectly stable: |
@benlye Thank you very much for your reply and, in particular, for checking the IR LEDs of your device while sending. Does yours look like this? This is what my device looks like when I add a Appears to me that just the IR LED in the middle is used. Also, when I add the enclosure back to the PCB, all my devices are basically unable to receive anything unless I place the IR Blaster directly (< 20cm) in front of them and rotate it so that the top of it faces my devices' IR receiver. Really annoying and, thus, useless for me... Would love to hear your feedback/opinion on this! :-) By the way, I've no stability issues whatsoever even with the |
I just received a new - unchanged device: I checked, there all IR LEDs are used. Just to let you know. |
Thank you very much! :-) Would you mind extracting (and uploading) the original firmware from the device using (see, e. g., here): whereby "COM5" is the appropriate serial port. I would like to test it on my device to see if it's software related. Thank you very much again! |
I'll try. First of all I have to add connections wires :) |
Thank you so much! If you need help, just let me know. ;-) |
shit, I think I killed the 5V-Pin on the device. Is here a way to connect somewhere else? The SONOFF S20 is quite easier to modify :/ |
:-( Can you show me a picture of how your board looks like right now? I am not having the board at hand (I can take a look in the evening today when I am back home) but maybe there's another 5V pad/pin on the bottom of the board (?). |
That was also my first try, but there is nothing on the downside. |
Puh, not good. I just had a look at the bottom and yes, there's nothing like that. Hm. If you have a soldering iron, you can try to add solder to the location where the pad was previously but I am also not sure if it will adhere there. I have another idea but honestly, I don't know if that works or if it even destroys the board/ESP completely: you can use an old micro USB cable, cut the cable, strip the isolation and identify the 5V and GND wires (advisable to use a multi meter, just to be sure). Then you take your USB-to-serial adapter and connect 5V and GND to the 5V and GND wires of the cut USB cable respectively. Plug the cut micro USB cable into the board. Finally, you just need to solder a pin header to the TX, RX and GND holes on the board in order to connect them to your USB-to-serial adapter as well. Make sure that the GND pin (next to the RX/TX pins), the GND pin of your USB-to-serial adapter as well as the GND wire of your cut USB cable are all connected (same ground). After that, connect the USB-to-serial adapter to your PC. Note that you can enter flash mode of the ESP either by shorting KEY and GND (e. g., with a jumper if you added an appropriate pin header like I did in my photo) or by keeping the button "S1" pressed during boot/power up. ;-) But again, I don't know if that will actually work. If you try it, please don't forget to extract the original firmware. Hope that is clear. :-) |
This is amazing! Do you know of any other devices that can be flashed? Like Broadlink RM mini 3, or those Tuya thingies? Tasmota Wiki has a great article on how to use those generic IR universal remotes from Aliexpress like this one https://github.com/arendst/Sonoff-Tasmota/wiki/YTF-IR-Bridge Is there a way we can flash this library example (IRMQTTServer) onto pre-made devices? Looking forward to hearing from you |
Judging by the pictures you could flash this device. Just follow the wiring diagram for the GeekLink IR Blaster, its basically the same process (put the board into programming mode and flash the updated firmware) |
Just for those who are interested: I can now confirm that my IR LEDs were broken (3 out of 7) and since they are controlled in series (2 in a row, except for the middle LED), all LEDs on the "outer ring" were off. I soldered new IR LEDs and now all work fine. Chinese quality ... |
bringing this discussion back up: I ordered a new GeekLink from AliExpress last week and it came in. Seems they have updated the design to V104 (images shared of v102) and they have removed any of the TX RX and Key pads/pins to the right of the ESP-12L. Is it possible to leverage the pads to the left side of the ESP? If that's the case and KEY has also been removed, would it be possible to still flash the device with SW1? Thanks for any help. CS |
@cnsellon, did you already manage to flash it? I am wondering the same thing.... |
I think i have "incomplete" Geeklink GK01...I cannot receive signal from any remote. |
I just reprogrammed one of these IR Blasters from AliExpress with ESP8266-HTTP-IR-Blaster. For anyone looking for a complete solution that will work with this code these are a great.
https://www.aliexpress.com/item/New-Geeklink-Smart-Home-WIFI-IR-4G-Universal-Intelligent-Remote-Controller-For-iOS-Android-Compatible-with/32958748327.html
Inside the unit is an ESP-12F with headers you can use to connect with either an Arduino or a USB-to-Serial adapter.
The text was updated successfully, but these errors were encountered: