Skip to the content
2 layers70 × 40 mmMoreE u blox E PEAS, the printed circuit board in 3D

Node-RED Energy Harvesting dashboard example, weather forecast, temperature and humidty measurement. MQTT, ESP32, u-blox NINA-W10, HTU21D, IBM Cloud, CloudMQTT

Size
70 × 40 mm
Copper layers
2
Thickness
1.6 mm
Parts
43
Nets
34
Pads
202
Tracks, vias
286, 163
Pours
8
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
14 Jun 2019
Updated
26 Aug 2019

Overview

MoreE u blox E PEAS is an open-source printed circuit board by ldab, from the ldab/Node-RED-Energy-Harvesting-dashboard repository on GitHub, published under the MIT licence. It is a 2-layer board of 70 × 40 mm with 43 parts on 34 nets, routed with 286 tracks and 163 vias.

It is built around the NINA-W102-01B, HTU21D and HT7830, with the TPL5110QDDCRQ1 and NRH3010T100MNV among its other parts. Its parts include 13 resistors, 10 capacitors, 4 ICs, 2 inductors and 1 diode. It belongs with the home automation and IoT and sensors and measurement boards and the ESP32 boards of this library.

Main components

5

README

README.md

Node-RED-Energy-Harvesting-dashboard

Node-RED Energy Harvesting dashboard example, weather forecast, temperature and humidty measurement. MQTT, ESP32, u-blox NINA-W10, HTU21D, IBM Cloud, CloudMQTT

GitHub version Build Status License: MIT

GitHub last commit

dashboard

Sumary

  1. How to build PlatformIO based project
  2. TODO
  3. Energy Harvesting
  4. MQTT Broker
  5. IBM Node-RED Hosting
  6. Node-RED Flow
  7. OpenWeatherMap API
  8. Node-RED Notification
  9. Programming
  10. Calibrating ADC for ESP32
  11. Partition Table and Flash size
  12. Erase Flash
  13. Power Measurement
  14. PCB
  15. Final Thoughts or Improvements
  16. Credits

How to build PlatformIO based project

  • More information can be found on their comprehensive Docs. But Basically:

    1. Download and install official Microsoft Visual Studio Code. PlatformIO IDE is built on top of it
    2. Open VSCode Package Manager
    3. Search for official platformio-ide extension
    4. Install PlatformIO IDE.

PlatformIO installation

TODO

  • More detailed IBM deploy;
  • Details on the flows;
  • Node to be installed;
  • Energy Harvesting details;

Energy Harvesting

Energy Budget

While Communicating
Component~Typ mA
NINA-W102120
While Sleep (TPL5110)
Component~Typ μA
TPL51100.035
Cap leak30
LDO1
Passive5
  • The code takes in average 2000ms to execute;
  • Wakes up every hour;
  • 10 hours of charging soruce;

energy budget

MQTT Broker

The MQTT Broker used is CloudMQTT they offer Free accounts 😉 that works just fine.

IBM Node-RED Hosting

The process was a bit tedious and took a while to get it properly running as of today (2019/06/15) the information provided on the tutorial had few broken links.

https://nodered.org/docs/platforms/bluemix

  1. Sign-up/Log in to https://cloud.ibm.com/;
  2. Using the top search bar, search for Node-RED Starter;
  3. Fill the required fields, App name, Host name, etc...
  4. Select Lite for SDK for Node.js and Cloudant, those are free, you can upgrade later if required;
  5. Click Create at the bottom right, the circle will spin, take few seconds;
  6. You will be redirected to the next page and should see running when everything is ready for use:

IBM Cloud Start

  1. Go to your App URL, something like http://AppName.eu-gb.mybluemix.net and complete the initial set-up;
  2. The Node-Red GUI Flow Editor is available at http://AppName.eu-gb.mybluemix.net/red

Node-RED Flow

Install required nodes

  • Menu -> Manage Palette -> Install tab. You will need node-red-node-openweathermap and node-red-dashboard

Import Node example

  • Copy the flow below and import to your Nore-RED available at yournode.eu-gb.mybluemix.net/red Import > Clipboard, paste it.

You will find the flow.json here.

