top of page

Basic Assembly and Setup

Public·217 members

Mark-David Hosale
Mark-David Hosale

Default behaviour

I am having an issue with the default behaviour of the Nybble pet. A little history:

I had a Nybble from a few years back with a v 1_1 board that gave me trouble and put it aside. Recently I had another look at it and decided to add the battery (that wasn't available back then) and the latest 1_2 board. There was some strangeness in the behaviour so I decided to upload the latest OpenCat and was able to get it calibrated properly and runnning using the flags:



#define MAIN_SKETCH
#define NYBBLE 
#define NyBoard_V1_2
#define ULTRASONIC

The only thing is the default behaviour is a cycle of movements (see video) - but what could be preferred is if it would stay on the last command or go to a rest state - ideally it would be in a rest state on start-up. Any clues on how to make this happen?


In the serial terminal I get:

* Start *
Nybble
N_240907
Servo:23.92
Skill
TaskQ
k
k
k
k
k
k
(constant)

And here is a video showing it in the deafutl state, then going into a standing state, then back to the default state (ideally it would just stay standing....).



BTW - when I put it in calibration mode it stays there, but as sson as I save it goes back to the deafult mode.


Thanks for any advice you have....

35 Views
Jason
Jason
Sep 09, 2024

If you uncomment the macro  #define ULTRASONIC, it will activate the Ultrasonic mode, just as the video you attached. you can check the behavior in the source code (OpenCat\src\ultrasonic.h)

BTW the ultrasonic sensor should connect to Grove port (D6, D7), for more details please refer to : https://docs.petoi.com/extensible-modules/ultrasonic-sensor

bottom of page