BScale
Arduino code for a remote beehive scale.
Install / Use
/learn @HannesOberreiter/BScaleREADME
bScale for app.btree.at
Small Arduino project for a DIY beehive scale, with SIM900 for connection to webservice. This project is made to work with the webapplication btree.at, an online database for beekeeper but you can use any webservice you want.
New improved build from Piotr from Poland
Update: 2021-01-29, Piotr did again an update. His setup and code now includes a thermal compensation for drift of weight scale due to shift of temperature, see open issue for more details issues/7#issue-796765492 and new ino file: piotr_SHTC3.ino.
Please see following markdown with description of a improved build version for the beescale: Piotr BeeScale.
Big chances are the separation of the battery unit from the UNO and SIM module and a higher voltage battery storage and solar charging in mind.
Thanks to @PiotrBeeScale
Hardware
- UNO R3 MEGA (AliExpress ca. € 2.70)
- SIMCON SIM900 Shield (Important with power up pin!) (Ebay China € 21.99)
- atTiny85 + Base (Ebay ca. € 6,00 )
- N-Mosfet (Ebay ca. < € 1,00)
- HX711 Sensor (Ebay China < € 1,00)
- < 200kg platform load cell (AliExpress ca. € 17,00)
- LPDP 5V (Ebay ca. € 1,00)
and battery case, batteries, resistors, jumper wire, scale plattform, Total cost was under € 100,00.
Dirty Build:

How does / should it work?
UNO will collect data from sensors and send them to the shield. Uno forwards the data to SIM900, which connects to the webservice. atTiny85 is a simple counter, it will send each 120 minutes a pulse to the N-Mosfet gate. The Mosfet will open circuit to activate Uno.
The UNO will tell the atTiny85 when the sending was completed. If the sending is not completed within 60 seconds, the atTiny will shutdown the UNO even it is not completed (No connection to internet etc.).
Sensor Reading
For the Sensor reading you need to install the DHT Library and because a bug in Version 1.3 in this library you also need to install the Adafruid Unified Sensor Library.
The webservice
You can send the data to the beekeeping application (not free) btree.at. There the data will be shown in tables and statistics. But you can change the webservice to any you want.
Videos
German:
- b.tree Open Source Bienenstockwaage kalibrieren
- b.tree Open Source Bienenstockwaage atTiny85 programmieren
Images (more in img folder!)
SIM900 Power On Pin
On some SIM900 Modules the power up pin is not connected and you need to smolder the right position. Please see your specific Module description.

If you use a single weight cell like me, the whole build is a little bit "shaky". To prevent to much bending on the iron bars I added this screws on all four sides with just milimeters of space.

Special thanks to
Andi_H from bienenforum.com for the idea and lots of code pieces
bodge awesome HX711.h library https://github.com/bogde/HX711
Nathan Seidle SparkFun Electronics for calibrate code https://github.com/sparkfun/HX711-Load-Cell-Amplifier
My father for help with the electronics.
Tests
- 2016-08-30 First field test the battery would handle 10 days. With each 30 minutes open the mosfet for 1 minute. Changed the code to only open the gate each 2 hours and the UNO will tell the atTiny when it is finsihed. Lets see how much of an improvment this will give us. Upload works fine, data also seems ok, Hannes.
- 2016-10-18 Second field test, with the new code (each 2 hours) did the battery last for 50 days. The battery still has power but not enough to open the GSM connection. I will try now instead of alkaline batteries lithium batteries. They should work better with the spike of energy needed for the GSM connection
License
GNU GPLv3
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
