Difference between revisions of "GettingStarted"

From Let's Control It
Jump to navigation Jump to search
Line 1: Line 1:
 
= Introductie =
 
= Introductie =
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 (medio april 2015) 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 ==

Revision as of 19:18, 24 August 2015

Introductie

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

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 commando'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.

De firmware kun je hier downloaden. https://github.com/nodemcu/nodemcu-firmware

Ook de tool om de firmware te laden https://github.com/nodemcu/nodemcu-flasher


Arduino IDE voor ESP

Als je bekend bent met het programmeren in Arduino taal (C/C++ taal) dan zul je hier nieuwe mogelijkheden gaan ontdekken!

Hier is waar het allemaal begint:

https://github.com/esp8266/Arduino

Download de aangepaste IDE voor de ESP: https://github.com/igrr/Arduino/releases/download/1.6.1-esp8266-1/arduino-1.6.1-p1-windows.zip

We zullen ons vooral gaan richten op ontwikkeling van code in Arduino. Custom sketches en "multifunctionele" projecten staan op de planning. Mogelijk ook wat NodeMCU LUA scripts.

Domotica omgeving

De ESP is in te zetten bij verschillende Domotica projecten. De module kan zelfstandig via TCP of UDP communiceren en dat opent de weg naar vele Domotica oplossingen.

Domoticz

De module kan zelfstandig via HTTP communiceren met Domoticz en een interface is vrij eenvoudig te realiseren. We zullen ons in het begin focussen op communicatie tussen ESP en Domoticz en tijdens het ontwikkelen zullen we Domoticz gebruiken als test platform. Maar later is het denkbaar dat we ook andere Domotica omgevingen gaan ondersteunen.

Nodo

De Nodo is een bekende Domotica oplossing. Op dit moment wordt gewerkt aan versie 3.8. We onderzoeken op dit moment de communicatie mogelijkheden tussen Nodo en de ESP. Beperking is dat de Nodo Controller de webinterface dedicated gebruikt voor communicatie tussen Nodo en Webapplicatie. Daarop kunnen we niet zo eenvoudig "inbreken".

??

todo ?