Tags: Digital, Ambient, Light, Sensor, Proximity, Distance, Sensor, CJMCU-3216, AP3216, ALS/PS

Distance Light Digital Sensor Ambient Proximity Sensor CJMCU-3216 AP3216 ALS/PS

  • 19.00 AED
    • Ex Tax:19.00 AED
    • Product Code: AP3216
    • Availability: In Stock
    The AP3216C is an integrated ALS & PS module that includes a digital ambient light sensor [ALS], a proximity sensor [PS], and an IR LED in a single package.This device provides a multiple gain function with linear response over a dynamic range 365/1460/5840/23360 and is well suited to applicatio..


    The AP3216C is an integrated ALS & PS module that includes a digital ambient light sensor [ALS], a proximity sensor [PS], and an IR LED in a single package.
    This device provides a multiple gain function with linear response over a dynamic range 365/1460/5840/23360 and is well suited to applications under clear glass or darkened glass.
    The proximity function is targeted specifically towards near field application and detects external object with simple configurable zone controlled by registers. With multiple proximity gain control, multiple IR LED current control and 10-bit ADC output, this device is designed specially to fix low reflection objects, such as black hair.
    The device supports an interrupt feature to improve system efficiency and several features that help to minimize the occurrence of false triggering. Through internal calibration and CMOS design, the AP3216C is designed to minimize device-to-device variations for ease of manufacturability.


    Features

    I2C interface (FS mode @ 400k Hz)

    Mode Select: ALS, PS+IR, ALS+PS+IR, PD,

    ALS once, SW Reset, PS+IR once and

    ALS+PS+IR once.

    Built-in temperature compensation circuit

    Wide operating temperature range (-30°C to

    +80°C)

    Ambient Light Photo Sensor

     16-bit effective linear output (0~65535)

     4 user selectable dynamic range

     Anti-flicker rejection (reject 50/60Hz)

     High sensitivity @ darkened glass

     Window loss compensation

    Proximity Detector

     10 bit effective linear output (0~1023)

     4 programmable IR LED current output

     High ambient light suppression

     Cross talk compensation

    Form factor 4.1mm x 2.4 mm x 1.35 mm

    RoHS compliant



    ap3216c-lite-on.pdf
    Download File

    The sensor connects over I2C bus, so it can be easily interfaced with Arduino. I wrote a small sketch for Arduino UNO to communicate with the AP3216. Arduino accepts commands from the Serial Monitor.
    Here are some example commands:
    "write 0x00 0x01\n" - will write value 0x01 to the register 0x00
    "read 0x0C\n" - will read the value from register 0x0C
    "als start\n" - will start streaming the value from the ALS (ambient light sensor)
    "ps start\n" - will start streaming the value from the PS (proximity sensor)
    "stop\n" - will stop streaming the ALS / PS data.
    You can send the commands from the Serial Monitor, or you can use the RoboRemo app. 
    I also built some interfaces in RoboRemo for faster configuring and reading the sensor (you just press a button instead of writing the entire command). And you can also plot the data from the sensor!

    Here you can download the Arduino sketch and RoboRemo interface files:

    ap3216.zip
    Download File

    Picture
    Picture
    And here is a demo video:

    There are no reviews for this product.

    Write a review

    Please login or register to review