Hardware:BUGvonHippel Module
From BUGwiki
The Breakout Module
BUGvonHippel, named after Dr. Eric von Hippel of MIT, expands BUG connectivity with multiple interfaces.
Contents |
Product Specifications
- Standard Module Interfaces Exposed:
- Standard USB Host connector
- All other interfaces available in 0.100" pin field; can be equipped with breakaway headers for connector/ribbon cable interface, or wires directly soldered
- I2C, multi-point digital control bus
- SPI, digital control bus
- 4-wire Serial port (in pin field; no DB9 connector)
- I2S, digital audio bus
- 4 GPIO (General Purpose I/O) digital lines, direct from Bug Base Unit CPU
- 1 Interrupt input to Bug Base Unit CPU
- 6 IOX (I/O Expander) digital lines, four with LED sites available
- Analog-to-Digital Converter:
- Suitable for sensor inputs
- 16-bit ADC
- Accessed and controlled over I2C bus
- Max rate of 15 samples/sec
- 4 analog inputs, can be configured as four single-ended or two differential pairs
- Input range GND to 5V
- Includes integrated temperature sensor
- ADC Datasheet and Hardware:Analog to Digital Converter HOWTO
- Digital-to-Analog Converter:
- Suitable for control outputs
- 8-bit DAC
- Accessed and controlled over I2C bus
- Max rate approximately 6k samples/sec (determined on I2C clock rate)
- 2 analog outputs with programmable attenuation
- Output range GND to 5V
- DAC Datasheet
- Power Supply:
- 5V power available in pin field
- User adjustable power supply included as well, output 1.25-4.5V, available in pin field
- Adjustable power supply is software programmable via the I2C bus with a non-volatile digital pot
- Digital Potentiometer Datasheet
Hardware Documentation
- BUGvonHippel Hardware Design Spec (pdf)
- BUGvonHippel layout (pdf)
- BUGvonHippel schematic (pdf)
- BUGvonHippel BOM (pdf)
- BUGvonHippel gerber files (zip)
- BUGvonHippel Mechanical files (zip)
Software Documentation
Drivers
All BUG drivers can be found in github. The drivers are in the bug20-2.6.31-omap tree on github.
The BUGvonHippel drivers handle the basic operation of the module including:
- Powering the module on and off
- Setting the various interfaces
- Controlling digital-to-analog conversion process
OSGi Services
Method documentation for all OSGi services (from BUG and from other users) is available in the Software:Javadocs. The services listed below can be found in the com.buglabs.bug.module.vonHippel.pub package in the latest revision of the BUG javadocs. Each service is an interface with its own methods.
- IVonHippelModuleControl – Service for basic module controls & interaction with base
- gnu.io.SerialPort – rxtx-based Service for configuring serial port, reading & writing data
Web Services
When a VonHippel module is attached, the Vonhippel web service becomes available, providing the state of various pins (GPIO, IOX) on the module. Example:
<Status> <GPIO> <Pin number="0">1</Pin> <Pin number="1">1</Pin> <Pin number="2">1</Pin> <Pin number="3">1</Pin> </GPIO> <IOX> <Pin number="0">0</Pin> <Pin number="1">0</Pin> <Pin number="2">0</Pin> <Pin number="3">0</Pin> <Pin number="4">1</Pin> <Pin number="5">1</Pin> </IOX> </Status>
Interfacing with the vonHippel in C
See Interfacing with BUGvonHippel in C for more information.