Infrared Board for the Mercury System
SKU 7305-SB320EAN 8219671102889Item type: Assembled, Shields & add-onsIoT (Internet of Things)
Description
| 2-channel infrared board that interfaces with two GP2Y0D810Z0F infrared proximity sensors. The board connects to the Base Board (BB) of the Mercury system over the I2C bus. The board address can be set dynamically with the 4-way dip switch, which gives up to 15 different addresses (address 0x00 is reserved for the I2C bus). The infrared sensors can detect objects between 2 and 10 cm away. Each channel gives a digital proximity reading: 1 means an object has been detected within the sensor’s proximity range, 0 that no object was detected. At the heart of the system is an 8-bit RISC PIC16F1829 microcontroller made by Microchip Technology Inc. | |||||||||||||
| Hardware features | |||||||||||||
![]() |
|||||||||||||
|
|||||||||||||
| Microcontroller features | |||||||||||||
|
|||||||||||||
| Hardware diagram | |||||||||||||
![]() |
|||||||||||||
| Mercury System | |||||||||||||
| Mercury System (MS for short) is a modular system for developing connectivity and IoT applications. The system uses several types of board (logic unit, modem, slave board with sensors and actuators, power boards and so on) together with a complete software structure that makes complex applications possible. Scalability, ease of use and modularity are the key factors, and they come from the use of a varied set of parts that let you assemble the system like a model built out of LEGO© bricks.
The set of boards making up the Mercury System is arranged in the following “families”: • Base Board (BB): This is the “brain” of the whole Mercury System and holds the main logic unit, several communication buses and the connectors that interface the slaves. It also includes a simple power supply and a charger for a single LiPo cell (enough to meet the power requirements of simpler systems). It comes in several variants, depending on the microcontroller unit used. • Modem Board (MB): this is the board that provides network connectivity. It comes in several variants, depending on the network interface (GSM / GPRS, Wi-Fi, BT, radio and so on). It interfaces to the base board over a dedicated serial line. • Power Board (PB): this is the board that meets the system’s particular energy requirements whenever they arise. They vary according to the specific energy need to be met (high power, solar harvesting, piezoelectric harvesting, and so on). • Slave Board (SB): these are the system’s peripherals and they vary according to the particular sensor or actuator fitted. Typical examples are SBs with relays, temperature sensors, RGB LED controllers, servo controllers, accelerometers and so on. They talk to the BB over I2C or UART with a dedicated command set. • Expansion Board (EB): these are the boards that allow Mercury boards to be connected side by side on one plane. There are variants that can hold displays, a battery holder and so on. • Brain-Less Board (BL): these are the boards without a controller. They generally hold really simple sensors or actuators that do not need the bus interface. They are an alternative to slave boards for applications where cost has to be kept down. The Slave Boards and the Modem Boards come pre-programmed with firmware that implements a dedicated command set for high-level control, while the Base Boards carry a software framework providing all the low-level services (operating system, device drivers, system services and so on), leaving the user only the application-level logic to develop. |
|||||||||||||
![]() |
|||||||||||||
| Mercury System Framework | |||||||||||||
| The Mercury System Framework (MSF) is a layered software framework designed specifically to support application development with the Mercury System. It gives the user a complete set of basic functions for interfacing the Slave Boards (SB) and the Modem Boards (MB) easily, as well as a number of software and infrastructure system services. | |||||||||||||
![]() |
|||||||||||||
| The framework is made up of the following components:
HAL (Hardware Abstraction Layer): the purpose of this layer is to hide the hardware dependencies from the layers above.
OSL (Operative System Layer): this layer consists of a lightweight RTOS providing the system’s basic services, such as the scheduling tables for the various tasks, events, software timers, alarms and so on. |
|||||||||||||
![]() |
|||||||||||||
| The Slave Boards of the Mercury System | |||||||||||||
| The layout of the Mercury Slave boards is standardised, so as to simplify interfacing with the Base Board and to guarantee a high level of modularity and scalability. Every slave board has an I2C (Inter Integrated Circuit) communication line and a four-position dip switch for setting the slave board’s bus address dynamically. Addresses 0x01 to 0x0F are available for the Slaves, while address 0x00 is reserved for broadcast communications. This way up to 15 devices can be connected to the Base Board using the dynamic addressing scheme. That number can be increased still further by reprogramming the Slave with an address supplied by software. In addition, two open-collector digital lines connected to the base board’s external interrupts are provided for slave boards that need to raise asynchronous interrupts. Slave boards requiring higher bandwidth and peer-to-peer communication can also be interfaced using an additional UART channel.
There are several sub-families of Slave Board:
The table below gives a few examples for each sub-family:
|
|||||||||||||
| Documentation and useful links | |||||||||||||
Technical details
| Board type | Slave Board (SB) |
|---|---|
| Addressing | 4 Dip Switch |
| Peripheral description | infrared sensor inputs (GP2Y0D810Z0F) |
| IR Sensor Connectors | connectors for GP2Y0D810ZOF infrared sensors |
| MCU | PIC16F1829 main controller board |
| Programmer Connector | PicKit 3 Microchip programmer/debugger connector |
| Memory type | Flash |
| Memory | 14 KB |
| CPU Speed (MIPS) | 8 |
| RAM Bytes | 1,024 |
| Data EEPROM (bytes) | 256 |
| Digital Communication Peripherals | 1-UART, 1-A/E/USART, 1-SPI, 1-I2C1-MSSP(SPI/I2C) |
| Capture/Compare/PWM Peripherals | 2 CCP, 2 ECCP |
| Timers | 4 x 8-bit, 1 x 16-bit |



























