Linknode R4 Wifi 4 Ch Relay Board

What are the board dimensions?

So after a few attempts I can control the relays only via the LinkSprite APP over the internet. No local access to the relays it would seem despite the IP address being available and all normal normal ports for http tried.

Size as you can see is about 3 inches square using the AA battery for comparison.

On the control side the normal operation is 1 relay at a time, however if you send 11111 to the board all relays will switch. So its R1 1000, R2 0100, R3 0010 and R4 0001 or any combination.

Next step is to see if I can load the firmware for Martins 3CH board when I get the Platform IO setup and find a copy of the build.

More to follow…

No longer available on Amazon UK - how many did you guys buy? !!!

Simon

Only 2 were available and I had one…

Sold out! I’ve got one coming tomorrow. :slight_smile:

5 posts were split to a new topic: Sonoff wifi-wireless-switch

So tonight I have upload a test ESP8266 WEBserver and WifiAP which all works, so first step completed.

I’m struggling to load the ZIP containing the 3ch relay example from Martin.

I’m using Arduino 1.6.12 on windows with OpenEnergy USB link all working fine.
Tried adding the zip as a sketchbook, library and took a look on many sites, but I guess it will be a simple thing that’s eluding me so all advice welcomed.

:sunglasses:

Have you had a look at this: https://www.arduino.cc/en/Guide/Libraries

It covers installation via the Library Manager as well as installing a library manually.

No problem with those now.

So I have the ZIP file ‘ESP8266_Relay_Board-master’ with all its content etc and I want to now load this into Arduino and upload to my relay board.

Its not a library file as it fails to find files it needs, so its a step I’m missing I guess.

All other built in examples etc work fine here just cant get this particular one loaded.

Hope that makes sense…

A little more learning and the piece I’m lacking is the sketch that pulls it all together.

I was thinking that would be in the ZIP file but its not jumping out at me?

Loaded many other built-in examples no problem so just one small step away…

:hourglass_flowing_sand:

Hopefully a stupid question: Are you trying to upload the zip file or its contents to the Arduino IDE workspace? Have you opened the zip file and looked inside? Should you be uploading the contents?

I went to the Git page for this data and downloaded as a zip.
Now trying to use Arduino to use the data in the Zip file to build the code to upload into my esp8266 relay board but struggling as no files that Arduino can read etc…

So all help gratefully received.

Alan,

Are you referring to the github page in the second post of this thread?

Trying to load this code via Arduino into my relay board.

Some progress finding each .H file as it fails and loading them manually into the sketch folder but that cant be the correct way to do this.

No actual sketch file in the zip that Arduino recognises but found something under the ‘check external ip’ by martins picture on the git page above…

I have been hoping someone with some esp8266 experience would point you in the right direction, not only to help you on your way, but to also confirm or dismiss my own suspicions. I am not that familiar with esp8266 so please do not assume I know what I’m talking about here as I may be way off.

I think the firmware @Martin_Harizanov has written uses the expressif SDK toolchain rather than the Arduino IDE, I do not know if these methods of compilation are interchangeable or if they can be altered to be so, but as far as I can make out “it’s not that easy” or maybe it is soooooo easy that it doesn’t warrant documenting anywhere and it is just you and I that are a bit slow on the uptake :slight_smile:

A guide to uploading firmware to the shop bought relay using the the same firmeware can be found here which does not use the same method as the emonESP which is here, That guide for the emonESP firmware offers 2 options 1.PlatformIO or 2. Arduino IDE and they both use the “ESP8266 core for Arduino”.

Back in stock at Amazon so for the £9.90 thought I’d try one. It can always be backup for my home brewed heat bank controller.

Paul, I would have jumped in but haven’t a clue what Martin’s code looks like or what tool chain he uses although I’d hazard a guess that he didn’t use the arduino environment which means the OP will have to use the SDK tool chain which is not as easy as the arduino toolchain.

Alan, can you see a .ino file in the zip you have downloaded? If not then Martin must have used the SDK and you’ll have to install the environment.

Simon

No .ino file that makes sense i’m afraid.

Will locate the SDK you mention and try that one.

The official OPen firmware update is a binary file that a working unit will use to load via http. I’m using the linmknode R4 which works with all basic examples but not the full suite inc web server and MQT. Will post more later today…

This link on Martin’s page says: Also see the ESP8266 WiKi for more details on uploading code. The Wiki mentions the Espressif ESP8266 SDK, the toolchain PB66 mentioned a few posts above this one.

Yes, my code uses the Espressif SDK. The Arduino IDE was not so flexible/reliable at the time I published that project. Probably things have improved significantly now.