Difference between revisions of "GettingStarted"
Line 1: | Line 1: | ||
= Introductie = | = 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 = | = 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 = | = 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 == | == 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 == | == NodeMCU == |
Revision as of 19:18, 24 August 2015
Contents
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 ?