Node-RED Flow

Cloudant Credentials for cleaning database

  • Generally Cloudant autheticate via IBM cloud therefore we need to create new Credentials and use the username and password for authentication on the delet inputs on database node.

IBM Cloudant Credentials

OpenWeatherMap API

  • In order to get the weather forecast information for the OpenWeatherMap node, you will need to get your API at https://openweathermap.org/api
  • Then define your location and the information you would like to show on the "Forecast String" node:
text
{
  "coord":{"lon":139,"lat":35},
  "sys":{"country":"JP","sunrise":1369769524,"sunset":1369821049},
  "weather":[{"id":804,"main":"clouds","description":"overcast clouds","icon":"04n"}],
  "main":{"temp":289.5,"humidity":89,"pressure":1013,"temp_min":287.04,"temp_max":292.04},
  "wind":{"speed":7.31,"deg":187.002},
  "rain":{"3h":0},
  "clouds":{"all":92},
  "dt":1369824698,
  "id":1851632,
  "name":"Shuzenji",
  "cod":200
}

Node-RED Notification

  • Via the catch node, you can enable notification, for your phone for example. Below I have quickly show few options:
  1. Email
  • Use the email output, configured with your email provider info;
  1. PushSafer
  • Offers several customizations, sound, vibration, icons, etc:
  • GET request url: https://www.pushsafer.com/api?k=YOURKEY&c=%23ff0000&v=1&a=1&m={{payload}}
  1. Twilio SMS
  • SMS API, built-in to the Node-RED and IBM example;
  1. IFTT
  • If this than that, with android and iOS apps can be accesible via webhooks;
  • GET https://maker.ifttt.com/trigger/YOUR_EVENT/with/key/YOUR_KEY?value1=MESSAGE

NINA-W1 Programming

  • An external 3.3V UART/USB Converter is required in combination with jumper configuration and button pressing:

    1. Remove the 2 jumpers and set it to Flash Position:

    board flashing

    1. Power or reset the board while keeping BOOT low/pressed.
  • In order to program the Nano Timer TPL5110 the DIP switch needs to be set before connecting power/supercap.

Calibrating ADC for ESP32

  • ADC on ESP32 has been reported being innacurate, therefore one can use adc2_vref_to_gpio( GPIO_NUM_25 ); to route Vref to GPIO_NUM_25 that can be measured over NINA PIN 16 -> R7 in order to calibrate during ADC measurement.
  • Calling for esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_6, ADC_WIDTH_BIT_11, Vref, adc_chars);

Partition Table and Flash size

  • You can create a custom partitions table (CSV) following ESP32 Partition Tables documentation.

  • Partitions examples are available at GitHub arduino-esp32

  • minimal.csv is the default defined on nina_w10.json however I changed it in order to free some space up used by spiffs found on partitions_custom.csv here

    • No OTA;
    • No SPIFFS;
    • No EEPROM;

Erase Flash

pio run -t erase - > all data will be replaced with 0xFF bytes.

Power Measurement

  • The overall power/current can be measure by diconeting the Storage element and connecting the meter in series;
  • Alternativelly, to analyze NINA-W1 power profile, remove Vbat jumper and measure the current on the following position:

PCB

3D board u-blox E-PEAS

Schematic

u-blox E-PEAS u-blox E-PEAS

Enclosure

u-blox E-PEAS

BOM

BOM u-blox E-PEAS

u-blox E-PEAS

Final Thoughts or Improvements

  • Use 3.0V LDO, HT7830;
  • Replace LDO for a smaller drop-out voltage or lower power-down current;
  • Use a Buck/Boost converter instead of LDO in order to discharge super cap until 2.8V;

Credits

GitHub Shields and Badges created with Shields.io

Weather information from OpenWeatherMap

Webcam picture from webcam.travel

Adafruit HTU21D GitHub Library

Parts

