How To Build a Lux Meter Using WisBlock

KHM-043-00.png

Overview

Good lighting in our working areas is crucial since it affects our productivity and safety concerns. The benefit of adequate light levels is to prevent eye strain which allows you to work efficiently and comfortably for longer periods. This article will guide you how to build a lux meter using the WisBlock platform to measure light levels of your workplaces.

KHM-043-01.png

Based on the Engineering ToolBox site, the table below shows the recommended light levels for various locations.

Recommended Luminous Intensity for Common Work Areas

Work Areas Luminous Intensity (lumen/m2)
Homes and warehouses 150
Common office work area 250
Classrooms 300
Common office work 500
Common drawing areas 1000

Prerequisites

Hardware

To build this lux meter, you need the following:

KHM-043-02.png

Software

Arduino IDE

Follow the installation guide of BSP to set up your Arduino IDE to program WisBlock boards.

Assembly

Connect the RAK4631 to the CPU slot and solder a 4-pin female header connector to J12 then attach the RAK1903 to slot A.

KHM-043-03.png

Solder a 4-pin male header connector to RAK1921 OLED display. Make sure to cover the OLED display with a masking tape to prevent excess solder lead coming from the pins. The excess solder will damage the OLED display.

KHM-043-04.png

Attach the 4-pin male to female jumper wire to the RAK1921. Check the supply polarity pins so that the OLED display will not be destroyed.

KHM-043-05.png

Fix all the screws in the RAK5005-O and RAKBox-B5 acrylic enclosure. Put all the standoff screws so that the top acrylic enclosure will be secured.

KHM-043-06.png

Secure the top part of RAKBox-B5 and put the RAK1921 wire assembly in the J12 of RAK5005-O.

KHM-043-07.png

Fasten all the standoff screws in RAKBox-B5 Transparent Acrylic Enclosure.

KHM-043-08.png

Setting Up Arduino IDE to Program the WisBlock Board

Download the code from the WisBlock GitHub repo.

Open it using Arduino IDE.

Install the RAKwireless Wisblock Core modules for the Arduino Board manager provided in the GitHub repo.

Add all the libraries by clicking the link of OPT3001 and U8g2 in the Arduino code.

Check the code by compiling it and then upload the code in the RAK4631 nRF52840 SX1262 Module for LoRaWAN.

KHM-043-09.png

You may now test your Lux Meter project to measure the light levels in your room or office to verify if it is adequate.

KHM-043-010.png

Updated