WeMos V2 Relay Shield (HCWEMO0005)

Wemos ESP8266 based development boards and shields *** NEW***
Post Reply
admin
Site Admin
Posts: 726
Joined: Sun Aug 05, 2012 4:02 pm

WeMos V2 Relay Shield (HCWEMO0005)

Post by admin » Tue Nov 22, 2016 11:17 am

Image





This relay shield is designed to be used with the WeMos mini & mini Pro ESP8266 based development boards (see item HCWEMO0002). Adding this shield to your WeMos mini development board provides it with the ability to switch high voltage, or high power devices from a single digital pin. Included with the shield is a set of header pins which can be optionally fitted (soldering required) to allow for the shield to be easily inserted and removed from the D1 mini.

Although this module is intended for use with the Wemos development boards it can of course also be used as a standalone relay module requiring a single 5V supply and one digital pin (5V & 3.3V compatible) to control it.



Image



Features:

NO: 5A(250VAC/30VDC), 10A(125VAC), MAX:1250VA/150W
NC: 3A(250VAC/30VDC), MAX:750VA/90W



Example Arduino Sketch:

Code: Select all

/* WeMos relay example - HobbyComponents.com */
 
#include <ESP8266WiFi.h>
 
#define PIN D1 // Relay shield is controlled by digital pin D1
 
void setup()
 
{
  pinMode(PIN, OUTPUT); // Set the pin to an output
}
 
void loop()
{
  digitalWrite(PIN, HIGH); // Energise the relay
  delay(1000); // Wait for another second
  
  digitalWrite(PIN, LOW); // De-energise the relay
  delay(1000); // Wait for a second
}



Image


Schematic:
WeMos_Relay_Shield_HCWEMO0005_Schematic.pdf



Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.
You do not have the required permissions to view the files attached to this post.

philrich123
Posts: 1
Joined: Mon Aug 27, 2018 3:16 am

Re: WeMos V2 Relay Shield (HCWEMO0005)

Post by philrich123 » Mon Aug 27, 2018 9:52 pm

Hello,

What's quite annoying with this shield is that it use the D1 pin. The wemos module use it for i2c. There is a Lolin V2.0.0 of this shield where you can chose the IO, but I have the one described here and I wanted to use it with different IO.

So what I have done before soldering the headers, is placing a cut lead of a through-hole component formed as the picture below.
pin.jpg
Then cutting the circuit between D1 and the base resistor of the transistor driving the relay, and soldering a wire to the Dx you want.
modif_2.jpg
Just a remark here, I have selected the D4 IO witch is not a good idea because it is used by the build in resistor of the wemos D1 module :? .

Another annoying thing is that the legs of the headers are to short for this module to make it "piggy back possible". So I had to solder it on the top of the shield with smalls wires, Not very clean but it does the job.
piggy_back.jpg
With This you can plug the 1Button shield over it. I Just cut the low part of this last one to gain easy access to the screws of the relay shield connector.


Hope that will help !
You do not have the required permissions to view the files attached to this post.

Post Reply