Resin.io application to showcase an Artik-10 controlling a MIPI screen with a Infrared Proximity Sensor (Sharp GP2Y0A21YK)
Connect the sensor as shown below:
- You need a Samsung account and a device created in the SAMI dashboard
- You need to create a new device type here
- Manifest - Upload device_manifest.json from this repository.
SAMI_URL
=> string (optional) ( defaults tohttps://api.samsungsami.io/v1.1/messages
) the SAMI endpointSAMI_DEVICE_ID
=> string (required) The Device ID set in the SAMI dashboardSAMI_DEVICE_TOKEN
=> string (required) The Device token generated in the SAMI dashboardSENSOR_THRESHOLD
=> string (optional) The ADC threshold to activate the sensorPOLL_INTERVAL
=> number (optional) Time in milliseconds to poll the sharp sensorDEVICE_NAME
=> string (optional) The Device name to send to SAMI
Use the following command to create a raw image for the MIPI screen. The input image should be 1080x1920.
ffmpeg -vcodec png -i input.png -vcodec rawvideo -f rawvideo -pix_fmt rgb32 output.raw