Open Hive Box Assembling

First thing: We have to do some documentation: The first Open Hive electronic boxes does not have a serial number only, but also a personalized user name!

Electronic Connections

The real first assembly step is to reduce the diameter of the load cell’s shielding cable so that it fits in the screw terminal. Take a box cutter or wire cutter and divide the shielding cable and cut the second part down.

Put the cable through the cable glances.

Screw tightly the cables of the load cell and the sensors.

for the load cell

S+     S-     E+     E-`    sh
green  white  red    black  violet

for the sensors

+/Vcc   -/GND   Sense
red     black   yellow

So we have all electrical connections we need and can start programming. Connect the board with an FTDI cable to the computer.

Software Uploading …

Used Libraries

First step is to set the RTC time.
rtc_set-read-time.ino (1.1 KB)

The time on the board is set to the compiling time of the sketch. Every reset of the board will set the time back. So you should upload the set time sketch and following the next step immediatly.

… and Scale Adjusting

Upload the adjust scale sketch and start the serial monitor.
scale_adjust_ads1231_v0_2.ino (8.5 KB)

You will find there some step by step advices.

On the serial monitor you can see raw values of the load cell. For the adjustment you need some heavy goods. And you have to konw the weight!

The scale frame with the calibration weight, in this case we have 10600 g.round about.

At the end of the adjustment you get two numbers for

LoadCellZeroOffset
LoadCellKgDivider

Download the main firmware sketch and copy&paste these values from the serial monitor into the source code:

Save the modified sketch with the added load cell parameters and …

… upload the sketch to the board. Software done!

Some documentation again. ;-)

pinout_sodaq-gprsbee
(source: Howto – GPRSbee)

Two Flying Wires for the GPRSBee

This and the next two pictures show the connection between the GPRSbee and the board.

GPRSBee’s CTS pin is connected to Arduino’s pin 13, the black wire in the picture.

The DTR pin of the GPRSBee module is connected to Arduino’s pin 12, red wire

Insert the SIM card

Lift up the GPRSBee module and turn it upside down.

Pay attention to the sloped corner of the SIM card and …

… insert the card gently in the slot.

Insert the GPRS module back in the bee socket, pay attention that all pins are in the fitting socket. In the picture the bee is–for demonstartion purpose–not fully inserted. You can see the golden pins. In case the module is pushed fully in the socked you will not see them.

Insert the LiPo cable also. In the picture it is not fully put in (but for me better removable after testing :-). Best it should look like the second plug, cable from GPRSbee module to the board.

Real World Test

Great! SIM module (green LED) is blinking, good news!

After blinking has stopped it should take some seconds and the sensor data reaching via GPRS / air – internet – server – internet back – WiFi or LTE (ok perhaps also GSM ;-) your mobile phone! Wow! What great technology!

Putting all Parts in the Box

So things are working and we can put all parts in the case.

Put the LiPo in the case. Add a layer foam between LiPo and Seeeduino Stalker board so that the THT parts will not damage the battery.

Postion the board in the case and push the cables a bit in case they do not move gentle some time. Especially the fat load cell cable with the heat shrink tube needs sometimes a bit support.

Put the antenna next the Seeeduion Stalker board.

Connect the solar cell with the main board.

To reduce humidity put a silica gel bag in the box.

Tighten the cable glances. This will prevent the inner box from dust and water and reduce mechanical strain.

Tighten the four screws. Firest insert all screwas and thight it weak. After all screwas got the screw thread tight them best in diagonal order.

3 Likes

Gratulation, die Serie kann beginnen.

1 Like