Difference between revisions of "GettingStarted"

From Let's Control It
Jump to navigation Jump to search
m
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Introductie =
+
= Introduction =
De ESP8266 module is in korte tijd erg populair geworden in het kader van "Internet of Things"
+
The ESP8266 module has become very popular in a very short time. A new gadget for the "Internet of Things"
Het is begonnen met de standaard "AT" interface en al korte tijd daarna is een NodeMCU initiatief gelanceerd waarbij in LUA script kan worden geprogrammeerd.
+
It all started with the factory default "AT" type interface and short thereafter a NodeMCU initiative was launched where one could program the little device with the well known LUA scripting language.
  
Sinds kort is er ook de mogelijkheid om met de Arduino IDE een ESP module van eigen firmware te voorzien. De mogelijkheden worden dus steeds groter!
+
As of april 2015, a new way of programming the module became available with the community driven launch of the Arduino IDE for ESP. A new era of possibilities, because many arduino libraries can be used or will be made compatible with the ESP!
  
 
= Hardware =
 
= Hardware =
Het begint allemaal met het verkrijgen van deze module. Ze zijn gelukkig erg eenvoudig via b.v. ebay te bestellen voor een zeer zacht prijsje. Alleen de levertijd kan nogal varieren.
+
It all starts with getting one! But a quick scan on eBay will show a lot of options for a very low price!
  
 
= Software =
 
= Software =
Hier heb je op dit moment dus 3 mogelijkheden
+
Currently there are 3 options to choose from:
* de standaard firmware met "AT" interface
+
* the standard firmware with "AT" style interface
* de NodeMCU firmware met LUA script interpreter
+
* the NodeMCU firmware with the LUA script interpreter
* je volledig eigen firmware geprogrammeerd in een aangepast Arduino IDE
+
* your very own firmware, programmed using the well known Arduino IDE
  
 
== AT Firmware ==
 
== AT Firmware ==
Dit is de firmware die erin zit als je de ESP ontvangt. Waarschijnlijk ingesteld op 9600 baud. Het aansluiten van een tool die serieele communicatie kan doen is voldoende.
+
This is the stock firmware when you buy a generic ESP module. Most likely communicating on 9600 baud. Simply connect a FTDI interface and you can get started. You can use this firmware if you connect a classic Arduino boardj using the serial interface between both boards.
Je gebruikt deze firmware in combinatie met b.v .een Arduino boardje die je via serieel verbindt.
 
  
 
== NodeMCU ==
 
== NodeMCU ==
Deze firmware moet je zelf downloaden en uploaden met een speciale flash tool. Vervolgens gebruik je een andere tool om via seriel te communiceren met de ESP. Deze beschikt dan n.l. over een LUA interpreter dus je kunt gewoon direct LUA commanod's intypen. Vervolgens zul je LUA scripts gaan uploaden in het ingebouwde filesysteem van NodeMCU. Tijdens opstarten wordt het script "init.lua" gestart en zal je ESP zelfstandig aan de slag kunnen gaan.
+
This firmware can be downloaded or if you buy the NodeMCU development board, it will be preloaded with NodeMCU firmware.
 +
Use a special tool to upload LUA scripts found on the internet or just write your own.
  
De firmware kun je hier downloaden.
+
Firmware can be downloaded here:
 
https://github.com/nodemcu/nodemcu-firmware
 
https://github.com/nodemcu/nodemcu-firmware
  
Ook de tool om de firmware te laden
+
Handy tool for uploading LUA scripts:
 
https://github.com/nodemcu/nodemcu-flasher
 
https://github.com/nodemcu/nodemcu-flasher
  
  
== Arduino IDE voor ESP ==
+
== Arduino IDE for ESP ==
Als je bekend bent met het programmeren in Arduino taal (C/C++ taal) dan zul je hier nieuwe mogelijkheden gaan ontdekken!
+
If you're familiar with programming in Arduino language (C/C++ language) then you will explore a world of new possibilities.
 +
 
 +
This is where it all starts:
 +
 
 +
https://github.com/esp8266/Arduino
 +
 
 +
Download generic Arduino IDE and configure the boardmanager for ESP
 +
 
 +
We will focus on the development of Arduino code for the ESP. Custom sketches and "multifunctional" projects are planned. Maybe we will also explore some NodeMCU LUA scripts.
 +
 
 +
