The Bittle firmware has built-in "skills" for walking, crawling, trotting, ... and turning
Use the "Execute the skill" block
Build the example here -->
Use the Petoi Bluetooth Adapter so your Bittle can move without have an attached USB cable.
Place your Bittle carefully on the floor in a clear space for motion experiments.
A fall off of a table could be fatal for Bittle!
Bittle's "feet" may slip on some surfaces (smooth tabletops, tile) and get stuck on others (carpet) Experiment with different motion skills to see what works best. Crawling is slow, but reliable.
Try some rubber "socks" on Bittle's feet to prevent slipping.
Write a program that moves Bittle in a square. Start from one corner, walk around the square, and stop in the corner where it started.
How does Bittle know when to turn? We only have delay times, so you'll need to experiment.
Many robots have electronic gyroscopes to control turns. It's possible to add a gyroscope to Bittle and connect via the Grove I2C connector.
Walk in other regular polygon shapes (pentagon, hexagon, ...)