Huskylens AI camera V1 with ESP32 board
Ahmad.bin muhamad 2026-04-08 23:39:55 536 Views5 Replies hi.. need help.. Huskylens Ai camera can work with ESP32 board?
if yes.. any example basic coding ?
before this i use arduino Mega with Husklylens all work fine..
when try use with ESP32 board.. example coding (from huskylens library) Error compiling..
thanks
Since Huskylens2 is in 5V and ESp32 is in 3V3, is it possible to directly connect the RX and TX pins between them?
Shaifol.Ifrad Direct connection of RX and TX is acceptable. However, please power Huskylens 2 separately to avoid insufficient power. You can use an extra Type‑C cable to connect its Type‑C port to a power source.
Hi! Yes, the HuskyLens AI camera is fully compatible with ESP32 boards!
I tested the library example HUSKYLENS_I2C.ino with ESP32 and encountered this compilation error:
E:\auduino\libraries\HUSKYLENS\HuskyLensProtocolCore.c:135:12: error: returning 'uint8_t ()[128]' {aka 'unsigned char ()[128]'} from a function with incompatible return type 'uint8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
135 | return &send_buffer;
| ^~~~~~~~~~~~
exit status 1
Here's the fix: Locate the HuskyLensProtocolCore.c file, change line 135 from “return &send_buffer; ” to “return send_buffer; ” , save the file and recompile.
Yx thanks for replay.. very appreciated.
let me try edit that file and update the result.
thanks


