INTRODUCTION
In this tutorial, we will cover:
- Board Setup (connect to network)
- Getting Started with Arduino IDE
- How to install the Espresso Lite V2.0 library from Github
Here is the specification for the board. For further information about the board you can visit our website.
-
Features Espressif System’s ESP8266 WROOM-02 Wi-Fi module (with 4MB flash)
-
Design for IoT with free espert.io cloud and app service
-
Support the Arduino IDE (boards manager) and libraries
-
Auto program loading from Arduino IDE, using UC00A (or other compatible USB to Serial)
-
Vin: 5 to 12VDC
-
Operating Voltage: 3.3VDC
-
On board 3.3V Voltage Regulator with maximum current of 800mA continuous, 1A peak
-
One Reset button, two User Programmable buttons
-
WROOM-02 module is FCC, CE & TELEC certified
-
Breadboard friendly breakout pins
-
Ready pads for I2C Oled panel
-
Operating Voltage: 3.0 to 3.6VDC
-
Operating Current: Average = 80mA
-
IEEE 802.11b/g/n at 2.4 GHz
-
WiFi mode: SoftAP/Station/SoftAP + Station
-
Security: WPA/WPA2
-
Encrytion: WEP/TKIP/AES
-
Integrated low power 32-bit MCU
-
Integrated 10-bit ADC
-
Integrated TCP/IP protocol stack
-
Integrated TR switch, balun, LNA, power amplifier and matching network
-
Integrated PLL, regulators, and power management units
-
Various interfaces available, including SDIO, HSPI, UART, I2C, I2S, IR, PWM, GPIO, etc.
-
Supports antenna diversity
-
Deep sleep power <10uA, Power down leakage current < 5uA
-
Wake up and transmit packets in < 2ms
-
Standby power consumption of < 1.0mW (DTIM3)
-
+20dBm output power in 802.11b mode
-
Operating temperature range -40C ~ 125C
-
FCC, CE and TELEC certified
Hardware Setup:
–Espresso Lite V2.0
|
–USB to UART Converter
|
–DHT22 Temperature and Humidity Sensor
|
–I2C Oled Module – Blue
|
GETTING STARTED
Step 1
Connect to the Internet by using AP mode(access point) method.
Step2
Assemble the Oled screen to the Espresso Lite v2.0 at 3v3,GND, SCL and SDA as the picture show:
Step 3
Press the button of GPIO13 for a few second until the Espresso Lite v2.0 restart, to switch the mode to the AP mode.
- Long blinks: SmartConfig mode
- No flash: Connected to Wi-Fi
- Short blinks : AP mode
- Normal blink: Trying to connect to Wi-Fi
- No flash: Not connected to Wi-Fi
Step 4
The Espresso Lite v2.0 is now as an access point, so connect your laptop to the access point. The SSID shown on the OLED screen is decimal, however the SSID of the access point is shown in hexadecimals, so you will need to enter the SSID on the OLED screen into a hexadecimal to decimal converter to find the correct access point to connect to on your laptop.
Step 5
Open Internet browser and insert the IP address 192.168.4.1
Step 6
A box will appear, choose one of the Wifi network and press Enter.
Note: **After pressing Enter, press the button GPIO13 till the Oled screen reset. If the Espresso Lite v2.0 not connected please repeat the step or choose other networks.
Step 7
When the Oled screen show “Success”, that means the network is connected to your device.
Getting Started Espresso Lite v2.0 with Arduino IDE
Step 1
Install or update Arduino IDE v1.6.8
Step 2
Click on file->Prefereces->Settings->Additional Boards Manager URLs
Step 3
Copy this link: http://arduino.esp8266.com/stable/package_esp8266com_index.json into the columns of Additional Boards Manager URLs and click “OK”.
Step 4
Next,click on Tools->Board->Boards Manager,install the esp8266 by ESP8266 Community latest version.
Step 5
After install, again go to the board and click on Espresso Lite v2.0.
Step 6
After that, go to Sketch->Include Library->Manage Library, search the Library below and install it.
- ESPert by Jimmy (current version 1.1.5)
- Adafruit NeoPixel by Adafruit (current version 1.0.4)
- ArduinoJson by Benoit Blanchon (current version 5.1.1)
- DHT sensor library by Adafruit (current version 1.2.3)
- ESP8266 Oled Driver for SSD1306 display by Daniel Eichborn (current version 2.0.0)
- HttpClient by Adrian McEwen (current version 2.2.0)
- PubSubClient by Nick O’Leary (current version 2.6.0)
Note: **Make sure you have installed the LATEST version for these libraries!
Or you can install it from github,click the link of each library to download the zip file.
How to install library from github manually?
Step 1
Download the zip file library from github and save to a folder.
Step 2
Go to Sketch->Include Library->Add.ZIP Library
Step 3
Select your zip file and open it.So the library will install in your Arduino IDE 1.6.8.
You may try other example.
Have Fun!
12 thoughts on “Getting Started For ESPresso Lite v2.0”
Hi, you can download and add Adafruit_sensor.h in your Arduino libraries folder. For more technical questions, please post at Cytron Technical Forum. Thanks.
How to solve this problem?
Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: “ESPresso Lite 2.0, 80 MHz, Flash, 4M (1M SPIFFS), ck, v2 Lower Memory, Disabled, None, Only Sketch, 115200”
In file included from C:\Users\Fakhrul\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:
C:\Users\Fakhrul\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
#include
^
compilation terminated.
Multiple libraries were found for “HttpClient.h”
Used: C:\Users\Fakhrul\Documents\Arduino\libraries\HttpClient
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\libraries\Bridge
exit status 1
Error compiling for board ESPresso Lite 2.0.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Hi..i’m getting this error message
Multiple libraries were found for “HttpClient.h”
what does this mean?
Arduino: 1.8.5 (Mac OS X), Board: “ESPresso Lite 2.0, 160 MHz, 115200, 4M (3M SPIFFS), ck, Serial1, WiFi”
In file included from /Users/user/Documents/Arduino/sketch_jun25a/sketch_jun25a.ino:1:0:
/Users/user/Documents/Arduino/libraries/ESPert-master/src/ESPert.h:232:5: error: ‘DynamicJsonBuffer’ does not name a type
DynamicJsonBuffer jsonBuffer;
^
exit status 1
Error compiling for board ESPresso Lite 2.0.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Hi, it that espresso lite support with blynk ?
why am i getting this error message
Arduino: 1.8.2 (Mac OS X), Board: “ESPresso Lite 2.0, 160 MHz, 115200, 4M (3M SPIFFS), ck, Serial1, WiFi”
In file included from /Users/user/Documents/Arduino/cuba_jaya/cuba_jaya.ino:3:0:
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:415:18: error: ‘_user_on_start_callback’ has not been declared
OTA_CALLBACK(_user_on_start_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:415:49: error: invalid pure specifier (only ‘= 0’ is allowed) before ‘;’ token
OTA_CALLBACK(_user_on_start_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:415:49: error: ISO C++ forbids declaration of ‘OTA_CALLBACK’ with no type [-fpermissive]
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:416:18: error: ‘_user_on_end_callback’ has not been declared
OTA_CALLBACK(_user_on_end_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:416:47: error: invalid pure specifier (only ‘= 0’ is allowed) before ‘;’ token
OTA_CALLBACK(_user_on_end_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:416:47: error: ISO C++ forbids declaration of ‘OTA_CALLBACK’ with no type [-fpermissive]
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:416:5: error: ‘int ESPert_OTA::OTA_CALLBACK(int)’ cannot be overloaded
OTA_CALLBACK(_user_on_end_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:415:5: error: with ‘int ESPert_OTA::OTA_CALLBACK(int)’
OTA_CALLBACK(_user_on_start_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:417:24: error: ‘_user_on_error_callback’ has not been declared
OTA_CALLBACK_ERROR(_user_on_error_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:417:55: error: invalid pure specifier (only ‘= 0’ is allowed) before ‘;’ token
OTA_CALLBACK_ERROR(_user_on_error_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:417:55: error: ISO C++ forbids declaration of ‘OTA_CALLBACK_ERROR’ with no type [-fpermissive]
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:418:27: error: ‘_user_on_progress_callback’ has not been declared
OTA_CALLBACK_PROGRESS(_user_on_progress_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:418:61: error: invalid pure specifier (only ‘= 0’ is allowed) before ‘;’ token
OTA_CALLBACK_PROGRESS(_user_on_progress_callback) = NULL;
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:418:61: error: ISO C++ forbids declaration of ‘OTA_CALLBACK_PROGRESS’ with no type [-fpermissive]
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:421:19: error: ‘OTA_CALLBACK’ is not a type
void on_start(OTA_CALLBACK(fn));
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:422:17: error: ‘OTA_CALLBACK’ is not a type
void on_end(OTA_CALLBACK(fn));
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:423:22: error: ‘OTA_CALLBACK_PROGRESS’ is not a type
void on_progress(OTA_CALLBACK_PROGRESS(fn));
^
/Users/user/Documents/Arduino/libraries/ESPert/src/ESPert.h:424:19: error: ‘OTA_CALLBACK_ERROR’ is not a type
void on_error(OTA_CALLBACK_ERROR(fn));
^
exit status 1
Error compiling for board ESPresso Lite 2.0.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Hi, the error is “Adafruit_Sensor.h: No such file or directory”. I’m not sure why they separating this library. However you can download Adafruit_Sensor.h here and put it inside your Arduino libraries folder. Thanks.
HI im new to this arduino and espresso world but im having trouble uploading my skech into my espresso lite 2.0
im getting this message
Arduino: 1.8.2 (Windows 10), Board: “ESPresso Lite 2.0, 80 MHz, 115200, 4M (3M SPIFFS), ck, Disabled, None”
In file included from C:\Users\user\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:
C:\Users\user\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
#include
^
compilation terminated.
exit status 1
Error compiling for board ESPresso Lite 2.0.
i hope you can tell me whats wrong.