#161

Поделиться
HTML-код
  • Опубликовано: 8 июл 2024
  • Let’s build a connected scale, which alarms us when the food bin is empty. Of course, we will be able to use the same principle to measure the weight of any other good like the honey in remote beehives, or even your own weight to visualize it somewhere in the cloud…
    So, today we will:
    - Measure quite small weights with an Arduino like Microcontroller
    - We will need some tricks to do that
    - Then, we will build a bowl for our cat which is capable to detect if no food is available anymore
    - And we will send a Twitter alarm to our Smartphone
    We will also slow down the clock rate of the ESP32 to fit the timing of the HX711chip, and will use an OLED display and an MQTT library.
    Links:
    Sketch: github.com/SensorsIot/Weight-...
    HX711 library: Based on github.com/bogde/HX711. Please use the one in my Github. Otherwise, you will get a compilation error
    HX711 module: bit.ly/2fBZ82W
    Strain Gauges: s.click.aliexpress.com/e/Jqb2biU
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com/sensorsiot
    If you want to support the channel and buy from Banggood use this link to start your shopping: bit.ly/2jAQEf4 (no additional charges for you)
    Official Wemos Store: s.click.aliexpress.com/e/jUzBiIq
    / sensorsiot
    / spiessa
    www.instructables.com/member/...
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my main job
    Who is the first to buy me a coffee? www.paypal.me/AndreasSpiess
  • НаукаНаука

