PreLab 1 · Before Unit 1
The Toolchain
PreLab · C track — completion checklist
Student PIN:
PreLab 1 Get the Robot Listening to You
Completion only again. The point is that by the end of this page your robot has run a program that you typed, and you have written down the numbers you will need every session after this.
The Wombat broadcasts a WiFi network to which your computer can connect. First, note the SSID and Password. From your devices WiFi settings, look for a network that matches the SSID, then use the password. If you aren’t sure if something is the letter “O” or the number “0”, it is the number “0.”
Once your computer is connected, open a browser and type the the address you see on the WiFi line in on the Wombat about page, followed by “:8888.” For example:
This warning is normal
You will probably see something like “no internet connection” or “connected with limited access.” Nothing is wrong. The Wombat is not the internet — it is just a robot. Keep going.
Warning for Windows Users
Windows may try to get you to connect using a PIN. Click Connect using a security key instead, then enter the password as normal.
Write these in your notebook as well. You will type them at the start of every session.
The IDE turns your C into numbers the Wombat can follow. That step is called compiling, and it is why a single missing semicolon stops everything.
Make a new project called hello_c and type this in. Do not paste it — type it.
#include <kipr/wombat.h>
int main()
{
printf("ready\n");
return 0;
}Anatomy of This Program
For now, treat the first and last lines as boilerplate — standard pieces you copy into every program:
#include <kipr/wombat.h>makes the Wombat’s robot commands available.int main()and its curly braces mark the part of the program that runs.return 0;tells the controller the program finished normally.
The line to understand today is printf("ready\n");. printf prints a message in the IDE’s output area. The text between the quotation marks is what appears, and \n means start a new line after it.
You can also leave a placeholder inside the message and supply its value after the quotation marks:
printf("Trial: %d\n", 1);Here %d is a placeholder for a whole number, so the output is Trial: 1. When a message has more than one placeholder, the values after the quotation marks fill them from left to right.
Shutdown Guide
Do not just flip the switch. Do it in this order:
- On the Home Screen, press Shutdown.
- Press Yes to confirm.
- Wait for it to finish, then flip the power switch off.
- Unplug the battery — hold the yellow connectors, never the wires.
Sign off
You are ready
Lab 1.1 — Computers Follow Instructions assumes everything on this page. Start there.
When you are finished, press the button to turn in your work and save a copy.
KIPR · Botball Explorer — CS1 + AI Literacy · © KISS Institute for Practical Robotics 1997–2027