top of page

Discussion Feed

View groups and posts below.


This post is from a suggested group

lin nagi
lin nagi
4 days ago · posted in Software

Anyone tried controlling Bittle with Arduino Mega instead of ESP8266?

Hi everyone,

I’m trying to control Bittle using the sendCMD function. Originally this was done with the test8266Master example on an ESP8266, but since I don’t have an ESP8266 right now, I replaced it with an Arduino Mega 2560.


My idea is to connect both the MU camera and Bittle to the Mega. The Mega reads data from the camera, makes decisions, and then sends commands to Bittle. I’ve confirmed that the communication between the Mega and the MU camera works fine, and from the Mega side it looks like commands are being sent continuously.


However, Bittle doesn’t respond at all and doesn’t perform any actions. I’m not sure if replacing the ESP8266 with an Arduino Mega could cause any logical or communication issues, or if there’s something specific about how sendCMD needs to be sent (UART, baud rate, command format, timing, etc.) that I might be missing.


Has anyone…

45 Views
Jason
Jason
4 days ago
ree
ree

You can connect three pins of the Mega 2560 to the serial communication pins on the NyBoard, as shown in the image above.


The code in test8266Master does not need to be modified, but the development board settings need to be changed, as shown in the image below:

ree

Then upload the sketch test8266Master.ino to the  Mega 2560.

This post is from a suggested group

About Backflip

My bittle is having trouble with backflips. He doesn't seem to jump high enough. This may be due to an old battery, but is there a way to fix this programmatically?

283 Views
Jason
Jason
Dec 22, 2025

Backflip is among the most difficult tricks that requires high precision in control and assembling. Some failures are due to bad joint calibration, some are due to an aged battery, etc. Could you send a video to show the backflip movements?

This post is from a suggested group

Michael PoelzlMichael Poelzl
Michael Poelzl

Stop head from falling off...

Hello!

I appreciate that the head connection for the Bittle has been designed so that the head pops off before damage occurs. This is great design but on both my Bittle X the head pops off almost every time the dog goes up side down and flips back to the standing position. For my workshops this is not ideal as every minute a kid comes running to ask me to fix the head. Do you have any good suggestion apart from super glueing the connection to make it less likely that the head comes off?

Thanks,

Michael

242 Views

This post is from a suggested group

Niels Vlaeminck
Niels Vlaeminck
27 days ago · posted in Software

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

166 Views
Rongzhong Li
Rongzhong Li
Dec 15, 2025

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


This post is from a suggested group

Marin SchoutenMarin Schouten
Marin Schouten
28 days ago · posted in Software

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


129 Views
Jason
Jason
Dec 15, 2025

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

This post is from a suggested group

We have been doing a family competition launching toy balls with the BittleX + ARM.


294 Views
Amit Banerjee
Nov 29, 2025

You can find more of our work with Bittle and Nybble robots at https://www.learnwitharobot.com/t/bittle

This post is from a suggested group

Shaughn Gray
Shaughn Gray

Call me Grandpa Gray

347 Views

This post is from a suggested group

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 .

473 Views
Marin Schouten
Nov 01, 2025

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...



This post is from a suggested group

Dave LeinerDave Leiner
Dave Leiner

Error 1006 when connecting to Wifi

When trying to connect to Bittle X over WiFi with ProgramBlockly in the most recent version, I get the following error messages:


[WebSocket] Connection closed 1006

Reconnect] Attempting to reconnect (2/5)... (delay: 1000ms)


QuickConnect seems to find and store the connection but then the connection keeps closing. Also, pressing the boot key no longer counts down 10 to open a hotspot so the web page connection method doesn't work any longer.

I tried an older version from July and it works OK.

Anyone else seeing this issue?

400 Views
Jason
Jason
Oct 16, 2025

Please try the latest code on the redesinWeb branch. https://github.com/PetoiCamp/OpenCatEsp32-Quadruped-Robot/tree/redesignWeb

bottom of page