Tokay Lite

Open source, no-code, battery-powered Edge AI camera with night vision, motion detection, and TensorFlow Lite support

Aug 09, 2024

Project update 8 of 9

Getting Started!

by Constantine M

Hi folks,

Sorry for the delay here, but the devices have all been shipped out to backers.

We decided to do an FCC certification a few months ago, and so while we had all of the product out for a while now, the certification process took some time even without redesigning.

Here are a few notes for everyone to get started:

The 3D model of the enclosure: https://drive.google.com/file/d/1CrbCtIcFHMwgCeLFKtrfty-5gbWn46oL/view?usp=sharing

You may check the source code of the app running on the device here: https://github.com/maxlab-io/tokay-lite-sdk . It is based on ESP32-IDF framework.

Instructions on how to build the FW is here: https://docs.maxlab.io/docs/edge-ai-tokay-lite/firmware/

The ESP32 IDF framework is described here: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/index.html

The camera driver source code is available as a git submodule of tokay-lite-sdk repo (located in external/esp32-camera/ dir of the tokay-lite-sdk) , and upstream for the driver is located at: https://github.com/espressif/esp32-camera

The driver allows to tuning of different parameters of the OV2640 chip. We recommend taking a look at the DS here: https://www.uctronics.com/download/cam_module/OV2640DS.pdf and check various settings that can change the image quality and such.

The PIR sensor (U6) is responsible for motion detection and it is turned on and off via the D-LATCH (U4). In the code, you can see functions like pir_enable() and pir_disable():

https://github.com/maxlab-io/tokay-lite-sdk/blob/1f4e0fc3ad84ecf88d518734961b0b54e045481c/webserver/main/pir.h#L9-L10

https://github.com/maxlab-io/tokay-lite-sdk/blob/1f4e0fc3ad84ecf88d518734961b0b54e045481c/webserver/main/pir.c#L37-L53

A relevant bit of schematics is:

After the wakeup, to prevent the board from turning off again, PWR_EN pin must be held HIGH. In the code you can find that part in bsp.c file:
https://github.com/maxlab-io/tokay-lite-sdk/blob/main/webserver/main/bsp.c#L68-L75

Setting PWR_EN pin back to LOW will put the device to sleep if no motion is further detected.

Thank you,
Constantine
Maxlab team


Sign up to receive future updates for Tokay Lite.

Subscribe to the Crowd Supply newsletter, highlighting the latest creators and projects