Skip to content

gtbowden/flashLedDisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flashLedDisplay

Minimalist temperature display by flashing one LED.
By flashing a LED, one can display 2 digit temperatures effectively. The user counts the long flashes for tens, and the short dashes for ones. e.g. 26 degrees is dash dash dit dit dit dit dit dit
This Raspberry Pi (RPI) python program reads a Dallas DS18B20 temperature sensor and makes its value known by flashing an LED. For those with poor eyesight like me without my eyeglasses on, it works well from across the room.
First read https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/ds18b20
If you are not using GPIO 21 for the LED, then adjust the value of LED = 21 to the GPIO number you are using

Here is the debug output for the outside sensor reading 19687 raw (1.9687 Celsius) . Each line is a flash of the LED

firstloop for tens digit. i= 10000

Secondloop for ones digit. i= 9687
Secondloop for ones digit. i= 8687
Secondloop for ones digit. i= 7687
Secondloop for ones digit. i= 6687
Secondloop for ones digit. i= 5687
Secondloop for ones digit. i= 4687
Secondloop for ones digit. i= 3687
Secondloop for ones digit. i= 2687
Secondloop for ones digit. i= 1687

2023 6 11 , 18 : 24 inside= 24437 outside= 19687

About

Minimalist temperature display by flashing one LED

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages