top of page

Software

Public·132 members

Niels Vlaeminck
Niels Vlaeminck

PETOI Bittle X - additional servo's

Hello, I am trying to connect a hacked 5V servo to the petoi bittle x. How can I achieve this? I've tried plugging it in to the 2 TX ports on the grove bord and adding servos in the src arduino folder, but it does not work. Does anyone have experience with this

63 Views

What's the type of the servo? Is it PWM or serial servo?

If it's a regular PWM servo, you can plug it in the unused PWM servo pin. There are 12 PWM servo pins and only 11 are used. However, the servo pins are powerd at 8.4V, so you will need to add a voltage divider.


Alternatively, you could use the Tx2 pin. But you will need to modify the PWM pin declaration in OpenCat.h. Then in the controlling part, call jointIndex 3 to control it.

ree


Marin SchoutenMarin Schouten
Marin Schouten

initialisation issue

I have rebuilt my opencat on an arduino Uno with I2C PWM, MPU and Eeprom. my former build had issues with wrong servos somehow. all the individual tests of modules are doing fine. but when I upload the main Opencat.ino. I have problems that the initialisation is stuck in a loop.

  1. if I commect out MAIN_Sketch, after pressing Y for resetting the joints, it will jump to saving the skills, prompt Servo:25.00 and then a big bunch of lines stating only IMU, then the message: * Change model and board names in OpenCat.ino! and start from the beginning.

  2. if I uncomment MAIN_Sketch, I get the prompt: Start , Nybble, N_250916 and again an bunch of lines with IMU and the loop back again to start,...ect.

Pretty sure this is some stupid small thing, but I please help.

thanks


63 Views
Jason
Jason
Dec 15

Due to the flash size of ATMEGA328P, it needs two rounds of uploading:

  1. Upload the configuration mode sketch

  2. Upload the major functionalities sketch For more details, please refer to: https://docs.petoi.com/arduino-ide/upload-sketch-for-nyboard#upload

Edited
Marin SchoutenMarin Schouten
Marin Schouten

compiling MPU6050 problems

Hi, I am trying to run the OpenCat software on a pure Arduino Nano, but I don't even get the software compiled in the IDE before uploading. I get a whole page of errors concerning the MPU6050.h and MPU6050.cpp files saying that the code does not comply with c++ rules and so on. can anybody point me in the right direction here? thanks.

sorry if this is the wrong forum thread .

430 Views

well I get the same messages as dr. Rongzhong showed above. but I understand that this are warnings that can be ignored. in the mean time, I have uploaded the code to an Arduino UNO succesfully. Although the PCA9865 calibration with PWM 8 to A3 (or PWM3 to A3) does not finish.

when I do install the main_skecth, I do get messages on the serial port and can send commands. But unfortunately, the servos seem to be not working correctly. with the ksit command, my cat tries to strangle himself by turning the neck 360 degrees and the rear left thighis going all the way back. some kind of yoga I suppose...



carter egan
carter egan

AR Robotic Controller



179 Views
Jason
Jason
Apr 28

Great! It' so cool!🏆👍

bottom of page