DIY Aquarium Controller - Measuring Temperature with DS18B20 Probe
Go check out Yohan M and show him some support! • Diy light Build |:| PART 1 ReefBuilders Article on Cerebra 2 https://reefbuilders.com/2017/10/19/c... ==================================================== Amazon Affiliate Store Links*: ==================================================== DS18B20 Temperature Probe (5-pack) https://www.amazon.com/gp/product/B00... 10k Ohm Resistors (100-pack) https://www.amazon.com/Projects-100EP... We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. #===================================================== #Source code: #(Based on Adafruits DS18B20 tutorial) #https://cdn-learn.adafruit.com/downlo... #===================================================== import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folder = glob.glob(base_dir + '28*')[0] device_file = device_folder + '/w1_slave' def read_temp_raw(): f = open(device_file, 'r') lines = f.readlines() f.close() return lines def read_temp(scale): lines = read_temp_raw() while lines[0].strip()[-3:] != 'YES': time.sleep(0.2) lines = read_temp_raw() equals_pos = lines[1].find('t=') if equals_pos != -1: temp_string = lines[1][equals_pos+2:] temp_c = float(temp_string) / 1000.0 temp_f = temp_c * 9.0 / 5.0 + 32.0 if scale == "F": return "{:.1f}".format(temp_f) if scale =="C": return "{:.1f}".format(temp_c) else: return temp_c, temp_f while True: print(read_temp("")) time.sleep(1)
![DIY Reeftank LED from Spare Parts - Intro [Part 1]](https://i.ytimg.com/vi/LcpaQ3hqoV0/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCNQlI-w_pGHcACKQwI6JdZE4UX4g)
DIY Reeftank LED from Spare Parts - Intro [Part 1]

Waterproof Temperature Sensor With ESPHome + Home Assistant!

DIY Aquarium Controller - Introducing the Reefberry Pi!

DIY Aquarium Controller - Reefberry Pi June 2019 Update

REEF-PI DIY Opensource Aquarium Controller- Aquashella Orlando 2022

What Happened to the Cox .049? | The Engine That Couldn’t Survive Modern Childhood

I Hacked This Temu Router. What I Found Should Be Illegal.

DS18B20 Fake Sensor That Works!

I Gave ChatGPT a Body

Building your DS18B20 digital temperature sensor

Raspberry Pi Robotics #1: GPIO Control

My DIY Solar Generator Is WAY More Powerful Than I Thought..

Introduction To Breadboarding & Circuits | Raspberry Pi Pico Workshop: Chapter 2.3

DS18B20 Temperature Sensor Needs No Resistor

Pi Day Update - Reefberry Pi DIY Aquarium Controller

Their Junior Tech Destroyed This $2000 Gaming Laptop In 60 Seconds!

The Deadliest Weapon of the Ancient World

Temperature Sensor (DS18B20) Raspberry Pi

Raspberry Pi: Using GPIO Inputs

