Ebay Wifi Relay boards

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#31 Post by Dylantje » 26 Mar 2017, 18:24

@ Shardan.

THANKS!!!
This was what i need... the jumper i mist.....

Is there perhaps als a free gpio where i can put a DHT on?
Or perhaps the extra 9 switch...?
I mean is there a gpio on the board that is not in use for the 8 relais.
And where i can put on a other sensor

Thanks again!!

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#32 Post by Shardan » 26 Mar 2017, 20:12

Hello Dylantje,

on the manufacturers webside there is a list of the used GPIO's:
LinkNode_R8-GPIO.jpg
LinkNode_R8-GPIO.jpg (102.15 KiB) Viewed 29693 times

Website: http://linksprite.com/wiki/index.php5?t ... controller

According to that list the GPIO's 2 and 9 should be unused.
So it is possible to solder a wire to one of these GPIO's for connecting a DHT.

Another way to connect a DHT easily, e.g. for testing (Didn't try that myself but it should work):
When ESPEasy is flashed and running, you may switch off the serial port:

- double check that the ESP is working properly with the firmware!
- open the R8's webpage
- go to --> Tools --> Advanced
- uncheck the "Enable Serial Port" box.

The serial port uses GPIO1 (Tx) and GPIO 3 (Rx).
Then you may connect a DHT to GND, GPIO and 3,3V direectly at the pin headers.
(Don't forget the pullup resistor 10K from 3,3V to the data/GPIO pin).

This allows to connect a DHT without soldering wires to the ESP chip on the board.

Remember that this makes impossible diagnosing the ESP via serial port.

It might be possible to connect a DHT even to the GPIO0 (DIO0) header.
Definitely be carefull and test that before going live for a reason:
I'm not sure if the DHT gives "low" or "high" at startup so this may lead into
booting into flash mode permanently. Not dangerous: If you switch off the device
at that point it just does nothing, but it should be tested thoroughly:

- Connect a DHT to GPIO0 (don't forget the pullup resistor 10K from 3,3V to the data/GPIO pin).

- Switch off and back on several times, check if the webpage is alive and the device works every time you restart.

Advantage: You don't loose the serial port so reflashing and diagnosis if necessary it's easy to do.

Hope that helps

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#33 Post by Dylantje » 27 Mar 2017, 08:20

Thanks!!!
The uncheck the serial.
And the on gpio1 is working great!!!

1 thing..
When i power off and then power on..
There is 1 relay clicking on.. GPIO 10

when i use this board with lights, all the lights are off with power up.
Only GPIO 10 not..

Do you perhaps a solution for that?

xxx

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#34 Post by Shardan » 27 Mar 2017, 09:58

Hello Dylantje,

hm... not out of the box.
Check if the GPIO is set to default boot state:
- Open the webpage of the R8
- Go to "Hardware"
- Check the Setting of "Pin mode 10 (D12)", it should read "Default" usually.

It might help if you set it to "Output low". This says, that the GPIO is an output and should be set to "low" on bootup.
This is limited to bootup - if something inside the ESPEasy sets the GPIO10, this won't help.
Please check if the On/Off function is still working after this setting.

If that does not help there is a somewhat crude workaround.
Use a rule that switches off the GPIO10 at startup. This might make the GPIO10 switch on for a moment and then switch off.

- Open the webpage of the device.
- go to --> Tools --> Advanced
- scroll down and check the "Rules" box and click "submit".
- go to the new appearing "Rules" tab
- put the following code into the text box:

Code: Select all

On System#Boot do
  gpio,10,0
endon
That switches off GPIO10 at boot.

Regards
Shardan
Regards
Shardan

trackerj
Normal user
Posts: 44
Joined: 01 Dec 2016, 09:57

Re: Ebay Wifi Relay boards

#35 Post by trackerj » 27 Mar 2017, 10:56

Shardan wrote: 26 Mar 2017, 16:28
trackerj wrote: 25 Jan 2017, 14:34
Shardan wrote:

Well, that might be true or not.
But if that is really tested, why didn't the manufacturer notice, that the used relays are not designed for european mains voltage?
Take a near look ath the relays: 125V~ maximum! I would not use that module for home automation switching mains voltage.
If something goes wrong and it gets on fire your insurance might have a word for it....... "No!"
Dear Shardan,

I am very sorry but is NOT true your statement above: The LEG-1A-12F relays (15A version not 10A one) used for the MPRSx8 Home Automation Board are also working OK for 240VAC.
Notabene: I have two Linknode R8, ordered from an european seller. The relays on that boards are definitely not approved for 230V.
As I do not use them for mains voltage, it doesn't matter for my purposes, but....

Regards
Shardan
Dear Shardan,

I must admit that I really cannot understand based on what facts you can state that the relays type from above are DEFINITELY NOT approved and not working properly on EU 240VAC.

I have on my desk the LEG-1A-12F Relays:
- UL Approval File.
- TUV Germany testing and validation report.
- ROHS certificate.

These boards are not made with whatever parts have fallen from the truck last night in the Shenzhen Market, they are comming from reputable chain suppliers.

For such a Applications Dev Board they are more than suitable and for any special requests can provide also more fancy and expensive options from OMRON, FINDER, FUJITSU-TAKAMISAWA, etc.

In 20+ years of Engineering I learnt to avoid to end up with so strong beliefs based only on some assumptions ...

Happy breadboarding,
TJ.
www.esp8266-projects.com - ESP8266 Projects and many more!
MPDMv4 Universal AC Dimmer is available also on TINDIE Store: https://www.tindie.com/stores/nEXT_EVO1/

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#36 Post by Shardan » 27 Mar 2017, 11:07

The imprint on my relay says nothing about more then 125V.
That is what i can see.
In 20+ years of Engineering I learnt to avoid to end up with so strong beliefs based only on some assumptions ...
Okay. So i'm just making assumptions and can not read what is printed on my relays.
I'm electronics tech for about 40 years now, IT tech for about 30 years.

I'll stop this debate at this point as it get into personal defamations.
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#37 Post by Dylantje » 27 Mar 2017, 17:38

Dear all.
Please make love not WAR... :D

I'am very happy with this answers and this very cheap board...
I do have have a other board to:
https://www.youtube.com/watch?v=ZLgllGQ_X0I&t=487s
Expensive, only not better.. :cry:


I am a BOB the brick layer... so i am happy with all of the support.. :roll: :lol:


So what is the problem...

Peace ..

xxxx

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#38 Post by Dylantje » 01 Apr 2017, 21:18

A problem...
From this day the espboard is restarting in after 3 minutes...
Did try a lot other setting..
No luck @all

Is there a way to set back the factory of the ESP software?
Cannot reach the board with the webgui anymore.. [ did something wrong in the hardware settings i think :-) ]

Or need i t reflash the board?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#39 Post by Shardan » 01 Apr 2017, 21:44

Hello Dylantje,

you may try to reset it via the serial port using the Arduino IDE or ESPlorer, sending a "reset" to the ESP.

Or you may try a hard reset:
- Switch off the ESP
- Connect Rx and Tx pins to eachother
- switch on and wait at least a minute.

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#40 Post by Dylantje » 02 Apr 2017, 17:21

Thanks

The hard reset was the option.
Replace a backup and everything is working oke...

Love

luisfcosta
New user
Posts: 8
Joined: 20 May 2017, 07:23

Re: Ebay Wifi Relay boards

#41 Post by luisfcosta » 20 May 2017, 07:47

Hi guys

I notice this thread mentions LinkNode R8 so I am trying my luck here
After I uploaded the Easpeasy R120 to a R8 board, and start configuring it, I notice after the 6-7th device (switch input), the board starts rebooting continuously, making it impossible to use.
Has anyone experienced the same?
I have uploaded using Arduino 512k/64 spiffs/QIO, generic esp8266 on my Mac
My next step would be to go to my windows and upload one of the compiled images with the esptool.exe, but my hopes are not high

Cheers!

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#42 Post by Dylantje » 20 May 2017, 11:06

Try to use the esp easy script to do the flash...

What happend then?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#43 Post by Shardan » 20 May 2017, 14:37

The LinkNode R8 uses a ESP-12E.

The ESP-12E has 4096 KB flash.
Using the R1xx Versions please use a 4M (3M SPIFFs) memory model.
If self compiling with Arduino IDE you may simply use the "nodeMCU 1.0" setting.

Regards
Shardan
Regards
Shardan

luisfcosta
New user
Posts: 8
Joined: 20 May 2017, 07:23

Re: Ebay Wifi Relay boards

#44 Post by luisfcosta » 22 May 2017, 08:29

My 340 drivers are not working with me on my Windows 10
And I did tried with 4M/64SPIFFS but with the same result
The board compiles and uploads well with the Arduino IDE and works very well until, after I have configured the 7th relay, starts rebooting every 10 secs
In another time it was when all relays were ON.
Still pending uploading using esptool.exe on my windows
Thanks for the tips!

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#45 Post by Shardan » 22 May 2017, 13:57

Try 4M/1M Spiffs for the R147/R148 or 4M/3M Spiffs for the 2.0.0.DEVx.

I'm using ESPtool for flashing mostly, should work.

For a try flash a readily compiled R147 from the wiki to the board.

The CH340 should usually run on win10 too. I've seen drivers for the chip and win-10.

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#46 Post by Dylantje » 23 May 2017, 13:49

mmm Hope you can help....

2 the same linknode 8 relais boards.
the same motion
the same firmware.
the same complete setup. [ hardware settings/ untick ttl etc etc ]
use gpio 1 for dht, like you learned me here :-)
use gpio 3 for motion... :-)