Комментарии • 389

  • @williamna5800
    @williamna5800 6 лет назад +30

    As someone who watched many YT Videos, mostly scrounging around for electronics info I am always glad to see a video addressing the topic I am looking for/interested in even if not really a "well done" video. Then came the day I stumbled on your channel and I have found myself watching other videos thinking "if Andreas had done this video I would already have my answer and a working example AND all relevant info explained in a video that isn't 45 minutes long and putting me to sleep" As always, clear and to the point as a YT video should be. Well done.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +4

      Thank you! During these videos, I usually think: "If I Had More Time, I Would Have Written a Shorter Letter" (A quote attributed to several authors)

  • @bmoroneyau
    @bmoroneyau 6 лет назад +1

    Thank you for your projects and for your insight into electronics. You've inspired me to not only connect and program the ESP32 successfully (just finishing my WiFi weather station) but with this latest project our cat may never go hungry again! Thanks again Andreas for producing these videos and helping inspire a new community of makers!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Thank you for your nice words. Enjoy your ESP32!

  • @ziliboba73
    @ziliboba73 6 лет назад +2

    Andreas, thank You for your videos - always very interesting and helpful!

  • @nburton01
    @nburton01 6 лет назад +1

    I've had all the parts for this project for some time and remember seeng your video. Worked a dream and like you I’am amazed at it’s accuracy. Would have never thought of slowing down the esp32, great tip. Saved me many hours of debugging.
    Just got to get a cat now :)

  • @TheM4rten
    @TheM4rten 6 лет назад +2

    absolute nice video as allways on your channel ! keep up with that high quallity videos ! thumbs up

  • @richard_wenner
    @richard_wenner 6 лет назад +41

    Spiess's Law 'The cost of any ADC should not exceed the cost of what it's used to measure'. I have never considered that, in the past, but now you have enunciated it - it's so obviously a fundamental law of the universe! A small gravitational wave of shock has just been released from Wales - as a consequence (did you see it on your strain gauge?.

    • @deangreenhough3479
      @deangreenhough3479 6 лет назад

      Richard Wenner
      Ohh Richard, well said😀

    • @coreddit
      @coreddit 6 лет назад +1

      Sometimes you need to measure stuff with negative value. Like garbage. You need to pay to get ride of it. What ADC would you use?

    • @deangreenhough3479
      @deangreenhough3479 6 лет назад

      cored 😂 a rubbish one maybe. I like your way of thinking 👍

    • @3zuli
      @3zuli 6 лет назад +1

      But that would mean we can't use our expensive oscilloscopes to measure our cheap Arduino circuits... 🤔

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +3

      +3zuli: If there is a rule the exception is not far (other law)...

  • @vivetgrosalexis1413
    @vivetgrosalexis1413 3 года назад

    hello, it's always a pleasure to watch your videos. they are carried out with so much pedagogy that you manage to explain the most complicated things simply. Well done. Alexis. France

  • @richard_wenner
    @richard_wenner Месяц назад

    It's stunning how sensitive these gauges can be. Your, Dishka, cat pellet demo is an example of this but given the leverage effect of the bar, surely the pellet will record a different mass depending upon where in the dish it is placed. My bar, which can tolerate up to 20kgs, can currently differentiate between one and two match sticks!

    • @AndreasSpiess
      @AndreasSpiess  23 дня назад

      Indeed unbelievable! I never went this far. This is a very big range!

  • @Emillos82
    @Emillos82 6 лет назад +1

    Great, and again super timing! I have a litter box alarm for our cat mishka ;) based on the door pulse. Friday a collegae suggested to measure it and I was already looking for a scale with serial connection. But of course now Mr Spiess comes along and gave a much better inspiration. Thanks!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      Glad to read that. This should be possible. Maybe you use square gauges like the one I showed. They are used for body scales and can be placed on all four sides of a box. Would probably be more stable.

  • @LatinDanceVideos
    @LatinDanceVideos 6 лет назад

    That was really cool. Special thanks for resolving the slowdown to eliminate anomolies.

  • @GeekMustHave
    @GeekMustHave 6 лет назад

    Thank you for showing a unique combination of technologies for solving the "Is the cat's bowl empty?" I often wondered what Node-Red could be used for now, I have a good example. You do such a good job explaining the technology bits and bobs that it makes the big picture much easier to visualize. That is a rare talent. Leep broadcasting.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Thank you for your nice words. In fact, I used this cat feeder only as an example to show the concept. Our cat does not really need more food...

  • @deangreenhough3479
    @deangreenhough3479 6 лет назад +2

    Good Morning Andreas 😀
    Yet another example of something I had no apparent interest in - strain gauges.
    Well, I'm sitting up and all of a sudden interested! Both my missus and my cat 🐱 have also been watching this video and I have been given a few looks suggesting it's time to build one😀
    A great tutorial, I especially liked the esp32 and the issues along with your tips and tricks.
    You say the ADC should not cost more than the cat😂😂😂😂
    Andreas you are quiet the comedian. ✌️
    Keep up the hard work my friend

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      As always, thank you for your nice words. They are always part of my Sunday morning. And they motivate me to start searching for the topic of next week's video...

  •  6 лет назад

    Congratulations Andreas! Thanks for sharing!

  • @anumsheraz4625
    @anumsheraz4625 6 лет назад

    Awesome as usual! Keep up the good work

  • @jasonmhite
    @jasonmhite 6 лет назад +5

    Great video as always. I've had a project idea to make an automatic cat feeder but kept putting it aside as I would came up with problems, one of which was how to tell how much was in the bowl. Maybe now I should go back and revisit it...

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      Adding an automatic feeder is a good idea! Maybe for another video...

  • @Barbara-yl4rf
    @Barbara-yl4rf 4 года назад

    Thank you! You save my project!Great Video!

  • @SamFugarino
    @SamFugarino 6 лет назад +23

    You got me with the cat. Thanks.

  • @deangreenhough3479
    @deangreenhough3479 5 лет назад

    Back again and just the information I needed :-)

    • @AndreasSpiess
      @AndreasSpiess  5 лет назад

      This happens sometimes to me, too. I have to watch my own videos because I forgot how it worked ;-)

  • @albertroswell
    @albertroswell 6 лет назад +1

    new viewer, especting to play soon with my ESP, thanks for the videos, you are awesome

  • @elson2k
    @elson2k 6 лет назад

    Nice and clear, as usual. Great video! This will be my next project (my cats also saw the video and they convinced me to do it).

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      So, good luck! You should now find the links for the products, too

    • @elson2k
      @elson2k 6 лет назад

      Sweet, thanks ;)

  • @madrian_hello
    @madrian_hello 6 лет назад

    What a beautiful cat!!! 🐈

  • @swissdani71
    @swissdani71 6 лет назад

    Elektonik und Kätzli, fantastisch! 😍

  • @alidollar1994
    @alidollar1994 6 лет назад +12

    10:36 "as with all models she had to starve a little before her appearance" that was hilarious :D btw great video as always!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      Thak you for your nice feedback!

    • @Raptorman0909
      @Raptorman0909 6 лет назад +2

      Yes, and now cats are taking over electronics videos -- is there nothing they don't dominate?

  • @IoTLearner
    @IoTLearner 5 лет назад

    Nice video, happy for the cat :)

  • @ferijusko8775
    @ferijusko8775 3 года назад

    Hallo Andreas, deine Videos sind Klasse.... Danke! Feri (Thurgau)

  • @Chuenthe
    @Chuenthe 6 лет назад +10

    Wow, this is exactly what I was looking for! I have been migrating a project to the ESP32 (using the DS18B20 temperature sensor) and it kept dropping values where the previous Arduino did not. So it's just too fast! Can't wait to try slowing down tomorrow. Also, I am a hobby beekeeper and wanted to experiment with logging the weight of my hives over the coming season (I'm in New Zealand the season is just starting). So I've got my next project lined up already! Thank you as always for the great video!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +2

      I also plan to become a beekeeper when I have more time. Seems to be interesting and important these days.

    • @deangreenhough3479
      @deangreenhough3479 6 лет назад

      I would love to see progress on this, as Andreas points out, it is becoming even more relevant.

    • @charlesdorval394
      @charlesdorval394 6 лет назад

      Jens Stein: There's a bit for "conversion in progress", you might want to check that bit to make sure the conversion is finish when you're reading. IIRC on one of those model of DS temp sensor, you can also select the precision to get faster reading if you don't need 10bits.
      Hope this helps!
      DW

    • @Chuenthe
      @Chuenthe 6 лет назад

      Hi Charles, that was very helpful, thank you. I was able to solve the issue by just setting the resolution to 9 bit (from default 12).

    • @PatrizioBekerle
      @PatrizioBekerle 6 лет назад

      I will test if slowing down also solves my problem with reading from a DHT22 temperature sensor...

  • @madrian_hello
    @madrian_hello 6 лет назад

    Very genuine projects.

  • @AllanKobelansky
    @AllanKobelansky 5 лет назад

    In your video you mentioned temperature compensation requirements. A Wheatstone bridge takes care of that. Nice job.

  • @HRTLmusic
    @HRTLmusic 3 года назад

    thank youuuu!!! you fixed my project up with the esp being too fast for the HX711!! i was pulling my hair here haha)) thanks!!!

  • @klassichd10
    @klassichd10 6 лет назад +1

    Thanks for the great Video. I like gages and such stuff.
    This kind of project is perfectly to use the "oldfashioned" ESP8266 out which are not as fast as the ESP32.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      I only used the ESP32 to test some of the libraries. I think we should get an overview on which libraries work and which not yet.

    • @klassichd10
      @klassichd10 6 лет назад

      Yes, for several weeks it gets better and better. Nearly all what I tested worked. And of Course, ESP32 is more attractive buzzword nowadays.
      Usually I see beehives in goups, so a multi tasking mode would be needed. Or a a dedicated Controller per beehive measuring additional Things like temp + humidity, Irradiation or whatever maybe useful for a beekeeper.

  • @gazzacroy
    @gazzacroy 3 года назад

    cool video,,love the cat too :)

  • @jumadhaheri
    @jumadhaheri 6 лет назад

    Excellent video

  • @4.0.4
    @4.0.4 6 лет назад

    I like the historic pictures! It's good to give some honor to those who invented and discovered what we use today.

  • @ZsomborZsombibi
    @ZsomborZsombibi 5 лет назад

    What a good subject chosen as example. Measuring also cats' weight and matching them with RFID reader, you get a long term, fully automated cat-growth monitor :)

  • @birnodin
    @birnodin 6 лет назад +3

    In the last 5 years I have seen many RUclips videos. And while I am watching, I eat chocolate, ice cream, potato chips etc. I need a weight control for me that reminds me with a 100db alarm to stop eating...

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Good idea! But I am not sure the sound would be enough. Maybe you need a harder punishment, or a big award if you do not eat ;-)

  • @RambozoClown
    @RambozoClown 6 лет назад

    Very cool project.

  • @felineseele
    @felineseele 6 лет назад +1

    Sehr schönes Video, und die Katze sieht unserem Kooper verblüffend ähnlich, Farbe, Umfang und Strubbelfell stimmen genau überein ...! Beim Abnehmen hilft auch, Katzen auf (fleischreiches/getreidefreies) Nassfutter umzustellen, da es nicht erst im Magen aufquillt und dadurch schneller sättigt. Like geklickt.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      Wir haben auf Anraten der Tierärztin auf Trockenfutter umgestellt. Ist auch für uns angenehmer. Wir schauen schon, dass sie nicht zu dick wird, sonst muss ich was hören, wenn "Tante Doktor" das nächste Mal vorbei kommt ;-)

  • @MaxintRD
    @MaxintRD 6 лет назад +6

    Great video again. Thank you for your clear explanation. I hope your cat was paid well for starring in this video! Perhaps you could also weigh the cat and give it some automated laser guided exercise when overweight?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +6

      She loves to play with the straw. But only for a few minutes. Then she is "tired" and sleeps the rest of the day. I am not sure the laser would change that ;-)

  • @lioman2578
    @lioman2578 6 лет назад +1

    great! Next level is servo motor filling the Dishka's bowl. Thank you.

  • @henrikworg350
    @henrikworg350 6 лет назад +4

    Sunday Morning 6 o clock 😃👍🏼 at the Point ... accurate like a Swiss clock 😉

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      Früher Vogel fängt den Wurm? Oder gerade aus dem Ausgang gekommen :-)

    • @henrikworg350
      @henrikworg350 6 лет назад

      Andreas Spiess 😂😂😂👍🏼

  • @indigonils
    @indigonils 6 лет назад

    Cool project and good explanation! Although, when i had a cat he never failed to notify me if he was hungry and his bowl was empty... lol - but of course he couldn't tweet.
    Idea: Make an automatic feeder that triggers when bowl is empty and a certain amount of time has passed since it reached zero. And maybe only activate that function if the cat has to stay at home alone for a long period of time. For example: It should be possible to trigger it only if your (and your wife's) phone isn't connected to your local wifi (thus assuming that no one is home).

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I think your idea about a feeder is a good one. Thanks!

  • @noelwalterso2
    @noelwalterso2 6 лет назад

    Thumbs-up for your cat being the spitting image of my old cat Stanley (RIP)

  • @ravishanker9014
    @ravishanker9014 6 лет назад

    Very Informative...God bless you...Keep it up

  • @avejst
    @avejst 6 лет назад

    Thanks for sharing 😀

  • @hvanmegen
    @hvanmegen 6 лет назад

    I love his video openings.. and I also refer to him as 'the guy with the swiss accent' and all my youtube watching friends instantly know who I mean :P

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      That is what the call "branding" ;-) Thanks!

  • @jmaguilarr
    @jmaguilarr 4 года назад

    jaja, a new cat star of internet!!

  • @bdot02
    @bdot02 6 лет назад

    Coming to store shelves near you next year: iot cat/dog food bowls. I just know it's going to happen. It is a great idea

  • @PatrizioBekerle
    @PatrizioBekerle 6 лет назад

    Setting the cpu clock manually to 160 or 240MHz also solved my problems with reading from a DHT22 temperature sensor... Thank you very much, Andreas!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      You are welcome!

    • @middelbh
      @middelbh 4 года назад

      Andreas Spiess see my problem I described on using hx711 and ds18b20 on an ESP32; 80mhz is OK for the hx711, 240 mhz works for the ds18b20.....

  • @udith-pz4tv
    @udith-pz4tv 6 лет назад

    Thanks, good job

  • @jerrymckee4332
    @jerrymckee4332 6 лет назад

    Love it!

  • @BEdmonson85
    @BEdmonson85 6 лет назад +1

    Haha, this was fantastic! What I would like to know is how on Earth you got that cat to not rip your project apart!? My cat goes in to crazy mode when he sees wires just flapping around like that. He would have forgotten completely about the food and ripped those wires to shreds! lol

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      She is already old. So, eating is more important to her...

  • @manickn6819
    @manickn6819 6 лет назад

    Sir excellent video. Since my last comment some time ago I started up loading videos. There are about four presenters that influenced that decision, yourself being one. The aim is largely to document the hobby stuff I do and structure it but hopefully it helps someone tinkering.
    One video I did that is relevant to this video is a kitchen scale I opened recently to repair. Just a broken contact so that was simple but then I started wondering if it was feasible to fabricate one. I pulled up parts on ebay and it appeared to me that it was indeed economical. I did not consider the voltages and the need for the HX711. This video has been most informative on a topic I did consider though not order parts or build.
    If you care to have a look and comment I can post a link. Critique is good. I need to improve my level.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I answered in one of your videos

    • @manickn6819
      @manickn6819 6 лет назад

      Thanks. The video I was referring to is the one with the electronic scale which is similar to this. The same problem will occur though with my volume level and accent making it difficult to understand.

  • @Peter_S_
    @Peter_S_ 6 лет назад +2

    Cat videos are always a plus. Cat + 24 bit ADC is extra cool. Could you determine how many of the 24 bits were above the noise floor?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      1. "cat 24 bit ADC" provides 400'000 hits on Google. Most of them without an animal ;-)
      2. I did not look at the noise. Just look how accurate it counts the pieces. I assume, there cannot be a lot of noise.

    • @Peter_S_
      @Peter_S_ 6 лет назад

      🐈❤️

  • @alejandromonsalvek.2014
    @alejandromonsalvek.2014 3 года назад

    Hi Andreas thank you so much for your videos! You're awesome and the content is great!!
    I'm getting one issue though following the steps in the video, when changing my ESP32CAM speed, with the same code you showed, I'm getting this error:
    'RTC_CPU_FRQ_80M' was not declared in this scope
    Any advise on how can I fix this?
    Thanks!!

  • @norberthartmann5075
    @norberthartmann5075 6 лет назад +1

    ups - YT hat den text gelöscht ...
    Super !!! 100Punkt
    das ist genau passend für mein Winterprojekt... die Bienen-Beuten-Waage :-)
    ggf gibt es ja mal ein update mit 4 Sensoren und dem schreiben von Daten in den Speicher des ESP32 ( habe dazu noch nicht ins prg geschaut ob es schon gemacht wird )
    die Wiegeroutine , vor allem das eichen, des prog wird mein Sonntag Nachmittag Projekt und dann wird aus der katzenfutter-Waage eine Kaffeetassenwaage ;-) ....
    danke und Streicheleinheiten an die kleine Dame !
    ps.: deine Filmchen zum Sonntag sind immer wieder toll !! -

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Danke für deine netten Worte. Nein, die Werte werden nicht abgelegt. War für dieses Szenario nicht nötig. Das Eichen hingegen findest du (als Kommentar).
      P.S. Du bist schon der zweite Bienenzüchter in diesen Kommentaren!

    • @norberthartmann5075
      @norberthartmann5075 6 лет назад

      :-)
      das thema ist bei den bienenfreunden auch ein grosse Thema.. als wiegen über eine zelle oder wiegen über vier zellen ( was ich von der hardwareseite besser finde....)
      doch beim eichen des sensors scheitere ich immer wieder - irgendwie finde ich da nicht so wirklich einen recht genauen weg... ok beim wiegen im Bereich von sagen wir 50-150 KG mag das nicht wirklich das Thema sein doch auf 1-2 kg solle es passen ( so meinen einige ansätze das man so das ausfliegen eines Schwarmes auch erkennen kann .... das sind so 1-2 kg bienen :-) )
      ja, die Daten des wiegesensors "grinsen" da auch schon ein wenig.egal ob China oder bosch wiegezelle H30A, diese zelle ist eigenlich in 90% aller käuflichen lösungen .....
      und wenn die mal nette kleine reflexlichtschranken unterkommen und du kein Thema findest: zählen von Impulsen aus zwei Richtungen ;-) - also das zählen der bienen im Volk über die Fluglöcher ( klar dann in einer speziellen Bauform - dann ist das einzelne Flugloch nur so breit wie eine biene ) :-):-)
      ach: und irgendwann steht dann der datenaustausch über "deinen" datenweg an ....
      du siehst auch bei den bienen ist die Elektronik angekommen :-) :-)
      in diesem sinne!

  • @RichardEricCollins
    @RichardEricCollins 6 лет назад

    Great video. :-) loved the adc should not costs more than the cat joke. Lol.

  • @venkateshe7506
    @venkateshe7506 6 лет назад

    Shouldn't cost more than the cat itself... I laughed like anything.. Good video once again.

  • @GhVost
    @GhVost 6 лет назад

    Very nice video, Andreas! As always. Thank you!
    P.S. Your Katze name sounds a little bit russian. Very unsusual and sweet!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      We have her from the animal asylum. So, we did not decide on the name. But we like it :-)

  • @mattiasdesmet
    @mattiasdesmet 6 лет назад

    Hello, great video's, I learn a lot from them.
    Can you give a pointer how to use the HX711 without Arduino libraries? I use CPP projects in Eclipse and can't find a library for HX711 without Arduino support.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      No, I never searched for one. This is the reason I use Arduino stuff...

  • @hesspet
    @hesspet 6 лет назад

    Unsere Katze hat sofort ein Build bestellt. (Die ist auch langhaarig....) Danke für diese nette Idee...

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      War eigentlich nur als "Demonstrator" für das Thema gedacht. Unsere Katze braucht nähmlich eher das Gegenteil von mehr Futter...

    • @hesspet
      @hesspet 6 лет назад

      :-) Meinung meiner Frau: sowas brauche wir nicht, die mauzt so laut rum, wenn der Topf leer ist, das schafft kein Smartphone.. :-)

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      :-))

  • @chuxxsss
    @chuxxsss 6 лет назад

    I love Wheatstone bridges.

  • @diydsolar
    @diydsolar 6 лет назад

    Hi, as always great video. Do the ESP32 consume less power when you change its frecuency? how many different frecuences you could choose? Regards

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      1. I would assume it uses less power but did not try.
      2. You can choose about 4 different frequencies, the lowest was 2 MHz

  • @brigittemuster9391
    @brigittemuster9391 3 года назад

    Thanks for the always instructive, interesting and funny videos!
    as a beekeeper i would love to see a video about a Beescale that sends the measured data like weight and BME 280 weather data to a DB on the internet with Lorawan via Thethings network
    I wait until you start with beekeeping :-)

    • @AndreasSpiess
      @AndreasSpiess  3 года назад

      I often use a project to show a particular technology and hope, that the know-how is used for other applications. In this case you should find all parts needed for your project. With the exception of the mechaical part for the scale. But if I remember right, I saw some other projects for that part.
      Just if you want to start before I start. Beekeeping will be after RUclips. So it will probably not appear on the channel :-(

  • @cymeriandesigns
    @cymeriandesigns 6 лет назад

    A lot of work went into this one, so thanks. I'm guessing the weight reading is done at large intervals or there is some sort of averaging, otherwise the forces that occur when the cat eats would generate false indications of empty.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Of course. And it is no hurry. So you can also wait for a few minutes till you transmit the message.

  • @joeybushagour2612
    @joeybushagour2612 6 лет назад

    Hey Andreas, great video! I had no idea about slowing down the esp32, I'm sure that will come in useful! One quick question I had, why did you use an ADC instead of an operation amplifier?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Because these are very specialized chips and dirt cheap ;-)

  • @harrilumme1875
    @harrilumme1875 4 года назад

    Hello Andreas and thanks for your excellent channel content. I have two questions of the HX711 interface. Why do you shut down and reopen the chip after every read cycle? Is is to conserve power? Secondly I have a very nice weight cell originally from a fish weighing scale. It is however very sensitive to temperature changes (maybe it is only half bridge?). Therefore I would like to use the B channel to monitor the temperature. Does your HX711 library have a provision for channel B read?

    • @harrilumme1875
      @harrilumme1875 4 года назад

      Actually after studying the datasheet of HX711 I went on to test the library and it seems that if you simply make a call scale.set_gain(32) the next reading automatically comes from channel B. When you call scale.set_gain(128) (or 64), the next reading is from channel A.

  • @nicklaspersson4687
    @nicklaspersson4687 6 лет назад +2

    Great video again. Strain guages can be used in a lot of mechanical applications and are rarely found in electronics videos. A more relevant problem for me is that my too hunter/lovebuggs often bring in prey/ 'presents' thru the catflapp in the door. I have been thinking about an image recognition system that could only open the flap if the cat is NOT carrying something in its mouth. This is a bit beyond my skills programming skills, i think the software or parts of it is already 'out there' for this. I think the cost of the hardware is not a problem basically I'm thinking a rasberry PI, a camera and a gpio pin on it to control a relay that controls a motor to open the flapp. My cat has a rfid chip in the neck but the problem I would like to solve is to deny entry if something is not 'normal' under the nose.

    • @MaxintRD
      @MaxintRD 6 лет назад +2

      Nicklas Persson - You could detect if the cat is carrying prey by measuring its weight on both exit and entry. If the cat got heavier, is must have gained weight somehow, or - more likely - carry some prey... Just a though: Instead of bluntly refusing entry, you could perhaps train the cat to dispose it in a reward bowl that exchanges the prey for some cat candy...

    • @nicklaspersson4687
      @nicklaspersson4687 6 лет назад

      I am all for simple solutions but a cat pees and poops outside and the weight of this greatly varies and would sometimes exceed 10-15 grams of a small mouse, bird and sometimes not. I am pretty sure my cat or any cat can not be trained to do leave its pray where I desire and most cat owners would probably agree i'm sure. I do appreciate the effort.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +2

      +Nicklas: Fortunately, our cat does not catch any animals and we even do not have a cat door. So, she has to wait till we let her in. But most of the time, she is anyway inside.
      + Maxint R&D: Good idea with the weight. If the animal in the mouth is not too small... Concerning exchanging it with a candy: I am not sure if a dead animal is already a candy for a cat ;-)

    •  6 лет назад +1

      You can do that using OpenCV and Tensorflow. Some examples: medium.com/towards-data-science/building-a-real-time-object-recognition-app-with-tensorflow-and-opencv-b7a2b4ebdc32 www.pyimagesearch.com/2017/09/18/real-time-object-detection-with-deep-learning-and-opencv/

    • @nicklaspersson4687
      @nicklaspersson4687 6 лет назад +1

      Thanks Lucio for thees links. This was what I was thinking of, hoping someone already has done this with a cat. Measuring the weight of the cat will not work unless the cat that always and without exception pees and poops indoors. Most cats prefer to do their 'business' outdoors with irregular intervalls. The cat may also have a drink or eat a prey or stolen food from neighbors cat or dogbowl while outdoors that will add to its weight and that should not stop it at the flap. I want to only stop cat from carrying prey indoors. This example shows how important it is to understand the context that an automation device is applied to.

  • @sledgeHammerRulez
    @sledgeHammerRulez 3 года назад

    Hi Andreass, just stumbled on this "old" video of yours looking for a weight sensor and ESP. The idea is that with this weight sensor, I can estimated the amount of filament om my 3D printer. Should be possible ... I think :S. Big kisses to the star of the video :p

    • @AndreasSpiess
      @AndreasSpiess  3 года назад

      It should be possible to measure the weight of the spool and calculate the rest of the filament if you use similar spools to estimate the tare.

  • @rickharold7884
    @rickharold7884 2 года назад

    Awesome

  • @yomboprime
    @yomboprime 6 лет назад

    Hi Andreas. Do you think a smaller version could be used in a small robot clamp to measure the force which with the robot holds the object?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Why not. They measure all kind of forces

  • @microsoftbizappsfico
    @microsoftbizappsfico 2 года назад

    Hi Andreas, You video about the weight measurement is great. I would like to do something similar - without a cat 🙂- and weight something that has a very light weight (< 1 gram). Can you recommend any sensors that can measure such small weights?

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      I do not know how to do something like that. Because it is mechanically challenging it is probably easier to buy a commercial device and hack it. Maybe you can use a sensor I used and add a long lever?

  • @poweredbysergey
    @poweredbysergey 6 лет назад

    Cool!

  • @ThomasHaberkorn
    @ThomasHaberkorn 6 лет назад

    Hi , very useful video as usual. I have a very basic question about the HX711. Its datasheet claims for it to provide 24 bits of resolution. This would result a "value range" from 0 to 2^24=16777216. Is it possible to get such a "high digit" number from the HX711 library? Would be interesting to determine the effective number of bits when shielding measures are applied.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      AFAIK Integers in Arduinos are 32 bits and I assume you read 3 8 bit values from the chip.. So it should be possible. I never checked the library. How many bits are useful (accuracy) is a different thing and has to be measured in your setup.

  • @eld0ntyr3ll
    @eld0ntyr3ll 6 лет назад

    Hi Andreas, great video again, a couple of questions.
    I don't think you mentioned which strain gauge you decided to use for this prototype and if there was a reason for choosing that gauge rating ?
    Also i've never used such gauges or analog bridges, nor played a lot with ADCs and i had to look a bit around to try and understand that "F.S" (full scale?) unit, maybe some details about ADC precision/limitations in your next ADC video, i don't remember if you covered ADCs in a previous one.
    I'll try to apply that to my mailbox to check if mail has really been delivered, yeah we're all someone else's cat :)

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      1. I think I mentioned that you get load cells for different weights. This weight is the full-scale weight.
      2. I used a 2 kg load cell, which is too much. But I did not have another one. I would expect that a 200 g cell would be more precise for smaller weight.
      3. So far I have no ADC video planned. But you never know...

  • @stationHQ
    @stationHQ 5 лет назад

    Andreas, thanks for this excellent presentation.
    While you provided aparts list for this presentation you missed that for the ESP32 with the built in display.
    Could you please confirm the ESP32 with built-in display
    Keep these presentations coming!
    Cheers

    • @AndreasSpiess
      @AndreasSpiess  5 лет назад

      I have a full video comparing all sorts of ESP32 with displays. There you find the list.

  • @indrawanarifianto5049
    @indrawanarifianto5049 4 года назад

    i think its very intersting, and i have made it with your tutorial, thanks but i just want to ask you, when i try to put a different food ( different weight) i can't get unit again like before, do I have to re-calibrate again in my opinion it is very teleport because I have to reprogram again? is there an event to always know the amount of unity for different types of food which certainly has a different weight ??

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      Of course, the computer has to know the weight per unit if you want to display units. Maybe you store several different values and add a few buttons to chose?

    • @indrawanarifianto5049
      @indrawanarifianto5049 4 года назад

      @@AndreasSpiess thanks you

  • @dmurphydrtc
    @dmurphydrtc 6 лет назад

    To circumvent my original issue (as outlined below), would it be possible to get a copy of the code as presented at the 9 minute mark in your video. I'm only interested in the scales side of things and not OLED or MQTT. Ta.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      You always find a link to the code in the description of my videos

  • @AbiChess.tricks
    @AbiChess.tricks 4 года назад +1

    Hello sir, why cannot we connect the load cell directly to the ADC pin of ESP 32 . Why we need HX711

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      Because of the small voltage differences

  • @RK-pi1kr
    @RK-pi1kr 4 года назад

    "it should not cost more than cat itself".. lolll lol

  • @Johndeerepullingteam
    @Johndeerepullingteam 6 лет назад

    Hello i'am trying this script to feed my chickens. But i can't find the soc/rtc.h library can you post a link? and do you know if its necessary when i use a Lolin nodemcu V3?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      rtc.h is ESP32 specific. Maybe you try with the ESP8266. I do not know if it works, but the chances are high.

  • @franzmaurer2744
    @franzmaurer2744 6 лет назад

    Would like to measure a beehive (25-40kg). Found a set of 4 body scale 50kg load cells (half bridge). Is it correct that when using 4 of these the max weight to be measured is 200kg?
    If true, shouldn't I use other load cells having a 10kg maximum. That would correspond better to the 25-40kg range of the beehive. Problem is that I did not yet find these 10kg load cells in a set of 4.
    What would you choose for a beehive?
    Franz

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Maybe you watch my newest mailbag. there, I had smaller load cells

  • @pepper669
    @pepper669 6 лет назад

    Thanks for the inspiration - once again! I've just ordered the sensor *and* the HX711 board from AliExpress for - dare I say it - €2.61, shipping included as usual.
    Now my question: Can I use it with the ESP8266 (the speed should be about right), or do I need 2 analog inputs - I guess digital ones should do?

  • @thesimbon
    @thesimbon 6 лет назад

    Isn't it better to use a shielded ADC? I'm currently in the process of assembling a uA current meter using the same ADC but shielded version.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I do not know if this helps a lot. I would first reduce the length of the wires from the sensor to the ADC. But it does not hurt.

  • @snandan87
    @snandan87 3 года назад

    Hey, can you please help me which pin for esp32 to use with hx711 sck pin,thanks in advance.

    • @AndreasSpiess
      @AndreasSpiess  3 года назад

      If you google you find many links (also to one of my videos)

  • @roidroid
    @roidroid 6 лет назад +6

    Will you add an unpierced washable inner bowl?

    • @roidroid
      @roidroid 6 лет назад +6

      Well spotted, sigh. It's not uncommon on RUclips for suggestions to be interpreted as direct insults, TBH i sometimes forget whom i need to be careful with and who's safe.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +7

      I wanted to do a project with strain gauges and we have a cat. So, I thought, the video will be much more successful if I combine the two :-) So, I did not care too much about that. I think it would be easy to just put a small washable bowl inside the one I mounted now.
      BTW: The "bowl" is a part of wastewater plumbing left over from my LoRa node project

    • @AndyNicholson
      @AndyNicholson 6 лет назад

      My Personal RUclips Content Checklist:
      1) Cats - check
      2) "Tech" - check
      3) Genuinely interesting topic - check
      4) No "tuber vlogging" - check
      You, Sir, have won!!! I love your videos, thank you for taking the time to make them, and keep them coming :)

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      +Andy: lol and thanks. My list only replaces "Cats" with "no live session".

  • @das250250
    @das250250 6 лет назад

    Can you start including time to complete projects or man hours ? I always like knowing the research and build times

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      I better do not do this... Because I would then see that I do not sleep enough ;-)
      And it is often not possible because it is not a linear process. What I can say is, that I need about 10 hours production time for one 15 minute episode. Without doing the project.

  • @ReevansElectro
    @ReevansElectro 6 лет назад

    I know that the weight scale is temperature compensated but my question is: how do you know the cat's temperature and where do you insert the probe?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I am just a humble Electronics Engineer. So, you have to ask the Animal Doctor ;-) And I am glad I do not need to do this job because I am pretty sure she would not like it as much as eating.

  • @shimon1705
    @shimon1705 4 года назад

    Hello,
    someone would have a diagram how to connect the hx711 to an esp32 devkit v1?

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      You should find it using google, I think. It is an I2C device. DAT is SDA and CLK is SCL.

  • @cody83462
    @cody83462 6 лет назад

    This cat does not look like that project was neccessary.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      +cody83462 :-)) You are probably right. But as an excuse: You have to subtract the long hairs (this is what I always hear from my wife if I complain about the fat cat).

  • @bernard-charlesbarrois5265
    @bernard-charlesbarrois5265 5 лет назад

    Hello Andreas,
    I come back to you because I have problems with the HX711 but this time it's on a Raspberry: the signal has a pulse width apparently longer on a Raspberry than on an ESP32.
    Have you ever tried the HX711 on Raspberry?
    Did you have signal problems?
    thanks for your help

  • @brmamkt
    @brmamkt 4 года назад

    Hello. I would like your help.
    I'm using an Esp32 and the HX711.
    I downloaded the HX7711 library from the link you provided and I also read the other links but I'm not getting it. The readings on the HX711 are always 0 or -1. I've already tested GPIos 26,25,33 and 32 but nothing changes.
    On Arduino Uno it works normal.
    Thank you.

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      Unfortunately I cannot do remote debugging.

  • @donvukovic7440
    @donvukovic7440 6 лет назад

    Very informative video, Thank You.
    As a strain gauge must be ZERO'd before use (or at power up) the power must be applied at all times.
    I see from the data sheet that the gauge amplifier only need 1.5ma, but the ESP32 is much higher.
    Is there a way to shut off the power and still get a correct reading from the strain gauge ?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I am not sure that the gauge has to be powered all the time. These are just 4 resistors. And my bathroom scale lasts forever on a small battery.

    • @donvukovic7440
      @donvukovic7440 6 лет назад

      True, but when it is powered OFF and powered back ON later, the weight must be removed to auto-zero. Like my kitchen scale. I can not leave anything on the scale.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Or you are sure you know nothing changed during the sleep. Then you can calibrate on the last measured weight. (For Beehives, for example where the weight does not move fast)

    • @donvukovic7440
      @donvukovic7440 6 лет назад

      Yes, I have thought of that. The chance of extra weight being added or missing would be an unknown that would be impossible to resolve. I am working on another type of measurement system that would not have that much uncertainty. We'll see how it goes. :-)

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I am always interested in better concepts.

  • @BartHuitsing
    @BartHuitsing 3 года назад

    Will use this project to detect if my chickens are out of water

    • @AndreasSpiess
      @AndreasSpiess  3 года назад +1

      Cool project!

    • @BartHuitsing
      @BartHuitsing 3 года назад

      In the end I used an ESP8266 in combination with two load cells: 1 for the water silo and 1 for the sood silo. I used ESPhome for convenient integration into Home Assistant. Thanks for the inspiration!

  • @waltsteinchen
    @waltsteinchen 6 лет назад

    Hi Andreas, as always really interesting and very well made! .. Thanks a lot ... and btw "deisch I mi oder is dei kaz ziemlich gwambad ?" ;-))

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Sind nur die langen Haare. Drunter ist praktisch nix (das ist die Ausrede meiner Frau wenn sie der Katze nicht widerstehen kann und sie füttert...)

  • @vitormeireles1830
    @vitormeireles1830 3 года назад

    Do I have to calibrate the load every single time that I start running my program?

    • @AndreasSpiess
      @AndreasSpiess  3 года назад +1

      Maybe you can store the calibration in eeprom. Then it is not needed.

  • @nrdesign1991
    @nrdesign1991 5 лет назад

    12:10 What's even better than a straw, is a single spaghetti noodle. It's thinner, and therefore much more interesting.

  • @CrazyCoupleDIY
    @CrazyCoupleDIY 6 лет назад

    Nice one, I dont have a cat but may be some day

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Works also for all kind of other weighing problems...

  • @reeseyme9613
    @reeseyme9613 6 лет назад

    why not use an opamp and use its feedback & input resistor to set a gain of approx. 550 times for the ESP32 ADC full scale of 1.1V?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      This is possible. If you look at the datasheet you see, that the HX711 has some additional features especially for its purpose

  • @ferencszabo3504
    @ferencszabo3504 5 лет назад +1

    Hi Herr Spiess, i wonder how often it is nedded a calibration for the scale? Does it reacts to temperature change?And the fundamental thermodynamics law is that "the cat must stay indoor in the winter! 😁'

    • @AndreasSpiess
      @AndreasSpiess  5 лет назад +1

      There are a few comments from beekeepers which wrote that it has to be adjusted from time to time. There are better elements around, but they are also more expensive.

    • @ferencszabo3504
      @ferencszabo3504 5 лет назад

      Thanks for the answer! Your videos are very interesting and good knowledge resource for us!

  • @ralfjahns3777
    @ralfjahns3777 6 лет назад

    I have read a little about this weight sensors but never really played with one. There should be a lot of problems e.g. repeatability, return to zero after getting bent and value drift if loaded for a long time. Have you had one of these problems in your experiments?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      I did not experiment other than this video. But I can imagine such problems can occur (the sensor is aluminum). And I do not expect a lot of precision or durability of a 3 dollar sensor. On the other hand, I was impressed that it was able to count these pieces quite exactly. Maybe you need a different sensor if you load it with a constant weight.

    • @pfeerick
      @pfeerick 6 лет назад

      If they these electronic strain gauges are prone to that, the manufactures of digital scales seem to have gotten around that somehow, as this is the same sensor/principle that is in most of them... Another device that used them which you might not have expected to see them in was the Nintendo Wii Fit balance board... there was one on each corner/leg, and it used them to measure weight and movement. Surprisingly accurate, and they took a lot of abuse!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I think body scales are not critical because the weight is only on for a few moments. I could imagine that it is a bigger problem if you have the weight always on.