Skip to main content

Introduction

In this tutorial, you will learn how to create a project with a NodeMCU ESP8266 board and some NeoPixel lights. You will use these devices to display the carbon intensity of electricity generation in New Zealand. Carbon intensity is a metric that shows how much carbon dioxide is emitted per unit of electricity produced. Carbon dioxide is a greenhouse gas that contributes to global warming and climate change. The dirtywatts.nz website provides real-time data on the carbon intensity and demand level of electricity in New Zealand.

The NodeMCU ESP8266 board is a microcontroller that can connect to the internet via Wi-Fi. You can program it with PlatformIO and C++, which are software tools that help you write and upload code to your board. The NeoPixel lights are RGB LEDs that can be individually controlled with a single wire. You can change their colors and brightness with your code. The dirtywatts.nz website has an API, which is an interface that allows your board to communicate with the website and get data from it.

You will need the following components for this project:

To complete this project, you will need to do the following steps: