Difference between revisions of "Hardware: Hive Interface Board 0.3"
(→User Guide) |
m (Paul moved page Hardware: Hive Interface Board 3 to Hardware: Hive Interface Board 0.3 without leaving a redirect) |
||
(46 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | <br clear=all> | ||
+ | |||
[[File:P1010016c.jpg|thumb|700px|Dev Kit PCB installed on a Pi 2.]] | [[File:P1010016c.jpg|thumb|700px|Dev Kit PCB installed on a Pi 2.]] | ||
− | + | '''A hive sensor interface board rev 0.3 for the Pi is now available.''' This is an essential component of the Developers Kit hardware. This solution is one step further towards the goal of a complete turnkey system. | |
− | |||
− | This is an | ||
+ | Rev 0.3 has proven to be a stable design. See [[Change: Interface PCB]] for the proposed design. | ||
+ | |||
==Features== | ==Features== | ||
Line 28: | Line 31: | ||
This board was designed on the Pi using the [http://www.geda-project.org/index.html gEDA] programs gschem and pcb. The programs, schematic and layout files are included on the latest image. | This board was designed on the Pi using the [http://www.geda-project.org/index.html gEDA] programs gschem and pcb. The programs, schematic and layout files are included on the latest image. | ||
− | == | + | ==Sensor Connectors and Wiring== |
+ | |||
+ | |||
+ | The Developers Kit uses RJ14 (6p4c) connectors for the sensors. Eventually, the load cells will be supplied with the connector attached. Cables will be provided for the other sensors. Until then, here are [[Sensor Wiring|'''detailed sensor connector and wiring instructions''']] | ||
− | + | ==Schematics and PCB Layout== | |
− | The | + | The schematics were captured and Printed Circuit Board (PCB) layout was done using [http://www.geda-project.org/| GPL Electronic Design Automation gEDA] tools. Most major distributions have packages that are easy to install. |
+ | [[Hive Interface Board Designs|Schematics, PCB layouts and Gerber files]] are available for download. | ||
+ | |||
==Assembly Instructions== | ==Assembly Instructions== | ||
− | [[Hardware: PCB Assembly]] | + | <div style="background-color: yellow; font-weight: bold; font-family:arial;color:#FF0000;font-size:14px;text-align:center;">'''WARNING: If you use the 12 volt power supply it must be adjusted before you plug the board into the Pi!'''<br>*** Failure to set the output of the 12 volt supply to 5 volts will fry the Pi, SD card, USB peripherals. ***</div> |
+ | We hope to provide this board assembled and tested as part of the Developers Kit. Until then here are the [[Hardware: PCB Assembly|'''assembly instructions''']]. | ||
==User Guide== | ==User Guide== | ||
+ | ===Connectors=== | ||
+ | === Version 0.3=== | ||
+ | |||
+ | [[File:Shot0055.03.jpg|thumb|right|640px|Figure2. Connectors.'''''Version 0.3 image for connector assignment purpose only''''']] | ||
+ | |||
+ | 43+ of these boards were released. The rain gauge was moved to a different GPIO pin. The 1-Wire bus was brought out to spare pins on the DHT22 and rain gauge connectors. The DHT22 and rain gauge connectors were moved. The order of the signals on H6, the I2S connector and was changed. | ||
− | |||
− | |||
− | + | <br clear=all> | |
+ | === Version 0.2=== | ||
− | H4 provides access to the serial | + | [[File:Shot0055.jpg|thumb|right|640px|Figure1. Connectors.'''''Note this applies to Ver 0.2 only, NOT 0.3''''']] |
+ | |||
+ | The commonly used connectors on the interface board are shown in Figure 1. '''''Note this is Ver 0.2 of the Hive Interface board. The connectors have changed in [[Hardware:_PCB_Assembly#Version_0.3|Version 0.3]]''''' Additional optional headers not installed provide access to other GPIO signals for developers. | ||
+ | |||
+ | |||
+ | H4 provides access to the serial IO TxD and RxD signals used for the console. A TTL to USB adapter can be used to log into a command line interface from a terminal program such as PuTTY, terminal or minicom. The Pi and interface can be powered through this header. | ||
The top row of RJ14 jacks are for digital sensors. The assignment of sensors is the default HiveTool software setup. These connectors may have unused GPIO signals and can be used for different purposes depending on the software. | The top row of RJ14 jacks are for digital sensors. The assignment of sensors is the default HiveTool software setup. These connectors may have unused GPIO signals and can be used for different purposes depending on the software. | ||
− | The bottom row of RJ14 jacks are for load cells. These signals are summed together and read by the high gain channel of the HX711. | + | The bottom row of RJ14 jacks are analog inputs for load cells. These signals are summed together and read by the high gain channel of the HX711. |
+ | |||
+ | <br clear=all> | ||
+ | |||
+ | [[File:Shot0054.jpg|thumb|right|640px|Serial IO (console) and 12 V power supply option 1.]] | ||
+ | |||
+ | Left side of board showing H4 serial IO (console) and power supply connections. | ||
+ | |||
+ | |||
+ | {| class="wikitable" | ||
+ | ! scope="row" colspan="2"| H4 Serial IO | ||
+ | |- | ||
+ | ! scope="col"| Pin | ||
+ | ! scope="col"| Signal | ||
+ | |- | ||
+ | | 1 | ||
+ | | +5 | ||
+ | |- | ||
+ | | 2 | ||
+ | | TxD | ||
+ | |- | ||
+ | | 3 | ||
+ | | RxD | ||
+ | |- | ||
+ | |- | ||
+ | | 4 | ||
+ | | Ground | ||
+ | |} | ||
+ | <br clear=all> | ||
+ | |||
+ | [[File:Shot0001.jpg|thumb|right|640px|H7 SPI, H2 I2C, H6 I2S]] | ||
+ | |||
+ | Right side of board showing spare SPI, I2C, and I2S connections. | ||
+ | |||
+ | |||
+ | {| class="wikitable" | ||
+ | ! scope="row" colspan="2"| H7 SPI ver 0.2 | ||
+ | |- | ||
+ | ! scope="col"| Pin | ||
+ | ! scope="col"| Signal | ||
+ | |- | ||
+ | | 1 | ||
+ | | +5 | ||
+ | |- | ||
+ | | 2 | ||
+ | | +3.3 | ||
+ | |- | ||
+ | | 3 | ||
+ | | GPIO 11 | ||
+ | |- | ||
+ | | 4 | ||
+ | | GPIO 13 | ||
+ | |- | ||
+ | | 5 | ||
+ | | Ground | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" | ||
+ | ! scope="row" colspan="2"| H7 SPI ver 0.3 | ||
+ | |- | ||
+ | ! scope="col"| Pin | ||
+ | ! scope="col"| Signal | ||
+ | |- | ||
+ | | 1 | ||
+ | | +3.3 | ||
+ | |- | ||
+ | | 2 | ||
+ | | SPI0 11 SPI0 CLK | ||
+ | |- | ||
+ | | 3 | ||
+ | | GPIO 13 SPI0 MISO | ||
+ | |- | ||
+ | | 4 | ||
+ | | GPIO 12 SPI0 MOSI | ||
+ | |- | ||
+ | | 5 | ||
+ | | Ground | ||
+ | |} | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! scope="row" colspan="2"| H2 I2C Bus | ||
+ | |- | ||
+ | ! scope="col"| Pin | ||
+ | ! scope="col"| Signal | ||
+ | |- | ||
+ | | 1 | ||
+ | | +5 | ||
+ | |- | ||
+ | | 2 | ||
+ | | +3.3 | ||
+ | |- | ||
+ | | 3 | ||
+ | | I2C | ||
+ | |- | ||
+ | | 4 | ||
+ | | I2C | ||
+ | |- | ||
+ | | 5 | ||
+ | | Ground | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" | ||
+ | ! scope="row" colspan="2"| H6 I2S Bus | ||
+ | |- | ||
+ | ! scope="col"| Pin | ||
+ | ! scope="col"| Signal | ||
+ | |- | ||
+ | | 1 | ||
+ | | +5 | ||
+ | |- | ||
+ | | 2 | ||
+ | | +3.3 | ||
+ | |- | ||
+ | | 3 | ||
+ | | I2S PCM CLK | ||
+ | |- | ||
+ | | 4 | ||
+ | | I2S PCM FS | ||
+ | |- | ||
+ | | 5 | ||
+ | | I2S PCM DIN | ||
+ | |- | ||
+ | | 6 | ||
+ | | I2S PCM DIO | ||
+ | |- | ||
+ | | 7 | ||
+ | | Ground | ||
+ | |} | ||
+ | |||
+ | ===Power Supplies=== | ||
+ | |||
+ | The interface board can be powered from the Pi (this is the safest), or the interface board can power the Pi from a 12 VDC source (battery). One power supply used on the interface board is adjustable. They come from the factory set to 10V. | ||
+ | |||
+ | |||
+ | ====Operation from 12VDC==== | ||
+ | |||
+ | The current versions of the Hive Interface Board will accept two different 12V power supplies:<br> | ||
+ | =====D-SUN variable power supply.===== | ||
+ | |||
+ | <div style="background-color: yellow; font-weight: bold; font-family:arial;color:#FF0000;font-size:16px;text-align:center;">'''This power supply must be adjusted to 5 volts output or the Pi, HX711 board and anything plugged into the Pi will be destroyed.'''</div> | ||
+ | <div style="background-color: yellow; font-weight: bold; font-family:arial;color:#FF0000;font-size:16px;text-align:center;">'''There is a small trim pot on the power supply board to adjust the supply. This must be adjusted before plugging the interface board into the Pi''' </div> | ||
+ | #Unplug the HX711 board and Pi from the hive interface board. | ||
+ | #Connect a volt meter to the output of the power supply (this is available on the power supply board, the TTL/USB connector, the 5 volt pins on the Pi header, the Vcc pin where the HX711 would plug in. | ||
+ | #Power the interface board from a 12V source. | ||
+ | #With a jewelers screwdriver adjust the trim pot so the out is set between 5.0 and 5.1 volts. | ||
− | + | =====Fullree fixed power supply module.===== | |
+ | Hivetool support for the Furlee power supply module has been discontinued | ||
− | + | ===Trouble Shooting=== |
Latest revision as of 05:30, 19 August 2018
A hive sensor interface board rev 0.3 for the Pi is now available. This is an essential component of the Developers Kit hardware. This solution is one step further towards the goal of a complete turnkey system.
Rev 0.3 has proven to be a stable design. See Change: Interface PCB for the proposed design.
Contents
Features
- Plug and Play - all the sensors plug in.
- 12 VDC power supply with battery voltage monitoring
- Supports
- HX711 24 bit ADC and 4 load cells in parallel.
- two DHT22 temperature/humidity sensors.
- TSL2591 Lux sensor
- Rain Gauge
Plug and Play. Telco RJ14 (6P4C) connectors are used for all sensors. These are gold plated, reliable, self wiping, inexpensive, readily available, crimp on with an inexpensive crimping tool, lock in place (latch) and as anyone who has tripped over a phone cord can attest, very strong.
Two different power supplies are optional. These are 12 to 5 volt step down highly efficient switching regulators.
The next step will be to split this board into two boards. One will be a general purpose IO board and contain at least a 4 channel ADC so each load cell will be individually measured instead of being summed, a real time clock, and power supply. The second board will contain the sensor connectors.
The interface board and software works with the A+. B+ and Pi2 models. The board will work with the original A or B if a 26 pin header extension is used although the lack of mounting holes in the original Pi is a problem.
This board was designed on the Pi using the gEDA programs gschem and pcb. The programs, schematic and layout files are included on the latest image.
Sensor Connectors and Wiring
The Developers Kit uses RJ14 (6p4c) connectors for the sensors. Eventually, the load cells will be supplied with the connector attached. Cables will be provided for the other sensors. Until then, here are detailed sensor connector and wiring instructions
Schematics and PCB Layout
The schematics were captured and Printed Circuit Board (PCB) layout was done using GPL Electronic Design Automation gEDA tools. Most major distributions have packages that are easy to install.
Schematics, PCB layouts and Gerber files are available for download.
Assembly Instructions
*** Failure to set the output of the 12 volt supply to 5 volts will fry the Pi, SD card, USB peripherals. ***
We hope to provide this board assembled and tested as part of the Developers Kit. Until then here are the assembly instructions.
User Guide
Connectors
Version 0.3
43+ of these boards were released. The rain gauge was moved to a different GPIO pin. The 1-Wire bus was brought out to spare pins on the DHT22 and rain gauge connectors. The DHT22 and rain gauge connectors were moved. The order of the signals on H6, the I2S connector and was changed.
Version 0.2
The commonly used connectors on the interface board are shown in Figure 1. Note this is Ver 0.2 of the Hive Interface board. The connectors have changed in Version 0.3 Additional optional headers not installed provide access to other GPIO signals for developers.
H4 provides access to the serial IO TxD and RxD signals used for the console. A TTL to USB adapter can be used to log into a command line interface from a terminal program such as PuTTY, terminal or minicom. The Pi and interface can be powered through this header.
The top row of RJ14 jacks are for digital sensors. The assignment of sensors is the default HiveTool software setup. These connectors may have unused GPIO signals and can be used for different purposes depending on the software.
The bottom row of RJ14 jacks are analog inputs for load cells. These signals are summed together and read by the high gain channel of the HX711.
Left side of board showing H4 serial IO (console) and power supply connections.
H4 Serial IO | |
---|---|
Pin | Signal |
1 | +5 |
2 | TxD |
3 | RxD |
4 | Ground |
Right side of board showing spare SPI, I2C, and I2S connections.
H7 SPI ver 0.2 | |
---|---|
Pin | Signal |
1 | +5 |
2 | +3.3 |
3 | GPIO 11 |
4 | GPIO 13 |
5 | Ground |
H7 SPI ver 0.3 | |
---|---|
Pin | Signal |
1 | +3.3 |
2 | SPI0 11 SPI0 CLK |
3 | GPIO 13 SPI0 MISO |
4 | GPIO 12 SPI0 MOSI |
5 | Ground |
H2 I2C Bus | |
---|---|
Pin | Signal |
1 | +5 |
2 | +3.3 |
3 | I2C |
4 | I2C |
5 | Ground |
H6 I2S Bus | |
---|---|
Pin | Signal |
1 | +5 |
2 | +3.3 |
3 | I2S PCM CLK |
4 | I2S PCM FS |
5 | I2S PCM DIN |
6 | I2S PCM DIO |
7 | Ground |
Power Supplies
The interface board can be powered from the Pi (this is the safest), or the interface board can power the Pi from a 12 VDC source (battery). One power supply used on the interface board is adjustable. They come from the factory set to 10V.
Operation from 12VDC
The current versions of the Hive Interface Board will accept two different 12V power supplies:
D-SUN variable power supply.
- Unplug the HX711 board and Pi from the hive interface board.
- Connect a volt meter to the output of the power supply (this is available on the power supply board, the TTL/USB connector, the 5 volt pins on the Pi header, the Vcc pin where the HX711 would plug in.
- Power the interface board from a 12V source.
- With a jewelers screwdriver adjust the trim pot so the out is set between 5.0 and 5.1 volts.
Fullree fixed power supply module.
Hivetool support for the Furlee power supply module has been discontinued