WEMOS D1 module it’s a small board with ESP8266-12F. On board there is also USB-UART converter (popular CH340). Because of that, all you need to start programming is simple USB cable.
The Grove Water Level Sensor is a very accurate sensor that can be helpful in water level sensing applications. It is completely waterproof and uses capacitive pads to detect water levels up to 10cm.
Easy to use (Use Grove Connector without soldering)
We are creating a simple system that can switch a relay from everywhere, based on a WEMOS D1 mini and a relay shield.
With cloud integration the switch of the relay controlled by the IoT Guru Cloud library, where we will use a simple HTML & JavaScript page with two buttons.
Supplies
WEMOS D1 mini or any other ESP based MCU
WEMOS relay shield or relay
Step 1
Solder and stack the WEMOS D1 mini and the relay shield together like this:
Alternatively you can use any ESP based MCU and relay.
Step 2
If you don’t have already, you need to create a device, a node and a field in our cloud, follow this articles:
To connect with our cloud, you need to gather six identifier:
userShortId: the short identifier of you
deviceShortId: the short identifier of your device
deviceKey: the secret key of your device
nodeShortId: the short identifier of your node
nodeKey: the secret key of your node
fieldName: the name of the field
Step 4
Create a new Arduino sketch, copy-paste the following code and replace the ssid, the password, the userShortId, the deviceShortId, the deviceKey , the nodeShortId and the fieldName with your Wifi credentials and with your gathered values:
Plug your WEMOS D1 mini to your computer with an USB cable, compile the code you’ve edited above and upload it to your WEMOS D1 mini. Check the Serial console about the connection messages.
Step 6
Create a HTML page on your computer or your webserver and copy-paste the following snippet into the body tag; replace the nnn..nnn with your nodeKey value:
MW0582TR11 – 5.8GHz Microwave Doppler Radar Motion Sensor is a microwave Doppler radar that has a frequency of 5.8GHz. This microwave sensor has high sensitivity and precision and it can be used in some industrial and light controlling applications.
Power supply: 5V
Current consumption: 40~70mA
Radiated Power: -30~7dBm(Adjustable by software)
Frequency Setting: 5.725~5.875GHz(Adjustable by software)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok