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!
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 …
Version/Date: v1.60, 2016-04-01
load cell / HX711
documentation: GitHub - bogde/HX711: An Arduino library to interface the Avia Semiconductor HX711 24-Bit Analog-to-Digital Converter (ADC) for Weight Scales.
Version/Date: v0.1, 2017-01-11
load cell / ADS1231
running median / statistics
documentation: Arduino/libraries/RunningMedian at master · RobTillaart/Arduino · GitHub
Version/Date: v0.1.14, 2018-01-09
documentation: GitHub - jcastaneyra/ds3231_library: Seeeduino DS3231 library updated to run with Arduino 1.0 IDE
DS18B20 / OneWire
!! deactivate for DS18B20 in in the latest version !!
documentation: GitHub - PaulStoffregen/OneWire: Library for Dallas/Maxim 1-Wire Chips
Version/Date: v2.3.2, 2017-09-05
documentation: GitHub - milesburton/Arduino-Temperature-Control-Library: Arduino plug and go library for the Maxim (previously Dallas) DS18B20 (and similar) temperature ICs
Version/Date: v3.7.8, 2018-01-09
documentation: Arduino/libraries/DHTstable at master · RobTillaart/Arduino · GitHub
Version/Date: v0.2.2, 2018-01-09
documentation: GitHub - SodaqMoja/GPRSbee: Arduino library for GPRSbee
Version/Date: v1.9.2, 2016-07-05
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
Download the main firmware sketch and copy&paste these values from the serial monitor into the source code:
- Current development head: node-gprs-http.ino
- Snapshot version 0.21: node-gsm-wifi_stalker31_v0_21.ino (35.0 KB)
Save the modified sketch with the added load cell parameters and …
… upload the sketch to the board. Software done!
Some documentation again. ;-)
(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.