Stange thing.
1 board works perfect.
the other board [ everything the same ] is acting on and off without motion [ incl 10k resister ]
The time is different.
without motion, d3 is on and off. ...
grrrr.

Is there a background setting or something else ti can set.
build a nice switching module,....
only now i cannot use the motion..

Help or something...

xxx


Did found a strange thing..:
Board 1;
ScreenShot007.jpg
ScreenShot007.jpg (19.25 KiB) Viewed 29777 times
sw:0
sw:1
Switching the motion, looks ok.

Only board 2:
ScreenShot008.jpg
ScreenShot008.jpg (21.52 KiB) Viewed 29778 times
sw:0
sw:1 [ should be switching ]
Only there is a gpio switch after.
That i did not maken..

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#47 Post by Shardan » 23 May 2017, 16:42

hm...
may a stupid question... some of these PIR boards have a jumper that changes the way it Switches.
Both set same, if so? Sensivity setting of the sensor equal?

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#48 Post by Dylantje » 23 May 2017, 17:08

Shardan wrote: 23 May 2017, 16:42 hm...
may a stupid question... some of these PIR boards have a jumper that changes the way it Switches.
Both set same, if so? Sensivity setting of the sensor equal?

Regards
Shardan
no jumper on the same boards, i use the + and - for the sensors.
No settings possible bij the sensors.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#49 Post by Shardan » 23 May 2017, 19:42

