Skip to content
English
  • There are no suggestions because the search field is empty.

Initializing-Sensors

Customer Documentation

Customer Documentation: Neonode® Touch Sensor Module User's Guide : Initializing Sensors

Customer Documentation: Neonode® Touch Sensor Module User's Guide : Initializing Sensors

Use the following sequence to initialize the sensor over I2C.

  1. Power on device.
  2. Wait for device to assert Data Ready pin (DR).
  3. Initiate 2 byte I2C read operation. Payload of this read should be EE XX where XX is the amount of bytes to read in a second I2C read operation.
  4. Read XX amount of bytes (number of bytes to read is indicated by second byte of first I2C Read Operation). Now read a message called BootComplete. The message should be

    F0 11 40 02 00 00 63 0B 80 01 YY 81 02 03 YY 82 02 00 YY

    where YY is usually "00" but can have another value. This signals the device is now booted.

  5. Set the device to the correct Operation Mode by sending an OperationMode command. The code to send is:

    EE 14 EE 12 40 02 02 00 67 0C 80 01 FF 81 01 00 82 01 00 83 01 00

    This will put the device in Detection Mode (which will produce touch notifications).

  6. Wait for DR to be asserted by the device and use a normal 2-step I2C Read Operation (as described above) to read the reply. The reply should be:

    EE 14 EF 12 40 02 02 00 67 0C 80 01 FF 81 01 00 82 01 00 83 01 00

    This means the mode setting has succeeded.

  7. Enable the device by sending an Enable command:

    EE 0B EE 09 40 02 02 00 65 03 81 01 00

    This enables the device to send touch notifications.

  8. Read the reply in the same way as above. The reply should be:

    EE 0B EF 09 40 02 02 00 65 03 81 01 00
  9. After this, just wait for DR to be asserted, which means that the device will send a Touch Notification or a BootComplete (as described in 4 above). A BootComplete indicates that the device has restarted for some reason, so rerun the initialization routing from point 5 to 8.