Difference between revisions of "GettingStarted"

From Let's Control It
Jump to navigation Jump to search
Line 18: Line 18:
  
 
== 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 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.
+
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.
  
Hier is waar het allemaal begint:
+
This is where it all starts:
  
 
https://github.com/esp8266/Arduino
 
https://github.com/esp8266/Arduino
  
Download de aangepaste IDE voor de ESP:
+
Download generic Arduino IDE and configure the boardmanager for 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.
+
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.
  
= Domotica omgeving =
+
= Home Automation controllers =
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.
+
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 ==
 
== 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.
+
The ESP module can communicate directly with Domoticz using the HTTP interface. We will focus on Domoticz during prototyping.
Maar later is het denkbaar dat we ook andere Domotica omgevingen gaan ondersteunen.
 
  
 
== Nodo ==
 
== 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".
+
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 ==
todo ?
+
A well known webservice to log you sensor data. Just create an account, configure firmware an you're set.

Revision as of 19:29, 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

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.

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.

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.