At present, we have two projects in progress:
 +
 
 +
*[[ESPEasy | ESP Easy]] - Should be the easiest way to connect your ESP to a Home Automation controller of choice...
 +
*[[ESPConnexio | ESP Connexio]] - A basic port of the popular dutch Home Automation controller called "Nodo"
 +
 
 +
The ESP Easy has already been launched to the public on sourceforge. The ESP Connexio is still in development. The Connexio shares the webgui with the ESP project but internally it's a whole different ball game... We have to see if there's a market for this approach so maybe it will never see the 'daylight'...
 +
 
 +
= Home Automation controllers =
 +
The ESP can be used in various Home Automation projects. The module can communicate through TCP or UDP and that will open up new ways to connect to your favorite Home Automation solution.
 +
 
 +
== Domoticz ==
 +
The ESP module can communicate directly with Domoticz using the HTTP interface. We will focus on Domoticz during prototyping.
 +
If you're using the ESP Easy firmware, just follow this tutorial to get you going: [[Tutorial_Domoticz_Switch]]
 +
== Nodo ==
 +
The Nodo is a well known Dutch Home Automation project. Currently they're working on a new release (3.8.) In the mean time, a simple but limited telnet interface between ESP and a Nodo Mega can be used.
 +
 
 +
== ThingSpeak ==
 +
A well known webservice to log you sensor data. Just create an account, configure firmware an you're set.

Latest revision as of 11:09, 12 November 2017

Introduction

The ESP8266 module has become very popular in a very short time. A new gadget for the "Internet of Things" It all started with the factory default "AT" type interface and short thereafter a NodeMCU initiative was launched where one could program the little device with the well known LUA scripting language.

As of april 2015, a new way of programming the module became available with the community driven launch of the Arduino IDE for ESP. A new era of possibilities, because many arduino libraries can be used or will be made compatible with the ESP!

Hardware

It all starts with getting one! But a quick scan on eBay will show a lot of options for a very low price!

Software

Currently there are 3 options to choose from:

  • the standard firmware with "AT" style interface
  • the NodeMCU firmware with the LUA script interpreter
  • your very own firmware, programmed using the well known Arduino IDE

AT Firmware

This is the stock firmware when you buy a generic ESP module. Most likely communicating on 9600 baud. Simply connect a FTDI interface and you can get started. You can use this firmware if you connect a classic Arduino boardj using the serial interface between both boards.

NodeMCU

This firmware can be downloaded or if you buy the NodeMCU development board, it will be preloaded with NodeMCU firmware. Use a special tool to upload LUA scripts found on the internet or just write your own.

Firmware can be downloaded here: https://github.com/nodemcu/nodemcu-firmware

Handy tool for uploading LUA scripts: https://github.com/nodemcu/nodemcu-flasher


Arduino IDE for ESP

If you're familiar with programming in Arduino language (C/C++ language) then you will explore a world of new possibilities.

This is where it all starts:

https://github.com/esp8266/Arduino

Download generic Arduino IDE and configure the boardmanager for ESP

We will focus on the development of Arduino code for the ESP. Custom sketches and "multifunctional" projects are planned. Maybe we will also explore some NodeMCU LUA scripts.

At present, we have two projects in progress:

  • ESP Easy - Should be the easiest way to connect your ESP to a Home Automation controller of choice...
  • ESP Connexio - A basic port of the popular dutch Home Automation controller called "Nodo"

The ESP Easy has already been launched to the public on sourceforge. The ESP Connexio is still in development. The Connexio shares the webgui with the ESP project but internally it's a whole different ball game... We have to see if there's a market for this approach so maybe it will never see the 'daylight'...

Home Automation controllers

The ESP can be used in various Home Automation projects. The module can communicate through TCP or UDP and that will open up new ways to connect to your favorite Home Automation solution.

Domoticz

The ESP module can communicate directly with Domoticz using the HTTP interface. We will focus on Domoticz during prototyping. If you're using the ESP Easy firmware, just follow this tutorial to get you going: Tutorial_Domoticz_Switch

Nodo

The Nodo is a well known Dutch Home Automation project. Currently they're working on a new release (3.8.) In the mean time, a simple but limited telnet interface between ESP and a Nodo Mega can be used.

ThingSpeak

A well known webservice to log you sensor data. Just create an account, configure firmware an you're set.