> For the complete documentation index, see [llms.txt](https://nybble.petoi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nybble.petoi.com/russian/chapter7.md).

# 7 🕹 Play with Nybble

"You can't direct the wind, but you can adjust your sails." ⛵️

## 7.1. Control with Arduino IDE

Try the following serial commands in the serial monitor:

* “**k**sit”
* “**m**0 30”
* “**m**0 -30”
* “**k**balance”
* “**k**tr”
* “**k**trL”
* “**d**”

{% hint style="warning" %}
The quotation mark just indicates that they are character strings. Don’t type quotation mark in the serial monitor.
{% endhint %}

## 7.2. Control with Infrared remote

### 7.2.1. Key map

Only the position of the buttons matters, though those symbols can help you remember the functionalities. I’m going to define position related symbols to refer to those keys.&#x20;

I’m using abbreviations for key definitions to reduce SRAM usage. Due to the limited keys of a physical remote, I always change the definitions for fun.&#x20;

{% hint style="warning" %}
The following map is just an illustration. Check function **String translateIR(){...}**  in **Nybble.ino** for the actual key definitions in effect. They are also open to your customization.
{% endhint %}

![](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-Lzv3BWkB2SUaHOyWf07%2F-Lzv9nTMgv-xBbL32qm4%2Fremote.png?alt=media\&token=fba07c12-26be-4a51-95e0-0f2e9de450d2)

### 7.2.2. Check out the following featured motions

* Button **1** shuts down the servos and send Nybble to sleep. It's always safe to click it if Nybble is doing something **AWKWARD**. I’m serious. There’s still some ghosts in the system I don’t fully understand.&#x20;
* Button **2** is the neutral standing posture. You can push Nybble from side, or make it stand up will hind legs and tail. You can test its balancing ability on a fluctuating board. Actually balancing is activated in most postures and gaits.
* Lift Nybble at the middle of its spine so that all its legs can move freely in the air. Click all the buttons on the IR remote to see what they do. Then put Nybble on a wide flat table and try those buttons again. Different surfaces have different friction and will affect walking performance. Carpet will be too bushy for Nybble’s short legs. It can only crawl (command **kcr**) over this kind of tough terrain.&#x20;
* You can pull the battery pack down and slide along the longer direction of the belly. That will tune the center of mass, which is very important for walking performance. Otherwise it may keep falling down.
* When Nybble is walking, you can let it climb up/down a small slope (<10 degrees)
* Whatever Nybble is doing, you can lift it vertically, and it will stop moving, just like a cat scruffed on the neck.

{% hint style="info" %}

* If Nybble keeps beeping after you run **Nybble.ino**, with numbers (something around 500) printed in the serial monitor, it’s the low voltage alarm being triggered. You need to power NyBoard with two 3.7V Li-ion/Li-poly batteries to pass the threshold.
* “FIFO overflow! Using last reading!” in the serial monitor is an algorithmic fix to the original MPU6050 library. It’s not a bug.&#x20;
* The servos are designed to be driven by internal gears. Avoid rotating the servos too fast from outside.&#x20;
* **Don’t keep Nybble walking for too long.** That will overheat the electronics and reduce the servos’ life span. It’s possible to [reconfigure NyBoard V0\_1](https://www.petoi.com/forum/hardware/reconfigure-nyboard-v0-1-for-pro-users) to make Nybble run longer.&#x20;
* Sometimes the program may halt due to voltage fluctuation. Check if the battery is running low (< 3.5V each or <7.0V in series). Press the reset button on NyBoard to restart the program.
* Nybble has acrophobia! If you lift it and rotate it over a certain degree, its current movement will be interrupted. Don't flip Nybble over to scare it!&#x20;
* Be kind as if you were playing with a real kitten. (^=◕ᴥ◕=^)
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://nybble.petoi.com/russian/chapter7.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
