Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Arduino Code for Olimax ESP32 PoE board to Push data in InfluxDBv1

Notifications You must be signed in to change notification settings

iotfablab/olimax-esp32-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UMG_Node

UMG_Node provides String based InfluxDB measurements in Line Protocol Format sent via HTTP/UDP to a central InfluxDB instance.

Using this Library

  1. Goto Tags to download the latest .zip file and extract the contents to <user>\Documents\Arduino\libraries folder.

  2. Rename to folder lincoln-node-v1.2.0 to UMG_Node.

  3. Restart your Arduino IDE and use #include <UMG_Node.h> in your code block.

  4. Examples can be found in Sketch\Include Library dropdown menu.

Hardware

  • Olimex ESP32-PoE

Software

  • arduino-esp32 library for ESP32 programming.
    • Install it via Board-Manager from Arduino IDE as mentioned here

External Libraries

  • Adafruit_BNO055
  • RTClib
  • NTPClient

Interfacing

Interface Hardware Pins GPIO Pins
I2C EXT2_7_SCL EXT2_10_SDA UEXT_5_SCL, UEXT_6_SDA GPIO_13 -> I2C_SDA GPIO_16 -> SCL

Note

In order to use the Olimex PoE module add the following to the beginning of every Arduino Sketch

#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
#define ETH_PHY_POWER 12

#include <ETH.h>
// code

Use ETH_LAN8260 under WiFi for Olimex-ESP32 Gateway with the above mentioned values for initial tests.

Examples

Sketch Description
influxPing Simple Sketch to check if the node is able to reach InfluxDB
influxHTTP_write Sending Line Protocol Information via HTTP
influxUDP_write Sending Line Protocol Information via UDP
rtcTimestamp Add Epoch Timestamps to Line Protocol from RTC DS3231
bnoCalibStorage Sketch to store the BNO055 to ESP32's Non-Volatile Storage (NVS)
NTP Sketch to use board as NTP Client and obtain Time from local NTP Server

Maintainers

About

Arduino Code for Olimax ESP32 PoE board to Push data in InfluxDBv1

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%