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.
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:
- RAK5005-O WisBlock Base Board
- RAK4631 nRF52840 SX1262 Module for LoRaWAN
- RAK1903 WisBlock Ambient Light Sensor
- RAK1921 WisBlock OLED Display
- RAKBox-B5 Transparent Acrylic Enclosure
- Jumper Wire Female to Male
- Micro USB cable
- 2.54 mm Single Row Male Header Connector 4 pins
- 2.54 mm Single Row Female Header Connector 4 pins
- Screws
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.
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.
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.
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.
Secure the top part of RAKBox-B5 and put the RAK1921 wire assembly in the J12 of RAK5005-O.
Fasten all the standoff screws in RAKBox-B5 Transparent Acrylic Enclosure.
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.
You may now test your Lux Meter project to measure the light levels in your room or office to verify if it is adequate.
Updated