Change Location EUR
 
Mouser Europe - Flag Mouser Europe

Incoterms: DDP is available to customers in EU Member States.
All prices include duty and customs fees on select shipping methods.

Incoterms: DDU applies to most non-EU customers.
Duty, customs fees and taxes are collected at time of delivery.


Please confirm your currency selection:

Euros
Euros are accepted for payment only in EU member states these countries.

US Dollars
USD is accepted in all countries.

Other currency options may also be available - see
Mouser Worldwide.

Bench Talk for Design Engineers

Bench Talk

rss

Bench Talk for Design Engineers | The Official Blog of Mouser Electronics


Mouser’s STEAMy Summer: Part 2 Mike Parks

Welcome to part 2 of our STEAMy summer blog series. In part 1, we talked about the resources available for parents and kids to explore STEAM (science, technology, engineering, art, and mathematics) topics so that they can develop hands-on embedded electronics skills through project-based learning. This time let’s dive in and design and code a specific project. Don’t feel obligated to use this project exactly as described, but rather use it as a starting point for your imagination and to help explain the engineering process to your budding engineer-in-training.

Enjoying The Sunshine

Though the fall season is near, many of us will miss the summer because it is a season that means long days and outdoor fun under the sunshine. This barrage of sunlight can be both a blessing and curse. While it lets us play outside for longer periods of time, it can also cause nasty side effects, such as sunburns or (in the worst case) skin cancer, if we’re exposed to too much of the sun’s ultraviolet (UV) radiation.

In the warm to hot months of spring and summer, applying sunblock regularly and taking breaks in the shade can help reduce the risks, though remembering to do so in the midst of vacations or leisurely frolicking can be a challenge, especially for kids. In the fall and winter, similar practices are important in environments experiencing consistent sunshine during the day.

However, what if we could monitor our UV exposure and trigger a reminder when it becomes essential to take safety precautions? This is what we will explore in this project. But first, let’s discuss the science!

Visible light, the light our eyes can see, occupies a very small frequency band relative to the larger electromagnetic spectrum. It is flanked by radio waves at the extreme lower frequencies and gamma rays at the extreme higher frequencies. Sitting just above the frequencies our eyes can see is UV light. UV light has wavelengths that range from 180 to 400nm. That roughly translates to frequencies ranging from 3x1016 down to 8x1014Hz. UV light is further broken down into three bands:

  • UVA or near UV (315–400nm)
  • UVB or middle UV (280–315nm)
  • UVC or far UV (180–280nm)

UVA and, more so, UVB are the frequencies of concern from a health perspective. UVC is absorbed by the atmosphere and is not as much of a concern. The factors that contribute to the health risks related to UV exposure include these points from the American Cancer Society’s list:

  • Time of day: UV rays are strongest between 10am and 4pm.
  • Season of the year: UV rays are stronger during spring and summer months. This is less of a factor near the equator.
  • Distance from the equator (latitude): UV exposure goes down as you get further from the equator.
  • Altitude: More UV rays reach the ground at higher elevations.
  • Cloud cover: The effect of clouds can vary. Sometimes cloud cover blocks some UV from the sun and lowers UV exposure, while some types of clouds can reflect UV and can increase UV exposure.

The UV Index is a numerical way to convey to people the risk of UV exposure for a given location and time (Table 1). The index consists of the following increments:

Table 1: The UV index indicates risk using a numerical system.

UV Index

Risk

0.0 to 2.9

Low

3.0 to 5.9

Moderate

6.0 to 7.0

High

8.0 to 10.0

Very high

11.0 or greater

Extreme

 

Checking the UV index as part of your daily weather update can help you prepare to take necessary precautions such as limiting your time outdoors and applying adequate sunscreen to exposed skin.

The Concept

We now know a little more about why UV radiation can be dangerous. Reducing the time of UV exposure and ensuring that sunscreen is consistently applied is key to staying safe under the sun. With this in mind, let’s flesh out some of the requirements and actions to apply during this project:

  • Detect the amount of UV radiation exposure over time.
  • Determine if an exposure has exceeded a pre-specified limit.
  • Create a fun and whimsical alert to notify the user when a UV exposure limit is exceeded.
  • Create a reset for the exposure count.
  • Ensure that the device is battery operated.
  • Send exposure data to the cloud for future analysis. (Note: This step is useful to teach kids how to read charts and graphs!)

For this project, we will establish the following alert intervals (Table 2), take a reading every minute, and keep a running average of the UV index. If the average exceeds these levels in a given period of time, it should trigger an alert.

Table 2: This UV Index table shows the alert intervals for our project.

UV Index

Alert every...

Low or moderate

2 hours

High or very high

1 hour