Then you're using another sensor then me :)
possibly the "mini" sensors .. i never tested them.

Amyways... is it possible to swap the two sensors to see if the seonsor or the linknode causes the problem?

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#50 Post by Dylantje » 23 May 2017, 22:13

Shardan wrote: 23 May 2017, 19:42 Then you're using another sensor then me :)
possibly the "mini" sensors .. i never tested them.

Amyways... is it possible to swap the two sensors to see if the seonsor or the linknode causes the problem?

Regards
Shardan
Did swap... [ not with my wife :-( ]
No luck..

The most strange thing.

I did a test setup..
Works for weeks... [ in my garage ]
After a hard reset because i set something wrong..
This strange thing is happening..

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#51 Post by Shardan » 24 May 2017, 13:55

Dylantje wrote: 23 May 2017, 22:13 Did swap... [ not with my wife :-( ]
No luck..
To get it straight:
"No luck" says it's the same circuit with another sensor going crazy?
The most strange thing.

I did a test setup..
Works for weeks... [ in my garage ]
After a hard reset because i set something wrong..
This strange thing is happening..
How did you hard reset? Tx/Rx shortened? Sent a "Reset"?

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#52 Post by Dylantje » 24 May 2017, 14:16

Shardan wrote: 24 May 2017, 13:55
Dylantje wrote: 23 May 2017, 22:13 Did swap... [ not with my wife :-( ]
No luck..
To get it straight:
"No luck" says it's the same circuit with another sensor going crazy?
The most strange thing.

I did a test setup..
Works for weeks... [ in my garage ]
After a hard reset because i set something wrong..


This strange thing is happening..
How did you hard reset? Tx/Rx shortened? Sent a "Reset"?

Regards
Shardan
Everything the same on the outside
And try different/ other pir. use 1 pir that works on the working system...
tx/rx connected...

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Ebay Wifi Relay boards

#53 Post by toffel969 » 24 May 2017, 15:31

Dylantje wrote: 24 May 2017, 14:16
Shardan wrote: 24 May 2017, 13:55
Dylantje wrote: 23 May 2017, 22:13 Did swap... [ not with my wife :-( ]
No luck..
To get it straight:
"No luck" says it's the same circuit with another sensor going crazy?


The most strange thing.

I did a test setup..
Works for weeks... [ in my garage ]
After a hard reset because i set something wrong..


This strange thing is happening..
How did you hard reset? Tx/Rx shortened? Sent a "Reset"?

Regards
Shardan
Everything the same on the outside
And try different/ other pir. use 1 pir that works on the working system...
tx/rx connected...
Direct sunlight?
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Ebay Wifi Relay boards

#54 Post by Dylantje » 24 May 2017, 19:56

Direct sunlight?
That is the only thing different...

mmm that's shoeld be nasty.....

1 pir have dig a cable to the door for this pir...
GGRRRRR

Perhaps with a 10K between..


The strange part. test works great...

luisfcosta
New user
Posts: 8
Joined: 20 May 2017, 07:23

Re: Ebay Wifi Relay boards

#55 Post by luisfcosta » 24 May 2017, 22:49

I wanted to provide a follow up and closure to my previous plea for help

Situation: Espeasy R120 not stable, causing nodelink R8 to reboot every 10 secs. Espeasy loaded with Arduino source code. Board was also not reacting on MQTT commands.

Solution:

Upgraded to 147 RC8 using the flash.cmd method.

I can now control my relays using one of the following:

mosquitto_pub -t "{devicename}/gpio/16" -m "1" [or "0"].
mosquitto_pub -t "{devicename}/cmd" -m "GPIO,16,1"
mosquitto_pub -t "{devicename}/cmd/gpio/16" -m "1"

My MQTT broker receives the same message, so I am able to keep track of what is ON of OFF and bridge this to other systems (in my case, SmartThings)

At least the board is able to listen to the broker and the board is now stable.
I had some hiccups with Openhab MQTT mode, where the board would loose connection with the broker, but so far great.

Now my next challenge is to send a more user-friendly command such as:
mosquitto_pub -t "{devicename}/LivingRoomLight/switch" -m "1" [or "0"].

I just don't want to deal with the GPIO mapping!

Any hints?
The documentation is not rich on this matter. I am sure others have the same struggle.

Thanks!

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Ebay Wifi Relay boards

#56 Post by Shardan » 24 May 2017, 23:46

Hello,

sorry i have to pass on that one... i'm not using MQTT at all.

Regards
Shardan
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests