HuskyLens is an easy-to-use AI machine vision sensor. It is equipped with multiple functions, such as face recognition, object tracking, object recognition, line tracking, color recognition, and tag(QR code) recognition.
By wperko
#42212
I need help to send and receive to/from the HuskyLens using PICAXE BASIC and a PICAXE 20M2 chip or 28X2 chip. The is the programming I've tried, but I see no data back from the HuskyLens.

#picaxe 20m2 ; Define the Processor

hsersetup B9600_4, %00000 ; 9600 baud, non-inverted polarity

;hserout 0,(85,170,17,00,33,49)
hserout 0, (0x55,0xAA,0x11,0x00,0x21,0x31)

;hserin w1 ; HuskyData
debug w1

main: w1 = $FFFF ; set up a non-valid value
hserin w1 ; receive 1 byte into w1
if w1 <> $FFFF then ; if a byte was received
hserout 0,(w1) ; echo it back out
end if
goto main ; loop
#42246
nana.wang wrote:
Tue Jun 02, 2020 2:43 am
Hi, please try the code from the wiki and check the result.
Hi, I DO NOT have an Arduio or Raspberry PI. I do not use c language. I am using PICAXE BASIC editor to write a program for the HuskeyLens, but I am having trouble figuring out the initial communications with the HuskyLens to a PICAXE 20M2 chip.

PICAXE Editor: http://www.picaxe.com/Software

PICAXE BASIC Commands: http://www.picaxe.com/BASIC-Commands

PICAXE 20M2 chip: http://www.r2pv1.com/PICAXE20M2/images/20m2.jpg