Extreme

30 minutes

 

The Design

Using the requirements we have listed, we can start making some design assumptions at a very high functional level. For this design, let’s assume that the following five functional blocks will be necessary to meet our requirements:

  • UV detection
  • Data processing
  • Data communication to the cloud
  • User interface
  • Power

Now that we have identified a high-level architecture for your project, let the real fun begin. First, go to Mouser.com and start searching for parts that meet the needs for this project and that can be incorporated into your circuit design. To help you get started, here are some parts Mouser suggests for this project:

UV Detection

Silicon Labs produces an integrated circuit, which can function as a UV light sensor. The Si1145 provides a convenient I2C serial interface that can trigger telemetry to a microcontroller for further analysis and action. Mouser stocks the Adafruit 485-1777, a breakout board (BOB) that utilizes the Si1145 to make the UV monitor breadboard friendly. Conveniently, this BOB contains level shifters that allow it to operate with both 3.3 and 5V embedded platforms.

Data Processing, Communications, and Power

For this project, we can leverage the Arduino MKR1000 embedded development platform to serve as the brains and to provide a Wi-Fi connection to cloud-based storage. The board also utilizes a JST connector that allows the board to receive power by a single-cell, 3.7V, lithium polymer (Li-Po) battery with a minimal rating of 700mAh.

Consolidating multiple functions into a single component is a double-edged sword. On one hand, it reduces your part count, and there is less troubleshooting, as we can assume all onboard components have undergone tests by the manufacturer. On the flip side, if (for example) you wish to use Bluetooth instead of Wi-Fi for communications, then you will also need to consider how this change will impact the data processing and power functions. Engineering trade-offs are always a reality when designing a product. This is a simple example, but you can imagine that the issues will scale as the component count and complexity in the requirements increase.

Another thing to consider is that the MKR1000 operates at 3.3V, whereas as many other development boards (especially those not purpose-built for battery or mobile applications) tend to run at 5V. If you do modify the design to include different components, ensure that they are 3.3V compatible.

User Interface

The user interface will include both output from the system to the user as well as input from the user to the system. The output will serve as a UV threshold alert to notify the user that the threshold has been reached. The input will be a way to let the user acknowledge the alert and reset the system.

For the alert, a piezoelectric buzzer will definitely grab the attention of whomever is nearby. The buzzer of choice is the PS1240P02BT from TDK Corporation, since it operates at 3V. A resistor and transistor are also necessary to enhance the power of the buzzer and ensure that it drives enough current to make the buzz noticeable.

To reset the device once an alert is triggered, you can use a normally open (NO) momentary pushbutton. A pull-down resistor will serve to ground the button that is wired to the microcontroller general-purpose input/output (GPIO) pin to prevent any floating input (Figure 1).

Figure 1: The resulting circuit for the project will look like this. (Source: Author)

 

After putting everything together, the final circuit is complete, as shown above. In summary, the bill of materials (BOM) for this project is listed in Table 3:

Table 3:  This is the BOM for our UV monitor and alert project.

Mouser #

Description

QTY

485-1777

Optical Sensor Development Tools Digital UV Index/IR/Visible Light Sensor

1

782-ABX00011

Wi-Fi Development Tools (802.11) MKR1000 with headers

1

485-328

Adafruit Accessories Lithium Ion Polymer Battery 3.7V 2500mAh

1

810-PS1240P02BT

Audio Indicators & Alerts Round 12.2mmx6.5mm 4kHz VIN=3V

1

612-PV5S24011

Pushbutton Switches 0-2A 48VDC Off (On) 12mm Black Domed

1

512-PN2222ABU

Bipolar Transistors - BJT NPN Transistor General Purpose

1

279-CBT25J1K0

Carbon Composition Resistors 1kΩ 1/4W 250V

1

279-CBT25J10K

Carbon Composition Resistors 10kΩ 1/4W 250V

1

 

You can click here to add all these parts to your Mouser shopping cart.  Remember to check back for the final article in this blog series, where we will show you how to wire the circuit and write the code.

That’s it for now, but remember to check back for part 3 when we will go through each step to build the circuit and program the Arduino MKR1000 for your ultraviolet (UV) monitor and alert project so that you and your young, aspiring engineer can protect your family when you’re out enjoying the sun.



« Back


Michael Parks, P.E. is the co-founder of Green Shoe Garage, a custom electronics design studio and embedded security research firm located in Western Maryland. He produces the Gears of Resistance Podcast to help raise public awareness of technical and scientific matters. Michael is also a licensed Professional Engineer in the state of Maryland and holds a Master’s degree in systems engineering from Johns Hopkins University.


All Authors

Show More Show More
View Blogs by Date

Archives