Это видео недоступно.
Сожалеем об этом.
#194
HTML-код
- Опубликовано: 6 апр 2018
- Today we will hack an IKEA SALTVIKEN bathroom scale and create a connected weight sensor for up to 150 kg. We will use Googles free No- SQL Firebase cloud service as a data storage. To do that, we have to tear this nice scale apart and have a look inside.
We will:
- Re-use the load cells of the IKEA scale to measure heavy loads up to 150 kg or another scale, maybe even old an defective one
- Replace the original PCB with an HX711 and an ESP32 (should also work on ESP8266)
- Learn from IKEA how to wire the four special load cells that they add the weight
- Transfer data to the new No-SQL database “Firebase” provided by Google
- Calibrate the scale
Links:
Sketch and connections: github.com/Sen...
Firebase Library: github.com/iox...
How to wire 3 wire Load Cells: bit.ly/2HjtPXM
Conventional Load cell: bit.ly/2GFqt04
HX711: bit.ly/2EtefWc s.click.aliexpr...
Load cell 50kg: s.click.aliexpr...
Load cells 5kg: bit.ly/2IAMfm3
For longtime use, these cells seem to be not ideal. There is a better choice, however more expensive: bit.ly/2Jvpb9x
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com...
My Patreon Page: / andreasspiess
If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
For Banggood bit.ly/2jAQEf4
For AliExpress: bit.ly/2B0yTLL
For ebay.com: ebay.to/2DuYXBp
www.facebook.c...
/ spiessa
www.instructab...
Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job
Equipment in my lab: www.sensorsiot....
IKEA bathroom products are named after lakes and rivers from all over scandinavia, not just Sweden. Saltviken is on the south coast of Finland which has many swedish speakers and Swedish placenames - which is why it sounds swedish.
Thanks for your explanation. I just wondered why this small bay is not in Sweden...
Also, Finland has 2 official languages Finish and Swedish. So it might as well be a Swedish name.
However, Finland is not part of Scandinavia. It is a Nordic country, though, and part of Fennoscandia.
That is vaguely controversial right? some people count it as Scandinavia. I think.
@Oliver Rapp: It's not very controversial here in Europe. However, a tiny part of the Scandinavian Mountains lie inside Finnish borders, and Finland also used to belong to the Kingdom of Sweden for hundreds of years, so the country is definitely linked to Scandinavia in that sense. Sometimes you hear people refer to Northern Ireland being part of Great Britain, but strictly speaking GB is just the large island.
This is really cool! I loved the EEVblog reference too
Thank you!
@@AndreasSpiess I'm sad you didnt say that the wires were flapping in the breeze but I'll eventually get over it. I think...
Andreas, you've touched on one of my projects for the Spring. As a beekeeper, it's great information to know not only the weight of the honey, but of the whole hive. I've got all of the parts to do this, just need to get off of my duff and get it done.
Maybe you look at the links in other comments. It seems that these load cells are not optimal for beekeepers because they "creep" over time
Very cool. I wondered how to combine load cells. Didn't realize it would be so easy and only need one amp. Thanks so much, now I can finish my project.
:-)
Thank you for the video. I was supposed to present a IOT project to my management team with MQTT. Thanks to you firbase look like a good alternative.. Cheers!!
These are two different things, I think, One is more about transmission, and one about app development.
You have a job where you do that? I want one of those! ;-) MQTT also useful for sharing data with more than one program. I feed the weather info to several weather topics (with a timestamp and the retain set true). This allows things like web pages pull data from one source so they're all in sync. I love using MQTT for HA
How am I only discovering this channel now? It's like Werner Herzog became an engineer!
Welcome to the channel!
As an electronics geek with my first beehive I say thanks. Awsome hack. Always wondered why there weren't more sensors on hives. Temp and humidity in winter are vital stats.
Please look also at the other comments. It seems that these sensors „creep“ over time.
Thank you Andreas, you always teach me something new.
You are welcome!
I have a kegerator that I'd like to add a scale to as to know approximately how much beer is inside the keg at any given time. You've just given me a great idea for how to do so!
Enjoy. And have a beer if ir works!
A very well-rounded and thorough video, Andreas. Thanks again.
:-)
Very nice video. I have been looking into attaching loadcells to the bed to trigger automations based on when when we get up in the morning and to make sure the lights don’t turn on if anyone is in the bed. Also for monitoring if my son gets out of bed at night. So the video is very much appreciated. Thank you.
A PIR or radar sensor is also well suited to detect movement.
I love you andreas. From one nerd to another, you the best
Nice work Andreas, I find it hard thinking of things to put on my channel. May be I should do basic electronics to Advance electronic for the kids out there who would like to learn.
Being a RUclipsr needs a lot of phantasy ;-)
Andreas Spiess A lot of guess work too. Have a great week Andreas.
Thanks for all your help with this resourses (code, video, etc).
That is the standard on this channel ;-)
Surprising and interesting video ! I'm diging into the Firebase immediately !
I hope you like it...
The 'see-through' display must generate some interesting ideas too.
Good Idea. Maybe it appears in a later video ;-)
Does this technology have any resemblance to the auto-darkening lenses in welding helmets?
Haha, two of my favorite RUclipsrs commenting to each other! ;-)
I remember using a 'broken' calculator (one part of the display removed) and wearing polarised sun glasses in an exam - the display looked blank to the examiner .... :-)
Yes, actually auto-darkening lenses in welding helmets use LCDs.
Very cool Andreas. My friend is has just built a beehive. So I will add to my list of projects. Thank you
When I got time I would also like to become a beekeeper. Maybe after RUclips...
Wonderful application and cleverness, and also your accent is nice :)
Thank you!
Just last week I repaired a bathroom scale with these sensors, specifically for use as a beehive scale. I may add the wireless module, or I may just take readings the old fashioned way, by looking at the numbers and writing them down.
Usually, bathroom scales have a timeout and tare if switched on again. How would you solve this issue in the beehive?
Great hack Andreas. Your pronunciation of tear is correct for watering of the eye, but for 'tearing something apart' it is pronounced 'tare' (which is also appropriately the word used in zeroing scales!)
Hope you don't mind me letting you know. Love the channel.
Thank you for your help in Eglish. Now I go the pronunciation of "Gauge" right and now comes the next ;-)
Nice work. Very useful knowing there is a firebase package.
How large is the creep issue. Anyone have a % measuref over several weeks/months?
Thank you Adreas for the tutorials (inclunding Nr. 161) where do you add the button to the ESp for calibration? (6:40)
How do you zero the scale at set up and what are the signal wires that you inversed to get positive values ?
Thank you again
The zeroing is done in the code in line 52 in sketch ESP32_IKEA_Firebase.ino (scale.tare(); )
@@AndreasSpiess Thanks for answering. I just joined your Patreon. Keep up the Good work
@@SimoBenziane Thank you for your support!
You are my digital Yoda, Andreas... Great regards... 🖖
Thank you!
I love Firebase. Its such a great service!
:-)
What you have there are half bridges. And Google will as usual lead to a good presentation for those looking for more details:electronics.stackexchange.com/questions/102164/3-wire-load-cells-and-wheatstone-bridges-from-a-bathroom-scale
Thanks for the "missing" link. I will post it in the description.
IKEAs product names not only come from Sweden but can also have their origin in other Scandinavian countries, or it can be generic names. Calibrating a scale called SALTVIKEN (=salty bay) with a bag of salt is of course funny ;)
Great project - I myself have for quite a while thought about hacking a bathroom scale which uses IR transmission between the scale and the read-out unit, but I never have the time to really get started...
You are right about the salt bay. Saw the translation of Google, but did not make the link :-)
Hi Andreas,
the calibration process could save the correction parameter in SPIFFS and be loaded from the code automatically, so no more need to compile on the field.
Good idea. My code is just to prove the concept. You are free to enhance it.
This is amazing!! You are awesome as always..
Thanks!
Hello, I have a question. Do you think these load sensors can be used with constant load without permanent deformation ?
No. They cannot. You need much more expensive parts. See the comments of my other video about the topic
Great Hack (as always). Many thanks!
:-)
Love this type of hacks!
:-)
Awesome video Andreas. I have a old Fitbit ARIA scale with a firmware issue and I would like to hack it to use my own IOT. This video will help so much thank you.
northshorepx
I have the same issues.
I almost want to hack my own scale just so the manufacturer quits Fcking with the firmware updates!
So good luck. Hope it will work. My SW is just rudimentary and needs some love to get comfortable...
Andreas Spiess thank you.
Hello Andreas and Many thanks for all these videos: i am a new user of microcontrolers and i am also a beekeeper. I started to build my project without knowing you did a perfect manual. Anyway I will continue on my ideas using your videos ;)
on the video 194, at 3min 30 seconds, you show a diagram with red, black and green wires and you say that at the end there are 4 white left : i guess these are the green ones showed. as for the reds and blacks, am i right to say that they are connected together but not to a power supply ? thanks and thanks again for your videos :)
This is an old video and I do not remember the details. But from watching it I would guess that the green ones are in reality white (as I say). And the S+ and S- wires have to be connected to the plus and minus pins of the HX711 (You choose channel A or B).
IKEA has a naming scheme. en.wikipedia.org/wiki/IKEA#Product_names
"IKEA products are identified by one-word (rarely two-word) names. Most of the names are Scandinavian in origin. Although there are some exceptions, most product names are based on a special naming system developed by IKEA. Company founder Kamprad was dyslexic and found that naming the furniture with proper names and words, rather than a product code, made the names easier to remember."
Very interesting. Thank you. So „salty bay“ definitively belongs to the bathroom, not to my lab ;-)
nice job as always
Thank you!
Great video. Have you considered using the particle photon which handles analogue sensors, WiFi and firebase natively. The new generation of particle devices also use mesh networking.
The problem with the American products is that their (already high) price is doubled because of freight cost to Europe. I hope they will discover once a cheaper (and also slower) possibility. Osh park, for example, has no problems with postage for their PCBs..
Andreas Spiess this is true. I can buy them in the UK now and their new basic product is much cheaper at $8. Keep making the films and thank you.
Love the channel Andreas! Quick request here, and maybe it's too basic, but what's the harm in asking? Any chance you could do video on reading and writing custom BLE characteristic values to useful program information? For example, what if an ESP32 were programmed with a basic LED blink sketch, but the delay time in millis was determined by a value written to a custom BLE characteristic? Just a thought . . .
I think this should be possible with my BLE videos where I can transfered some data.
Let me know the company name that make transparent led which is nearby your city as you mention in the video.
Roche invented the LCD screens many years ago
Nice little project. Wonder if it's worth adding a little solar charger to avoid having to change the batteries.
The powering is another topic. In many cases batteries are not the right thing, I agree.
Thanks, awesome video. By any chance could you go into detail on how you power it? I’m guessing it’s not just battery
Powering depends on the usage. For the moment I have no particular usage. As I mentioned, battery would only be possible if you have a timed measurment once or twice a day an let the cpu sleep the rest of the day.
Lovely and open hearted.
Thanks!
Sehr gut, danke! Wir sind seit letztem Jahr am imkern und beschäftige mich auch mit einer Waage. Hab allerdings ein bisschen Schiss dass die Außentemperaturen das Wägeergebnis verfälschen bzw dass die Zellen über kurze Zeit anfangen zu kriechen.
Das weiss ich nicht. Aber es gibt viele solche Waagen und die verwenden ebenfalls Sensoren. Vermutlich hilft hier nur ausprobieren. Der Einsatz ist ja nicht sehr hoch ;-)
Da hast du natürlich recht :)
Die Bosche Zelle H30A die ich benutze ist ausreichend Temperaturkompensiert. Guck dir mal die Statistiken der Waage 1 an. Läuft seit 3 Jahren unter dem Volk. www.imker-nettetal.de/bienen-nsa/graph.php
hello, can I implement with esp8266?
which parts of the code should be changed?
then what about the selection of the board manager? please help, thank you ..
I do not know if you can connect to google with an ESP8266.
@@AndreasSpiessI mean using the NodeMCU ESP8266
Hello Mr. Spiess, I am a recent subscriber to your channel, i really like your videos. I am also a bee keeper and I'm looking to build a low power data logger for my beehives. I learned that the strain gauges tend to creep if the load is maintained a long time (usually a beekeeper do not manipulate the beehive boxes a lot because they are heavy and also it will bother the bees). I have two questions: 1. The strain gauges used in the video can be left under load for long time? (ex. 6mo to 1yr); 2. How about using a potentiometer to measure the vertical movement of a beehive as it gets heavier (i think this can solve the creep problem)? Thank you. Octavian from Romania.
There are other comments from beekeepers. Maybe you browse through the comments of the video.
Is IT ok to connect GSM module so i can GET wight on demand
It can be done with the needed Know-how
Hello
I wounder if it is possible to have 1(one) ESP 32 to report Date(YYYY:MM:DD), Time (clock time HH:MM), Weight, Tempeture and Humidity to Raspberry pi 4 with Mysql database??
Or is this too much for ESP 32??
I was thinking of to add DHT22 for temperature and humidity, and Load cell with HX711 for weight. Is it possible to do this with ESP 32??
/Sincerely, Nicklas
Just divide the project into parts and search example projects for each part. The ESP32 should be able to do that.
@@AndreasSpiess Thank you for your answers
Danke!!!
für die 4 draht sensoren habe ich jetzt gerade erst gefunden:
MCP3424-ADC-4-Channel-Programmable-Gain-Amplifier-A-D-For-Ardruino-2-7V-5-5V
und nun schaue ich ich weiter ;-)
...
guter job !!!
kannst du den schaltplan einstellen ( oder habe ich übersehen wo ich ihn finde )
( der sensor hat so seine eigenheiten aber die sind bezogen auf das was er machen soll , für mich, zu vernachlässigen ! werde das projekt nachbauen und dann ggf auf die 4draht version wechseln ... und hoffen das es da bei dir ggf ein update gibt :-) :-) )
einen schönen Sonntag und mögen die bienen in deinem garten summen ;-) ;-)
Der Schaltplan für die Zellen ist im Video und derjenige für den HX711 auf Github. Ich würde den HX711 nehmen. Der ist sehr gut und kost nix.
ja, aber das entgültige verbinden der 4 sensoren untereinander und zum HX711 ... ist ggf auch für einsteiger gut :-)
Ich habe das eine Diagramm ergänzt und zu GitHub dazugefügt.
Dear Andreas,
are there any way to connect firebase over A6 GSM module?
I think so, but I do not know how.
how do you do it to send info to Home Assistant over long distance ?
I made some videos about long distance data transmission. Search for LoRa on my channel
@@AndreasSpiess danke furs antwort, lg
5% of Finlands population is Sweedish. Finland used to belong to Sweeden. In fact, Finland has belonged to Sweeden for 600 years. From the late 13th century onwards. The period of Swedish rule ended on 17 September 1809 as a result of the Finnish war.
en.wikipedia.org/wiki/Finland_under_Swedish_rule
Thank you!
Why do you have to hard code the calibration value? Isn´t it possible to store it in the eeprom?
You can store it wherever you want. My code is not very user-friendly. It is just to show how to do it...
Is it possible to connect the PCB with HX711 instead of replacing it?
I do not think so. An "HX711 function" most probably is part of the PCB. Who knows?
Can you make separate video how you set Firebase. I am trying to do it 3 days without succes. Thanks
For the moment I have no plans with firebase. This might change in the future...
Is there a requirement to use Salt to calibrate a SaltViken bathroom scale? would it work to use a bag of cement or a 25KG child? Inquiring minds want to know.
The only heavy bag in our household was salt ;-)
Hello sir please make tutorial on wind anemometer using esp 8266
I had once a project but left it. Maybe I will once come back to it...
Es wird behauptet das diese Wägezellen mit der Zeit kriechen und sehr ungenau werden. Stell doch mal 100kg drauf und mess einpaar Tage :)
Das is sehr wohl möglich. Ist aber offenbar akzeptabel, da dieses Konzept an vielen Orten werwendet wird. Scheint auch von der Waage abzuhängen. Ich kann mal die 25 kg für ein paar tage drauf lassen.
Hi Andreas, ich verstehe jetzt nicht, wieso das akzeptabel sein soll. Ich bin selber Imker und baue solche Waagen. Ein sich aufschaukelnder Kriecheffekt durch das verbiegen der Zellen durch eine Dauerlast von bis zu 120kg wäre schlecht, da man den Verlauf über das ganze Jahr messen möchte. Daher nutze ich Plattformwägezellen H30A von Bosche dafür. Trotz Einpunkt-Lagerung wackelt da auch nichts. Bei diesen Zellen kann man sogar auf Temperaturkompensation verzichten, da die Schwankungen bei dem Messbereich tolerabel bleiben. Anders bei günstigen China Zellen. Siehe Waage 4. Weitere Infos unter www.imker-nettetal.de - Mqtt, Management/OTA via homie-esp8266, Solarbetrieb.
Alexander Wilms Für uns wäre es akzeptabel, je nachdem wie stark die Dinger kriechen. Werde vermutlich eine Leerbeute daneben stellen mit einem defeniertem Gewicht und als Referenz nehmen. Ist bei uns aber auch kein Must-have. Wie hast du denn den Wägerahmen mit dieser Zeile aufgebaut?
MrXsharp guck bei www.imker-nettetal.de
+ Alexander: Danke für deinen Input. Ist immer schön wieviel Know-How hier zusammenkommt. Was mich wundert ist wieviele meiner Zuschauer selbst Imker sind.
Ich werde einen Hinweis in die Beschreibung mit einem Link zu Bosche machen.
Thanksfor sharing, you could also use XBEE og ZBEE for communication... ;-)
I never used Zigbee so far. But you are for sure right. Then even an ESP32 would not be necessary.
Very good, i am also a beekeeper, and like to build this.
I am a newbee with arduino...
do i need to connect the ESP32 to a Arduino Uno?
How do i connect to firestore, wat parts do i need for this?
If you are new it is maybe better to start with something simpler and approach this project in steps. The ESP32 is used instead of the Arduino. It has much more capabilities than an Arduino. I made a few videos about the topic.
Thank you, in between i have seen a lot of your great videos.
I learned already some, but there are a lot of types, and it is difficult to choose.
i have to study / explore some more.
Are these useful for my beehive scale project?
4X sensor + HX-711
nl.aliexpress.com/item/RCmall-Menselijk-Schaal-Load-Cell-Gewicht-Weging-Sensor-50-KG-Halve-brug-Versterker-HX711-AD-Module/32854824556.html?spm=a2g0s.13010208.99999999.302.30453c00dpbsBD
TTGO T-Beam ESP32 868 (Netherlands) mhz WiFi draadloze Bluetooth Module ESP 32 GPS NEO-6M SMA LORA 32 18650 Batterij houder met SoftRF
nl.aliexpress.com/item/TTGO-T-Beam-ESP32-433-868-915-mhz-WiFi-draadloze-Bluetooth-Module-ESP-32-GPS-NEO/32875743018.html?spm=a2g0s.13010208.99999999.296.30453c00dpbsBD
Is this a useful combination?
Thanks.
About the first link: please read the comments in this video. These sensors seem to creep and are not optimal for beehives. The second link is a LoRa module. I did not test it, but it should work if you want to use LoRa as a communication method.
I received a ESP32 with TTGO Lora and OLED display V2.0
In de video u connect the 711 to a ESP32 and then with WIFI to te Lora board.
Can't i connect te 711 directly to the ESP32 on The TTGO Lora Board V2.0 ?
I also cannot get the TTGO LoRA V2.0 into the board manager of arduino 1.8.5 programmer.
I am going into a circle searching. Is there somewhere a manual for this programmer.
@@AndreasSpiess hi, Andreas, nice job as usual ! but this time it's not that easy to connect it to a TTGO-32 LoRA module because,as you probably saw, pin #26 is already used by the LoRA chip (LoRa IRQ) so we need to change to another pin. The problem is other pins don't seem to be ready to accept HX711 Dio. I tried on pin 35 and 32 yet no sucess... wich one would you suggest ? best
I search a cheap load cell for 300-500kg is there some part in the Internet?
I do not know as I never have such big loads :-(
Or hack the blob circuit output)
Btw - I didn't know about throttling clock - why we must throttle? And what - cpu?
We have to throttle the ESP32 because it is faster than the police (HX711) allows ;-)
You mean slow down cpu?
Yes
You could also use an ESP8266, which is not as fast and does not need to be throttled.
No I think you guys are doing something wrong. There is no need to throttle. Just attach your measure function to timer with lower frequency callback.
Throttling cpu affects the whole system.
Finland have two languages, Finnish and Swedish. And most Swedish is in south west part of Finland and in Åland Islands are near 100% Swedish speaking.
In Saltvik, Åland they also have a great Vinking market.
But here are more Saltviken in Sweden too.
kartor.eniro.se/?c=60.211692,14.571214&z=6&q=%22saltviken%22;geo
Thank you for the information. I have to come once to your countries...
Swiss supply of salt, just in case - 25kg per family
For our Atomic shelter ;-)
Surprise question at 7:36 Is 0 positive or negative? ;)
Good question ;-)
Nice video Andreas, but I fear that long term stability will be a critical issue for the use as a bee scale see community.hiveeyes.org/t/scales-with-bathroom-load-sensors/673 The thread is for monitoring other bee scale projects that uses the cheap 3 wire load sensors - and fail - in the most cases.
Thank you for the link. Do you know if somebody tried to compensate for the longterm shift? Or at least tried to visualize it?
There were a few other specialists which confirmed the same. They proposed load cells from Bosche which seem to be much better (but also more expensive).
You can find some graphs in the writeup of Geo Meadows linked in my first post. Direct link: bugthebees.blogspot.de/2014/12/beesbug-this-blog-is-all-about.html
We are using the Bosche cells for a long time with good results, but as you point out cost is much more than an Ikea scale. We have used the Bosche H30 or H40 with 150 or 200 kg max. This are single point load cells and it is a higher effort to build a frame that carry the hive, see community.hiveeyes.org/t/h-type-scale-frame-steel/251
Do you know if it is also possible to hack a more complicated scale like the Omron BF511? I want to read out the body fat and BMI Data and use it like you do in the video.
The problem is there, that I need to read out the calculations made by the scale since there is an algorithm behind the body impedance reading.
Thanks everyone!
PS: I have fond some videos, where you can see the chips that are build in to these scales:
ruclips.net/video/N6Vylv4gmWQ/видео.html
ruclips.net/video/dU_kKSioTTU/видео.html
You have to ask google...
de.wikipedia.org/wiki/Finnlandschweden
Thank you for your link. Every Sunday I lean something...
Totally not useful for me but very, very interesting! (As always).
I think/hope/wish you are going to enjoy some delicious honey in the near future ;-)
Thank you!
You are welcome!
Хрень полная, в чем суть хака не понятно, поменял родную платку на ESP и вывел показания . Таких проектов в интеренете просто куча. Другое дело бы если передавать показания с родной платы весов☹☹☹☹☹
Just watch my video about the Xiaomi scale if you are interested in such a solution.