PSoC Analog Coprocessor Pioneer Kit Guide, Doc. # 002-11190 Rev. *B
38
Code Examples
4.2
Code Examples
shows a list of code examples that can be used with this kit.
Table 4-1. Code Examples
#
Project
Title/Description
1
PIR Motion Sensing
This code example demonstrates how to measure the voltage
signal from a PIR sensor to detect the movement of an IR
emitting object. The sensor data is communicated over I2C. The
RGB LED is also turned ON once motion is detected.
2
Ambient Light Sensing
This code example demonstrates how to measure the current
output from the ALS sensor and calculate the ambient light
illuminance. The measured current and the calculated light
illuminance are sent over I2C. The light illuminance is used to
control the RGB LED light intensity.
3
Temperature Sensing
This code example demonstrates how to measure the thermistor
resistance and calculate the temperature. The measured
thermistor resistance and the calculated temperature are sent
over I2C. The RGB LED is controlled based on the calculated
temperature value.
4
Inductive Proximity Sensing
This code example demonstrates how to interface PSoC Analog
Coprocessor with an inductive proximity sensor. The code
example measures the change in onboard inductance to detect
the presence of metal in close proximity to an onboard coil. The
measured sensor data is sent over I2C. The brightness of the
RGB LED is varied based on the proximity distance between the
sensor and metal.
5
Humidity Sensing
This code example demonstrates how to interface PSoC Analog
Coprocessor with a capacitive humidity sensor. The code
example measures the output capacitance of the humidity
sensor and calculates the value of humidity from the measured
capacitance. The measured capacitance and calculated
humidity value are sent over I2C. The intensity of the RGB LED
is varied with the calculated humidity value.