Difference between revisions of "Relais"

From Let's Control It
Jump to navigation Jump to search
Line 1: Line 1:
 
----
 
----
[[Bestand:Relaisbordje.jpg|320px]]
+
[[File:Relaisbordje.jpg|320px]]
 
----
 
----
= Introductie =
+
= Introduction =
De ESP is in staat om een Relaisbordje aan te sturen. De ESP kan niet direct een relais aansturen maar vrijwel alle relaibordjes hebben een voorziening ingebouwd waarmee met een standaard signaal het relais kan worden in en uitgeschakeld.
+
The ESP can control a relay board using one of it's GPIO pins. All relay boards that work with Arduino should also work with the ESP module.
  
Het relaisbordje moet worden aangesloten op een ditale pin van de ESP module. In het geval van de ESP-01 gebruiken we GPIO-2
+
Connect the relay boardj to one of the GPIO pins on the ESP module. In case of ESP-01, we will use GPIO-2
  
 
= Hardware =
 
= Hardware =
De meeste relaibordjes verwachten een 5V ttl signaal zoals b.v. van een Arduino bordje.
+
Most of the relay boards expect a 5V ttl signal like many arduino boards provide on their output pins. But 3V3 logic should also work.
 
 
todo: testen of deze ook goed werken met 3V3...
 
  
 
= Software =
 
= Software =
  
== ESP Connexio ==
+
== ESP Easy ==
Syntax: WiredOut 1,On/Off
+
We can control the relay board with two simple http url commands:
  
== ESP Easy ==
+
<nowiki>http://<ip van ESP>/?cmd=GPIO,<pin>,0</nowiki>
Hier geven we vanuit een Domoticz switch device de commando's:
 
  
<nowiki>http://<ip van ESP>/?cmd=WiredOut%20,1,0</nowiki>
+
<nowiki>http://<ip van ESP>/?cmd=GPIO,<pin>,1</nowiki>
  
<nowiki>http://<ip van ESP>/?cmd=WiredOut%20,1,1</nowiki>
+
== ESP Connexio ==
 +
Syntax: WiredOut 1,On/Off

Revision as of 19:49, 24 August 2015


Relaisbordje.jpg


Introduction

The ESP can control a relay board using one of it's GPIO pins. All relay boards that work with Arduino should also work with the ESP module.

Connect the relay boardj to one of the GPIO pins on the ESP module. In case of ESP-01, we will use GPIO-2

Hardware

Most of the relay boards expect a 5V ttl signal like many arduino boards provide on their output pins. But 3V3 logic should also work.

Software

ESP Easy

We can control the relay board with two simple http url commands:

http://<ip van ESP>/?cmd=GPIO,<pin>,0

http://<ip van ESP>/?cmd=GPIO,<pin>,1

ESP Connexio

Syntax: WiredOut 1,On/Off