# FAQ(Frequently Asked Questions)

## Arduino IDE

### Cannot upload sketch, sync error.

The error that occurs when uploading the sketch is shown below:

![](/files/mZregacj3hcviwdowg34)

This "not in sync error" indicates a bad connection between your computer and your robot. It could be:

* A wrong [physical connection](https://docs.petoi.com/arduino-ide/upload-sketch-for-nyboard#connect-the-uploader-sometimes-referred-to-as-the-programmer) between your uploader and the robot
* Your computer doesn't have a driver for the [uploader](https://docs.petoi.com/communication-modules/usb-downloader-ch340c#usb-uploader)
* You didn't [select the serial port](https://docs.petoi.com/arduino-ide/upload-sketch-for-nyboard#download-the-opencat-package) before pressing the upload button
* The uploader unit is defective. In this case, you can request a replacement from us at <support@petoi.com>

Usually, it can be fixed by the following checks:

1. &#x20;Install [the CH340 driver](#driver-for-ch340-usb-uploader)
2. &#x20;Use the USB cable with the data function(the one included in the kit is good).
3. &#x20;Select the correct board (Arduino Uno) and serial port
4. &#x20;Connect the board and the programmer in the right pin order

The above steps are covered in the [Doc Center](https://docs.petoi.com/arduino-ide/upload-sketch-for-nyboard).

Of course, you can also refer to the solution in the [Arduino technical forum](https://arduino.stackexchange.com/questions/17/avrdude-stk500-getsync-not-in-sync-resp-0x00-aka-some-dude-named-avr-won):

![](/files/3dQDDgfTgJJOoBWLGeul)

## Software

### What do different sounds from the board mean?

| Sound type              | Occasion                             | Explaination                      |
| ----------------------- | ------------------------------------ | --------------------------------- |
| Short melody            | Power on or reboot                   | The program starts successfully   |
| Short beep              | During use                           | The program receives a command    |
| Repetitive short melody | During use and pausing the movements | The battery is low or unconnected |

### Why there are two calibration stages?

There are two calibration steps for different components.

Because the controller board has limited resources, we divide the program into two stages.

In the first stage, we upload the program and large data to the onboard EEPROM (hard disk) and use the remaining programming space to calibrate the IMU, a sensor that measures the body orientation. The board should be leveled and untouched during the (IMU) calibration.

In the second stage, we upload the standard functional code. For the first-time configuration, we need to enter the (joint) calibration state and attach the legs in the right direction.

If you use the Arduino IDE to set up the board, you will handle those stages explicitly. The Petoi Desktop App can finish the two-stage uploading in the background. The smartphone app can work only with an already configured board. Its (joint) calibration is only for attaching the legs.

### When using the smartphone app, I found that Bittle was walking very slowly.&#x20;

Try turning off the Gyro in the [mobile app](https://docs.petoi.com/mobile-app/app-guide),  as shown in the following picture:

<figure><img src="/files/XJ2aDZx8blxvKQMiGAcf" alt=""><figcaption></figcaption></figure>

### When using the smartphone app, Bittle cannot turn back up now.

Try turning on the Gyro in the [mobile app](https://docs.petoi.com/mobile-app/app-guide),  as shown in the following picture:

<figure><img src="/files/9pF7ls3jEZ9dkcIxsVyf" alt=""><figcaption></figcaption></figure>

### Bittle doesn't walk very stable.

* Make sure you [calibrate](https://bittle.petoi.com/6-calibration) the joints with the included L-shaped tuner and understand the references
* Remove the rubber toe covers
* [Turning off the Gyro](#when-using-the-smartphone-app-i-found-that-bittle-was-walking-very-slowly.) will make slow gaits more stable

### If to buy the preassembled bittle does it still have to be calibrated?

Yes, you still need to use the desktop app or smartphone app or Arduino IDE [to fine-tune the joints](https://bittle.petoi.com/6-calibration).&#x20;

### If to buy the main board alone, do you have to buy a separate software program to make it work?

Our main board is specifically designed for our robots. The code is free to download on [GitHub](https://github.com/PetoiCamp).

### Could Python be used to control the robot?&#x20;

You can use python to control the robot. The scripts can work either on your computer and connects to the robot wired or wirelessly.&#x20;

### Can your little robot (Bittle / Nybble) function on its own? Or, it only works with the commands I give it? Also, can it learn?

It follows your instructions via the infrared remote, smartphone app, or desktop app. It can also do random behaviors if you upload the random mode. Best of all, the program is open source on GitHub and you can refer to [the relevant technical documents](https://bittle.petoi.com/11-tutorial-on-creating-new-skills) to create new skills for the robot.

## Hardware

### How can I easily install the springs into the upper legs of Bittle?

Please check out [the forum](https://www.petoi.camp/forum/basic-assembly-and-setup/just-got-my-bittle-kit-can-t-install-springs) post discussing installing springs with varies tools.

### I can't find the toe covers. What are the toe covers for?

The toe covers are for special experiments that require more friction. They are not required for regular walking and performance. We have removed them from the standard kit recently and you may order them as optional accessories.

### Some frame structures are broken. Where can I get replacement parts?

You may contact <support@petoi.com>. Show the picture of the broken pieces and explain how they broke. You may find the [3D-printable files](https://github.com/PetoiCamp/NonCodeFiles/tree/master/stl) or get a replacement directly from us.

### Where can I get the bone shown in Bittle's picture?

The little bone is included in the [Intelligent Camera Module](https://docs.petoi.com/extensible-modules/mu-camera) box and it is not being sold separately. You may download its 3D-printable file at: [`https://github.com/PetoiCamp/NonCodeFiles/blob/master/stl/Bittle_bone.stl`](https://github.com/PetoiCamp/NonCodeFiles/blob/master/stl/Bittle_bone.stl)

### Does it come with a battery or do you have to buy a lithium battery?

Both Bittle kit and pre-assembled Bittle include one Lithium battery with a built-in charging circuit. You may add more spare batteries.

### Does Rasberry Pi require any additional components?

You can solder the 2x5 socket on the NyBoard and then mount the Rasberry Pi on the NyBoard.&#x20;

Read more at <https://docs.petoi.com/api/raspberry-pi-serial-port-as-an-interface>

### How to debug the servo?

<figure><img src="/files/uoxrGjQmjS3E3UCtsZyt" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
\[1]. [Re-upload the firmware](https://docs.petoi.com/arduino-ide/upload-sketch-for-nyboard#5.-upload-the-configuration-mode-sketch)

\[2]. [Calibrate the PWM signal](https://docs.petoi.com/arduino-ide/upload-sketch-for-nyboard#9.-calibrate-the-servo-controller-chip-pca9685)

\[3]. [Swap the pin definitions](https://docs.petoi.com/arduino-ide/upload-sketch-for-nyboard#12.-modify-the-joint-pin-mapping)
{% endhint %}

## Resources and links

### Driver for CH340 USB uploader

* Mac: <http://www.wch-ic.com/download/CH341SER_MAC_ZIP.html>
* Windows: <http://www.wch-ic.com/downloads/CH341SER_EXE.html>

### Can I use Codecraft/block-based coding with the basic Bittle package or do I need to purchase add-on components/modules?

Bittle can be programmed with a Scratch-like web-based IDE [Codecraft](http://ide.tinkergen.com/). You may find some complementary materials: [online help](https://www.yuque.com/tinkergen-help-en/bittle) and [curriculum](https://www.yuque.com/tinkergen-help-en/bittle_course).

Note that CodeCraft hasn't provided support for our 2.0 version. But you may roll back to the supported version within CodeCraft or through [the desktop app](https://docs.petoi.com/desktop-app/firmware-uploader).

You don't need to buy add-on components to use the basic functions in Codecraft. However, several extension functions require [add-on components](https://docs.petoi.com/extensive-modules/introduction). If you are comfortable with coding with Arduino, you can have a much wider selection of third-party components.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.petoi.com/thai/technical-support/faq-frequently-asked-questions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
