2/3
UberBoard v2
2 0 0 8 . 0 6 . 1 2
UBERBOARDv2_DS_080612
that the user will only intend to do data transfer, so we’ve
broken out the audio lines as well.
9
Unused GPIO
these are the lines that were left after everything else was
done. instead of deserting them, we break them out. the
board and schematic show which are available.
10 Micro SD socket
Running the Sample Firmware
to start, plug your board into your power supply through the 3mm
barrel jack and plug in a serial cable into the Db9 connector of
your computer. open up a terminal emulator (Hyperterminal,
teraterm, etc.) to the CoM port to which you’re connected and set
it for 115200 baud, 8-bit data, no parity, 1 stop bit, no flow control.
Make sure that the run/program switch is set to run and that the
rS-232 serial input and select switches are set to the LPC2148 (to
the left).
turn the power switch on and you will see the sample firmware
menu come up:
Uber Board V2 Test Code
1 accelerometer/aDC
2 toggle accelerometer sensitivity, currently 1.5g
3 Toggle Mux Channel, currently GPS
4 initialize SD card
5 toggle uart1 baud rate, currently 115200
6 toggle eM-408 power, currently off
7 Send power pulse to the cell module
8 Talk to UART1 (press ^s to exit)
Menu Description
1
Accelerometer/ADC
Pressing “1” will start a slow sampling loop that will report X,
Y and Z axes of the Freescale MMA7260Q accelerometer. This
serves as a demonstration of both the accelerometer and how
to access the aDC lines on the LPC2148. values returned are
10-bit aDC values (between 0 and 1023). Pressing the space
bar will cause the loop to terminate and return to the menu.
2
Toggle accelerometer sensitivity
The MMA7260Q has 4 sensitivity settings: 1.5g, 2g, 4g and
6g. Pressing “2” allows the user to toggle sequentially through
these settings.
3
Toggle Mux channel
as stated earlier, there are four ports accessible to uart1 on
the LPC2148 through a multiplexer, those being the EM-408
GPS module, the BlueSMiRF port, an auxiliary open port and
the gM862 cell module. Pressing “3” will allow the user to
select the device with which to talk.
4
Initialize SD card
Pressing “4” will initialize a micro SD card should there be
one in the socket. a Fat16 library has been included in the
source code, but this small demonstration is basically the
“Hello world” equivalent for SD cards.
5
Toggle UART1 baud rate
not all of these devices, or whatever else you may connect,
necessarily talk at the same speed. For example, the EM-408
works at 4800 baud, while the blueSMirF will talk at 115200
baud. the gM862 actually auto-bauds, so you can set it to
pretty much anything. Pressing “5” will allow the user to
toggle between 4800, 9600, 14400, 19200, 38400, 57600
and 115200 baud.
6
Toggle EM-408 power
Pressing “6” will allow the user to shut down the gPS module
when not in use.
7
Send power pulse to the cell module
the gM862 cell module is turned on and off by means of a
pulse on a specific pin. Pressing “7” will automatically send
a pulse to turn the device on or off. It does exactly the same
thing as the push button mentioned earlier, only with the
processor.
8
Talk to UART1
Pressing “8” allows direct user access to whatever is selected
for uart1 at whatever selected baud rate. this link remains
open until the user presses “^s” (“<control>s”), which then
returns the user to the menu.
Examples
Let’s say you want to talk to your eM-408 gPS module (assuming
you have one of those plugged in to your board). the first thing
to do is to set the uart1 baud rate to 4800 by pressing “5” until
the baud rate displayed is 4800. then press “3” until the current
mux channel shown is GPS, then “6” to turn the module on. Lastly,
press “8” to open the channel to uart1. You should see nMea data
streaming on your screen after that. To exit back to the main menu,
press “^s” (<control>s).