43
QtyValueFootprintReferences
510KResistor_SMD:R_0805_2012MetricR3, R4, R8, R9, R10
4100nCapacitor_SMD:C_0805_2012MetricC1, C2, C3, C9
410uFCapacitor_SMD:C_0805_2012MetricC6, C7, C8, C10
31KResistor_SMD:R_0805_2012MetricR5, R6, R7
3SW_Push_KMR2SamacSys_Parts:SW_Push_1P1T_NO_CK_KMR2!BOOT1, !RESET1, MAN_ON1
21MResistor_SMD:R_0805_2012MetricR1, R2
21uFCapacitor_SMD:C_0805_2012MetricC4, C5
2NRH3010T100MNVSamacSys_Parts:L_Taiyo-Yuden_NRH30xxL1, L2
2SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP1, JP2
1124KResistor_SMD:R_0805_2012MetricR11
1169KResistor_SMD:R_0805_2012MetricR12
130KResistor_SMD:R_0805_2012MetricR13
161300211121SamacSys_Parts:PinHeader_1x02_P2.54mm_VerticalJ1
1AEM10941Package_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.35x3.35mmAEM10941
1BSS84W-7-FPackage_TO_SOT_SMD:SOT-323_SC-70Q1
1CLEARLED_THT:LED_D5.0mm-4_RGBLED1
1HT7830Package_TO_SOT_SMD:SOT-23-5U2
1HTU21DPackage_DFN_QFN:DFN-6-1EP_3x3mm_P1mm_EP1.5x2.4mmU1
1LOGOSamacSys_Parts:MoreEG***
1NINA-W102SamacSys_Parts:NINAW102IC1
1SCMT22C505PRBA0SamacSys_Parts:SCMT22C505PRBA0SUPERCAP1
1SV1SamacSys_Parts:PinHeader_2x03_P2.54mm_VerticalFlash_Conf1
1Sleep ConfButton_Switch_THT:SW_DIP_SPSTx02_Slide_9.78x7.26mm_W7.62mm_P2.54mmSleep_Conf1
1TPL5110QDDCRQ1Package_TO_SOT_SMD:SOT-23-6IC2
1UARTSamacSys_Parts:PinHeader_1x05_P2.54mm_VerticalSV2

Similar boards

  • 4 layers80.6 × 60.6 mmLorawan sensor node v2, the printed circuit board in 3D

    Lorawan sensor node v2

    ElektorLabs/lorawan-sensor-node-v2

    Solar Powered LoRaWAN Sensor Node V2

    84 parts1GPL-3.0
  • 2 layers50 × 70 mmTimeCapsule, the printed circuit board in 3D

    TimeCapsule

    jaxfry/TimeCapsule

    A usb time capsule!

    56 parts
  • 2 layers47 × 20.7 mmNINA W102 minimal breakout, the printed circuit board in 3D

    NINA W102 minimal breakout

    nobodywasishere/sphinx-pcbdraw

    Sphinx extension for embedding KiCAD board views created with PcbDraw

    20 parts12MIT
  • 4 layers50.2 × 72.4 mmRaceTracker, the printed circuit board in 3D

    RaceTracker

    jonaschramm/race-tracker

    Custom PCB data logger for motorcycle racing: GPS position + IMU motion data, logged to a microSD card, with an e-Paper status display. Built around an ESP32-S3 (WiFi/BT built in) so it can also stream/sync over WiFi.

    135 parts
  • 2 layers31.8 × 56 mmDarkroom tracker, the printed circuit board in 3D

    Darkroom tracker

    Roboy/darkroom_tracker

    pcb for lighthouse tracking

    40 partsBSD-3-Clause
  • 2 layers93 × 42 mmADEM, the printed circuit board in 3D

    ADEM

    timelab/ADEM

    Mobile device for distributed measurements of particulate matter (fine dust)

    29 parts13LGPL-3.0

Questions

How big is the MoreE u blox E PEAS PCB?

It measures 70 × 40 mm and has 2 copper layers, 1.6 mm thick.

What parts does the MoreE u blox E PEAS use?

43 parts, built around the NINA-W102-01B, HTU21D, HT7830 and TPL5110QDDCRQ1. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the MoreE u blox E PEAS KiCad files?

From the ldab/Node-RED-Energy-Harvesting-dashboard repository on GitHub, at the commit this page was made from: the board is PCB/KiCad/MoreE u-blox E-PEAS.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the MoreE u blox E PEAS design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).