There are many examples in SensorController Studio, but there are few examples using I2C on LaunchPad. This article will use TI's CC1352P wireless MCU and OPT3004 light sensor to fill this gap.
Introduction
The OPT3004 is a sensor for measuring visible light intensity. The sensor's spectral response closely matches the visual response of the human eye and has a high infrared rejection rate. The OPT3004 device has a precise spectral response and enhanced infrared rejection, so it can accurately measure the intensity of light visible to the human eye and is not affected by the light source.
The CC1352P is a multi-protocol Sub-1 GHz and 2.4 GHz wireless MCU that targets Wireless M-Bus, IEEE 802.15.4g, Smart Objects with IPv6 (6LoWPAN), Thread, Zigbee, KNX RF, Wi-SUN, Bluetooth 5 Low Energy, and proprietary systems, including the TI 15.4-Stack. The device includes an integrated high power amplifier with best-in-class efficiency of +20dBm for long-range applications
. The sensor controller is a small CPU core included in the simplelink series of wireless MCU CC26xx/CC13xx, which is highly optimized for low power consumption and efficient peripheral operation. The sensor controller is located in the CC26xx/CC13xx auxiliary (AUX) power/clock domain and can autonomously perform simple background tasks independent of the system CPU and MCU domain power states to achieve extremely low power consumption.
Hardware connection
Required hardware:
OPT3004 EVM
LAUNCHXL-CC1352P
connection as shown below:
Please connect according to the actual board situation. DIO5 and DIO22 of CC1352P have been pulled up by 3.3KΩ resistors, so these two pins can be used directly.
|