Build your own robot, wire it up with sensors, and let it roam on its own. Robotics with the Boe-Bot includes step-by-step assembly instructions, circuit-building, and programming for the BASIC Stamp-based Boe-Bot Robot.
With a way for the page to ask the BASIC Stamp questions, it can ask for sensor states. In this example, the page asks the BASIC Stamp about pushbutton states every 3 seconds and updates the states of radio buttons and text displaying the button states.
So far in this series, we’ve been using C language programs to make the ActivityBot go. This time, we will use a C program that opens a text file from the SD card. The text file contains a program in another super-simple language we are inventing right now. Let’s call it "AB."
The AB programming language has only five commands:
Each command has a single argument: the number of encoder ticks that set the distance the ActivityBot should travel.
Here is another example of a sensor affecting an an HTML element's attrubute on a web page. This time, the shade over a light sensor controls the shade of a drawing canvas.
Reminder: If you followed the instructions in the Join Another Wi-Fi Network section, you’ll have to replace 192.168.4.1 with your IP address.