You are viewing an older revision! See the latest version
RS Animatronic Lab Board
Introduction¶

RS has released the RS Animatronic Lab Board to help with mbed learning and development. The board is equipped with Ethernet, USB, a motor driver, two potentiometers, two tactile push buttons, a barrel jack power input and headers for the RS Audio Codec board (sold seperately) along with the headers for the mbed.
Components¶
USB¶
The Lab Board is equipped with a USB socket for USB host applications; making it easy to just plug in a USB flash drive or bluetooth dongle and use the mbed (user created) libraries:
Import programMSCUsbHost
Implementation of USB Host for mbed 1768 which can access USB flash drives. See notebook page for details.
Import programBlueUSB
Bluetooth support for MBED with $2 Bluetooth dongles. Includes a USB host and built in support for bluetooth HID devices such as mice, keyboards and wii controllers.
Ethernet¶
The lab board also has a Ethernet jack with magnetics integrated. This allows the mbed to be connected to LAN and the internet easily: you only have to load up a simple sketch to get started:
Import programTCPSocket_HelloWorld
TCP Socket Hello World with Ethernet
Potentiometers and switches¶
The potentiometers wipe between 0 and 3.3V. The switches require the pull down enabled in software:
#include "mbed.h"
DigitalIn button(p16);
int main() {
button.mode(PullDown);
bool isButtonPressed = button;
}
For anything else, the handbook is what you want: The Handbook.
Motor Driver¶
The board has on it an L293 dual H-bridge driver chip. This allows the running of 2 DC motors, a Stepper motor or 4 solenoids from its outputs. The chip has 3 pins per half bridge pair: A level, B level and AB enable. Setting A level high will make the A half bridge drive high, so long AB enable is also high, and so on. Full details can be found here: TI L293 Datasheet
Here's an example (SW1 turns the motor on and off and R4 sets direction/speed, hook up an external power source to V+ and GND):
Import programRSALB_hbridge_helloworld
A test program for the RS animatronic lab board motor drivers.
<program /users/p07gbar/code/HBridge/docs/16208393c7ae/classHBridge.html>>
Audio Codec¶
The TLV audio codec daughter board provides high quality audio input and output to the mbed. For more information see here: /cookbook/RS-Audio-Codec
