🥧Raspberry Pi Multiple DS18B20 Temperature Sensors (2019) 🥧

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • Demo of using a Raspberry Pi to monitor multiple DS18B20 1-wire digital thermometers using a Python script to report.
    Powerwall info page (helpful links & info): bit.ly/2QiAKDi
    Playlist for the DIY Powerwall series:
    • DIY Powerwall
    Affiliate Links to stores and products:
    My Amazon Powerwall list: amzn.to/2C0wW4o
    Keith's EBay Store (pack-building supplies) : ebay.to/2GV3u5D
    Battery Hookup (recycled batteries): bit.ly/battery-...
    Power2Spare (reclaimed Medical Pack batteries): power2spare.ne...
    TH-cam channels you should see:
    AveRage Joe: / @average_joe
    BrunoPOWEEER: / @brunopoweeer
    DIY Tech & Repairs: / @diytechrepairs
    jehugarcia: / @jehugarcia
    HBPowerwall: / @hbpowerwall
    Forums and Facebook Groups
    Second Life Storage: secondlifestor...
    DIY Powerwalls: / diypowerwalls
    K-Weld North America (Keith's store): / kweldnorthamerica
    Jehu's DIY Powerwalls: / jehusdiypowerwalls
    Other Helpful Links:
    DIY Tech & Repairs Battery Processing Flowchart: bit.ly/2SJW6vg
    and finally, if you like what I'm doing here and just want to donate a little do-re-mi, I'll gladly accept at www.paypal.me/.... Thank you!
    #diypowerwall #ccraspberry #canispaterchristmas

ความคิดเห็น • 69

  • @ronm6585
    @ronm6585 5 ปีที่แล้ว +2

    Hope Lexi has a speedy recovery. Thanks for the video.

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว

      She's doing much better and is in day 3 of 5 of the "critical" period. Day 3 of 10 of the cone of shame. I just hope she puts all this together in her head. lol!

    • @ronm6585
      @ronm6585 5 ปีที่แล้ว

      @@CanispaterChristmas Good to hear. :-)

  • @spex357
    @spex357 4 ปีที่แล้ว

    A few days before Christmas my dog Albert had to visit the vets, his heart murmur had changed. After parting with much gold he was booked in to see a travelling xrayer sometime in January as she was in the area. The price was an estimated uptodate laptop of the 14" variety. Sadly on Christmas eve he climbed out of his bed and had three heart attacks and died.
    Luckily that's not the reason i've watched your very informative video, and especially the mention of the waterproof version, thanks.

    • @CanispaterChristmas
      @CanispaterChristmas  4 ปีที่แล้ว

      Thanks! Sorry for your loss. It is tougher when you have to make the decision for them, but even when they choose, it's still painful. I thought it was funny to use the laptop example for a surgery to remove something from Alexi's stomach that she ate. Good news is, she's still as sassy as ever.

  • @DavidLopez-vn4be
    @DavidLopez-vn4be 5 หลายเดือนก่อน

    I hope you are doing much better today sir

    • @CanispaterChristmas
      @CanispaterChristmas  5 หลายเดือนก่อน

      haha She recovered from that, but left us a few years later.

  • @suntzu6122
    @suntzu6122 11 หลายเดือนก่อน

    Thanks the vid! Was looking for this vid!!

  • @johnmayer4747
    @johnmayer4747 5 ปีที่แล้ว +1

    WOW!!! Hope she "Lexi" is doing better. I fed our dog 2 t bone bones. Cost me about a 4 tb hard drive to get her better. Nice vid!

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว +2

      Haha! Thanks! She's doing a lot better after the fluids. We have 10 days of meds, pampering and a cone of shame which she's starting to use as a battering ram. Doc says the first 5 days are critical - make sure she keeps eating well. After that, we should be good. We're halfway through that.

  • @Timwood8
    @Timwood8 5 ปีที่แล้ว

    Hey Jeff, I know how you feel. our dog ate a zinc penny and ended up contracting some sort of pancretitis after having a reaction. I alway tell my wife we spent enough for a small fuel efficient car brand new fully loaded in order to save her. When we got a second dog I made sure that we got pet insurance. It has saved me thousands of dollars to date as we have had the younger dog for like 4 years. it all adds up. Hope Lexi is O.K. and will recover with minimal damage to the wallet.

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว

      Thanks! Haha. Yeah, my wife said insurance from now on. The wallet is resting now, but I do have two others that have been using it quite a bit. lol!

  • @chrisnellis3686
    @chrisnellis3686 5 ปีที่แล้ว +2

    Hey Jeff, sorry to hear about Lexi, hope she recovers soon. Keep up the good work buddy

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว

      Haha. Thanks! She'll be fine. She ate our leather sectional when she was younger so it's a thing with her. lol!

  • @markcremer3954
    @markcremer3954 4 ปีที่แล้ว

    saw lots of YT movies...only youre's workt right away...perfect...

  • @trapp88
    @trapp88 5 ปีที่แล้ว

    Glad Lexi is on the mend. Our oldest dog, a Terrier mix, has just run up a bill of a charging cable (deluxe), plus a stick of RAM. Internal cyst (rear end), and assorted antibiotics and meds for ten days. Wimpy compared to what Lexi, and you guys, are going thru.

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว +1

      Haha. I used the computer analogy in case someone sees this a few years from now and would have something to compare it to. Ah, 2K is nothing? Why is he making such a big deal about it? Plus there's the conversion to other currencies around the globe. Funny that comments are continuing that. LOL! Lexi seems to be doing well. The first 5 days are the critical period. Good as long as she continues to eat and she has been. Even got excited to see some outflow as well so nice to know all the pipes are working. She really hated the cone of shame, but has started using it as a battering ram so I assume she's getting over that. She wears that for 10 days then the staples can come out. She has about a 6-inch scar on her belly. Kids!

  • @geirha75
    @geirha75 3 ปีที่แล้ว

    Excellent update on your dog.

  • @Tigs62
    @Tigs62 5 ปีที่แล้ว

    Hi Jeff, Hope Lexi is better now. Animals are such a worry.
    I was really happy to see this project, because i want to put up a load of temperature sensors in our factory.
    However, i have a few questions.
    Would the readings be greatly affected if the cables between the Pi and the sensors were very long, like maybe 30 meters long to the first sensor?
    Is there a nice easy way to output the readings to a web page?
    Thanks Jeff and keep up the good work.

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว

      Haha. Thanks! She's fine now. I'd have to check the data sheet on the sensor to see how far they can transmit the data and there are probably ways to extend that if needed. Yes, a web page could easily be created by the Python script and even served by the Pi if needed (need to load up Apache or nginx). If you have a web dev, they could do something auto-updating with javascript too! Depending on the number of sensors you string together, you'll probably want to use a USB SATA drive instead of an SD card as that many readings will probably kill an SD card pretty quickly (each sensor creates a write about once per second). However, you could get a high-endurance SD card and see how long it lasts before going through all that. Just make sure you back it up. :)

  • @bhc1892
    @bhc1892 ปีที่แล้ว

    I know this is a few years old but I'm curious why you believe this is stressful to the SD card. I don't see anything in your script that generates traffic to the card. Tempfile goes to a kernel module, so that's done entirely in memory, and the only other io goes to stdout, which is also buffered through memory.

    • @bhc1892
      @bhc1892 ปีที่แล้ว

      Also, thanks for this video. My project is a temperature-controlled cabinet I use in an airplane hangar to protect batteries from freezing in the winter. The pi turns a heat lamp off and on to maintain 65 degrees. That's been working for years, but this year I'm dividing it up into sections so I can store cold drinks in the hangar without having them freeze. The bottom of the cabinet will be maintained at 40 degrees for drinks and the top at 65 for batteries, hence the need for two sensors. I'll think of your helpful video every time I open one!

    • @CanispaterChristmas
      @CanispaterChristmas  ปีที่แล้ว

      LOL! AWESOME! I may have been too quick and not realized it was stored in RAM. If that's the case then you are correct.

  • @elpa0002
    @elpa0002 ปีที่แล้ว

    hi Jeff, i try to build something similar to yours so to monitor temperatures of 4 boilers. Hopefully having the data on a webpage so to check over internet. Since the only knowledge i have is my personal interest in such things i am watching many similar videos and reading many articles trying to figure out how to implement it. in general terms i know that i need to install node-red (and/or mosquito ?) influxdb and grafana on my raspberry 3b. to be honest i dont know if this/which is the most efficient way to implement my project and found nothing about how the sesnor data is published/fed etc. For sure after watching your videos i feel i am a step closer . thank you in advance.

  • @darrella5677
    @darrella5677 4 ปีที่แล้ว

    My Jack Russel Cassie did the same thing she ate the white stuffing out of a toy and it wouldn't pass, cost me 1300 dollars to get the surgery for her. Anybody with dogs don't by toys with stuffing in them just get the ones without.

    • @CanispaterChristmas
      @CanispaterChristmas  4 ปีที่แล้ว

      HAHA! Normally, toys just get shredded, but she ate these. Probably so her sisters couldn't get them. Seems to have no ill effects after this incident. I wouldn't say she learned her lesson though. lol!

  • @vigneshramji5112
    @vigneshramji5112 ปีที่แล้ว

    Is 28 the maximum supported sensors on the 1-wire bus? Curious to know if there is anyway to have more devices hooked up to the raspberry pi? Appreciate your response

    • @CanispaterChristmas
      @CanispaterChristmas  ปีที่แล้ว

      I'm not aware of a limit on the bus protocol, but there may be a limit based on the speed of the Pi - how quickly the code can read them within a certain time frame. You may have to experiment a little. 😂

  • @JustinNovack
    @JustinNovack 3 ปีที่แล้ว

    @8:16 You are modprobing w1DASHgpio, but you have w1UNDERSCOREgpio in etc/modules.

    • @CanispaterChristmas
      @CanispaterChristmas  3 ปีที่แล้ว

      The system created the 2nd folder so I can only assume modprobe did that.

  • @winfredadrah2941
    @winfredadrah2941 2 ปีที่แล้ว

    Hi, I want to use the waterproof sensor, where do i fix the wires? I was able to do it for only one

    • @CanispaterChristmas
      @CanispaterChristmas  2 ปีที่แล้ว

      Not sure I understand the question. Can you give me a little more information?

    • @winfredadrah2941
      @winfredadrah2941 2 ปีที่แล้ว

      @@CanispaterChristmas the waterproof sensor have red, yellow and black wires. How do i fix it on the breadcrumb?

    • @CanispaterChristmas
      @CanispaterChristmas  2 ปีที่แล้ว

      If these are the ones you have (amzn.to/37039N2) there is a diagram for the pinout. If you need to put them on the breadboard, you might want to attach it to something like these (amzn.to/3uoUYCA). You can rip three wires off the bundle, cut them and attach them to the sensor wires.

  • @robertlane6675
    @robertlane6675 4 ปีที่แล้ว

    I am looking at using these 1wire sensors to monitor freezers at the local food pantry that I volunteer at. Easy enough, we have 6 or so freezers all in one room and I am using textbelt and curl to send high temperature alerts. The problem is that sometimes they shut a freezer down if we are low on product. I am looking for a good way to disable monitoring a freezer that doesn't involve them calling me to modify the pi. I was thinking of having a switch by each freezer that would just detach the 1wire sensor from the PI and let the script error out for that sensor. So far my testing looks like this will work but was curious if anyone else had other ideas. I like to keep things simple, i am okay with a PI but prefer to do things in bash scripts as I can understand them easier. Thanks

    • @CanispaterChristmas
      @CanispaterChristmas  4 ปีที่แล้ว

      I don't know if that's the "right" way to do it. Just make sure it works when you switch it back on.

  • @myinfo7114
    @myinfo7114 5 ปีที่แล้ว

    Make an array of temp sensors of ANY SIZE and use the photon-pixel coupling method, it is a new approach in science for sampling an unlimited number of analog sensors in parallel.

  • @HuguesD
    @HuguesD 5 ปีที่แล้ว

    All of this would be easy without these awful linux commands if you used an arduino board (and cheaper too). Why a raspberry pi ?

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว +1

      Haha! “Awful Linux Commands”! I had the extra Pi and am comfortable with Linux. I give you the commands so they aren’t that bad. A little file editing, some directory listings and a couple of kernel commands... Lastly, I have Pi’s and ESPs feeding Home Assistant and find the Pi MQTT client is slightly more robust. Oh, and I had the Python script example too. I’m not thrilled with the amount of writes this setup does (especially with a large number of sensors) to the SD Card so this is probably a good candidate for a SATA drive for the Pi. But like I said, an Arduino could do this same thing. There’s probably a sketch available too. If I used an Arduino, some Pi person would be asking the same question. LOL! I’ll try to do both next time. Haha.

  • @SidebandSamurai
    @SidebandSamurai 5 ปีที่แล้ว

    Why not use Batrium BMS?

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว

      I will. This was just an idea for a backup I wanted to look into and it has applications outside the powerwall community (eg: home automation). Plus, (as far as I currently understand it) a Batrium provides monitoring only and won't shut everything down on it's own. It has an alarm output, but you still need to do something with that on your own. Let me know if my understanding is incorrect.

    • @SidebandSamurai
      @SidebandSamurai 5 ปีที่แล้ว

      @@CanispaterChristmas I am not sure what you mean by shutdown. The longmon has the capability of fully monitoring pack voltage. Preventing over discharge or over charge. It will balance the charge between each pack. It can also through a shunt monitor the entire power wall preventing over discharge or over charge of the entire battery system. I am not sure what your goal is in terms of safety but I would direct you to any and all data sheets that are located on their website. I too am learning about this so I am the wrong person to ask questions like this. There is a channel called "average Joe". He is using Batrium on his "power rack". You might check his videos out. BTW. He has a couple of kitties that show up on his episodes from time to time. Glad your dog is doing much better. One of my cats ate some tinsel off the tree and had the same procedure done.

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว

      Ah. The longmons keep packs balanced under normal conditions. The Watchmon has an "alarm" output in case the longmons aren't up to the task. My safety concern is that if you have solar and the battery is fully charged, the longmons may not be able to burn off enough energy and BOOM!💥 I found a shunt trip (electrically trippable circuit breaker) [they have some on Batrium's web site, but I found one myself] that will do what I want which is completely yanking the battery out of the system if the Batrium goes into alarm mode. I'll talk about that in a future episode. Ah Joe! Yeah, very familiar with his channel. Great guy! "HORACE!" Haha, sorry to hear about your cat. Not sure if Lexi learned a lesson or enjoyed all the extra attention she was getting.

    • @SidebandSamurai
      @SidebandSamurai 5 ปีที่แล้ว

      @@CanispaterChristmas I believe that is the job of the charge controller. It takes the D.C. energy from your panels and directs it to the batteries. Monitoring battery charge and routing energy to your inverter if the batteries are charged. Average Joe has a video on how Batrium performs all that monitoring. I don't remember you do have solar pannels?

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว

      I don't have any panels... Yet. Mwahahah. True that under normal circumstances all this goes as you mention. I'm taking a bit more paranoid approach and trying to deal with the "what if". Joe does mention adding a shut trip in one of his videos I saw this weekend. Can't remember if it was right before he added the Batrium or the one he released Sunday. I had queued several up 'cause he hadn't posted anything and I was going back through the catalog. :)

  • @roystervi
    @roystervi 4 ปีที่แล้ว

    hi do you know why am getting "00-400000000000 00-800000000000 w1_bus_master1"
    I know the
    DS18B20 Temperature Sensors is good because it work on a nodemcu fine. I am trying to move to a pi3 to get off wifi..
    thanks
    "

    • @CanispaterChristmas
      @CanispaterChristmas  4 ปีที่แล้ว

      No, but a Google search revealed this thread that might help. www.raspberrypi.org/forums/viewtopic.php?t=106041

    • @SireSquish
      @SireSquish 4 ปีที่แล้ว

      You need a pullup resistor - that might explain your problem.

    • @roystervi
      @roystervi 4 ปีที่แล้ว

      @@SireSquish I tried a 4.7 resistor between 3v and the gpio but was still getting the error...its all good because I gave up

    • @SireSquish
      @SireSquish 4 ปีที่แล้ว

      @@roystervi I mentioned that because I had the exact same issue that you describe, and I fixed it with A, the resistor and B not being a knobhead and having my siignal and +3.3 (or +5) line reversed.

    • @SireSquish
      @SireSquish 4 ปีที่แล้ว

      also did you make sure that you had 1wire enabled? (either via raspi-config -> interfacing options OR via the /boot/config.txt and entering dtoverlay=... line)

  • @HuguesD
    @HuguesD 5 ปีที่แล้ว

    You need a relay to open/close your charging circuit when the parameters are out of wack. Like this one on amazon for ex:www.amazon.com/Heavy-Split-Charge-Relay-RL180/dp/B073H4RBFN/ref=sr_1_3?ie=UTF8&qid=1550426376&sr=8-3&keywords=100A+relay

    • @CanispaterChristmas
      @CanispaterChristmas  5 ปีที่แล้ว

      I thought about a relay, but having something energized all the time doesn't seem like the best solution to me, but it might be. I'm hoping to find a circuit breaker I can trip electronically. Just haven't found what I'm looking for yet. Hoping someone can point me toward one. I'll post on the forums.

    • @SireSquish
      @SireSquish 4 ปีที่แล้ว

      @@CanispaterChristmas I curious about why this would be a problem. What is it about it being energized that's the problem? Would you not use the NO contacts on your relay, so that a power failure leads to open circuit OR is it about using some amount of power to hold the relay closed?

    • @CanispaterChristmas
      @CanispaterChristmas  4 ปีที่แล้ว

      @@SireSquish You are correct. In a later video, I found what I was looking for - a shunt trip. No power draw until I need to trip the breaker.