How do you use a solenoid lock?

How do you use a solenoid lock?

Solenoid Lock When the power is applied, DC creates a magnetic field that moves the slug inside and keeps the door in the unlocked position. The slug will retain its position until the power is removed. When the power is disconnected the slug moves outside and locks the door.

What is a power/lock solenoid?

The solenoid lock denotes a latch for electrical locking and unlocking. The power-on unlocking type enables unlocking only while the solenoid is powered on. A door with this type is locked and not opened in case of power failure or wire disconnection, ensuring excellent safety.

How is the ESP8266 MCU connected to the relay?

Connect ground on the Wemos board to GND on the four pin connector on the left. Connect the port pin to IN1, or IN2. A low on the port pin is the turn on state for the relay. Using 3.3 volts for the VCC connection above should provide enough current for the relay to be switched.

How to connect NodeMCU digital pin to relay?

Connect NodeMCU Digital pin ( D4) to Input pin of Relay. Download the ” Relay_NodeMCU.ino ” file and open it up in the Arduino IDE. Then Create a new sketch and paste the code below in the Arduino IDE and hit Upload. You can tinker with it if you like based on the application, or just use it as it is.

How to use 5V sensors on the NodeMCU?

I can imagine that you use an external 5V power supply special for this sensor. But I’m wondering how to connect the Anologe output to the NodeMCU in combination with this 5V power supply?. Because the reference of the signal is based on the 5V from the sensor? Is there somewhere a wiring example to show how this will work? Thanks.

Can you connect ESP8266 MCU to gpio15?

Yes you can as long as you don’t connect it to GPIO15. This is the schematic for the module. Connect 3.3 volts from the Wemos board to VCC on the four pin connector on the left. Connect ground on the Wemos board to GND on the four pin connector on the left. Connect the port pin to IN1, or IN2.