Projects/HotTubTemp: verschil tussen versies
Uit Hackerspace Bitlair
< Projects
kGeen bewerkingssamenvatting |
kGeen bewerkingssamenvatting ย |
||
| Regel 1: | Regel 1: | ||
{{Project | {{Project | ||
|name=HotTubTemp | |name=HotTubTemp | ||
|start= | |start=2021-07-04 | ||
|contact=Eightdot | |contact=Eightdot | ||
|info=CampZone2019 badge thermometer | |info=CampZone2019 badge thermometer | ||
Huidige versie van 10 jan 2026 16:42
| Project: HotTubTemp | |
|---|---|
| Beschrijving | CampZone2019 badge thermometer |
| Start | 2021-07-04 |
| Contact | Eightdot |
| Status | Finished |
Hardware
- CampZone2019 badge 'I-PANE'
- Waterproof DS18B20 with 1K5 pullup on expansion VCC,GND,SDA
- Case
- M12 Gland
[picture]
Firmware Setup
cp -r firmware/python_modules/sha2017/onewire firmware/python_modules/campzone2019/
Software
import onewire ds=onewire.ds18x20.DS18X20(onewire.OneWire(machine.Pin(4))) roms=ds.scan() def update(): global ds global roms rgb.clear() rgb.text(str(system.get_vcc_bat())) time.sleep(0.5) ds.convert_temp() rgb.clear() rgb.text(str(ds.read_temp(roms[0]))[0:5]) while(1): update() time.sleep(10)