04. Installations and configurations pag. 12 pag. 12 4.1 CP210x USB Driver Installation pag. 12 4.2 Install Lifely Agrumino Lemon on Arduino IDE - procedure valid for Arduino IDE versions lower than version 2.0 4.3 Installation of Lifely Agrumino Lemon libraries pag. 15...
Page 3
Lifely Agrumino Lemon 05. Lifely Agrumino Lemon Program pag. 16 06. Using the Lifely library with Arduino IDE pag. 16 pag. 16 6.1 Examples in "QuickStart" pag. 17 6.2 Examples in "Cloud" pag. 18 6.3 Advanced examples pag. 18 6.4 OTA flashing to update firmware examples pag.
Introduction This document is intended to provide help in installing and using Lifely Agrumino Lemon. In addition, some example sketches will be illustrated, which can be found in the "Examples in Arduino IDE" category, subject to installation of the Lifely Agrumino Lemon library (we recommend always using the latest version).
Page 5
Lifely Agrumino Lemon IMPORTANT! Activation/Deactivation of the charging circuit. If you use rechargeable batteries, the charging circuit should always be set to ON (see Figure 1). If, however, you use non-rechargeable batteries, the charging circuit must, of necessity, be set to OFF (see Figure 2). Failure to set it to OFF would cause the device to short-circuit.
Lifely Agrumino Lemon Hardware 2.1 Lifely Agrumino Lemon rev4 (front-board) This section highlights the main components of the Lifely Agrumino Lemon device. Light sensor Reset Button Temperature sensor (1)Battery recharge ON-OFF User Custom Button (2)Power to I2C ON-OFF Micro USB connector...
Lifely Agrumino Lemon 2.3 Lifely Agrumino Lemon rev5 The rev5 version of the Lifely Agrumino Lemon device is perfectly the same as the rev4 version, the only difference being that there is no jumper. The latter is replaced by a toggle located in the back-board, with an ON-OFF switch (see figure below).
Pinout and Connector In this section we are going to analyze, in more detail, the connectors present in the back-board of Lifely Agrumino Lemon (in the image below we have used a rev4 but it is identical to the rev5). The connectors are as follows:...
If you have the Arduino IDE version 1.8.19 please follow this procedure. The Lifely Agrumino Lemon Core is an ESP8266 WiFi. The official programming IDE is Arduino, thanks to the ESP8266 Core for Arduino project. In addition, it is also possible to use other IDEs, such as VSCode, using the Platformio extension.
Page 14
ESP8266 Boards and select Lifely Agrumino Lemon v4 (selection also valid for rev5). If you have done everything correctly, at the bottom of the Arduino IDE you should see Lifely Agrumino Lemon v4, as in the spot highlighted in the following image.
Page 16
Lifely Agrumino Lemon 4.3 Installation of Lifely Agrumino Lemon libraries on Arduino IDE To use Lifely Agrumino Lemon, you must install the Official Library. You must do this directly from the library manager in Arduino IDE. To do this go to Tools Library Management and then type in →...
Lifely Agrumino Lemon Lifely Agrumino Lemon Program The Lifely Agrumino Lemon board can be easily programmed: you simply select an example sketch found in the examples folder and then upload it by pressing the Upload button on the Arduino IDE. In addition, you can freely write code to create your own sketches.
WifiClient (ESP8266 example) Sample sketch to connect Lifely Agrumino Lemon to a WiFi connection. You need to write STASSID and STAPSK with a personal WiFi SSID and password.
Similar to the sketch in which data is sent to the server with a direct connection. AgruminoThingCloudWithPump Sketch that sends all sensor data from the Lifely Agrumino Lemon at the Thinger.io platform. Through the Thinger.io Dashboard and this firmware, it will be possible to enable or disable irrigation directly from the pump connector.
Lifely Agrumino Lemon AgruminoDweetHttpOTA This sketch is the same as AgruminoDweet, but it integrates firmware updating via OTA using a remote HTTP server. Whenever a binary file (.bin) is uploaded to the server, the board automatically downloads it and the device is updated totally autonomously.
Check from the Arduino IDE menu (Tools Port) that the → selected port is the one for your Lifely Agrumino Lemon. In case of other usb peripherals connected, check the one corresponding to Agrumino Lemon. On Windows systems, device management can be used.
Up to Arduino IDE version 1.8.19. Before proceeding, you need to install Arduino IDE from this link: https://www.arduino.cc/en/software After installing Arduino Ide, connect Lifely Agrumino Lemon to your PC/MAC with micro usb cable. Now open the Arduino IDE, go to File and click on Preferences.
Page 23
Lifely Agrumino Lemon Now go to Tools Click on Tab Manager. → → In the text box type "ESP8266", you will immediately find ESP8266 and click Install. Important! Install only versions 3.0.0 or later.
Page 24
Lifely Agrumino Lemon After completing the installation click Close. Now go to Tools Esp8266 Boards (3.0.0) and with → → one click select Lifely Agrumino Lemon v4.
Page 25
Lifely Agrumino Lemon If you made the choice correctly, you should see the words "Lifely Agrumino Lemon v4" in the lower right corner, as highlighted in the image below. Now you need to install the official library, so go to: Tools Library Manager and type in "Lifely"...
Page 26
Now connect the Agrumino to the Pc and go to Tools Port and → choose the correct port (COM19) related to your Lifely Agrumino Lemon. To figure out which port is used by your device see Section 7 FAQ 1.
Page 27
(arrow 1) next, change the "baud rate" to 115200 (arrow 2) and now you can finally view the data acquired by your Agrumino Lemon (arrow 3). From now on, you can better manage your device. Also try the other sketches in the examples folder of...
Page 28
Lifely Agrumino Lemon Tutorial with Arduino IDE 2.0 Coming soon!
Page 29
You can contact us at the following email address for more information: support@lifely.cc RVLC02 rev 1.2_ITA...
Need help?
Do you have a question about the Agrumino Lemon and is the answer not in the manual?
Questions and answers