Raspberry Pi - GPIO & Python (7/9) - Temperature sensor

preview_player
Показать описание
Getting started with GPIO and Python.
Рекомендации по теме
Комментарии
Автор

Great advice from Justin Hugill.
I too almost burnt up my temperature sensor... but for me it was following the comments. In my experience if you do it exactly as shown in the video that is the correct way.

AlexBurns
Автор

warning ! the closeup on sensor at 3:40 shows wrong polarity !!! pin 1 and 3 are reversed. I almost burn the thing up !

guillaumepetitcollin
Автор

A very well orchestrated presentation of Raspberry Pi for beginners like myself.  You are distinct in words used and explanatory on processes taken.  I'm new to this, have a interest, will continue learning about it and have added you to my favourites list.  Thank You!

jb
Автор

Now fixed. Applied latest Raspian and latest Firmware. Plus changed all wires on board. Seems to have been a number of issues at once!

Tony-bzmf
Автор

For anyone struggling getting this working. The video wasn't the most helpful.
1) When connecting to the gpio board, this needs connecting to gpio 04.2) if like me you follow the tutorial and when you run ls -l the thermometer isn't showing, the video doesn't help with what to do. The fix for mine on Rpi2 was simple:

Sudo nano /boot/config.txtAdd the following line at the bottom dtoverlay=w1-gpioCtrl X and Y to saveReboot the PiHopefully this will fix as it did with mine.

justinhugill
Автор

Great video, do I need a resistor to run mine??

chileanexperiment
Автор

Hello,

I am getting started with electronics, can you please explain why you hook up a 3.3V line to the data pin? I see it has a (if I'm not mistaken) 4.7k resistor and I know the GPIO high state is on 3.3V but what kind of sorcery happens behind the scenes? Thanks

pilottk
Автор

Can you suggest me, what type of wire/cables should I use to expand the distance of sensors from pi(distance more than 5m) so that it would work efficiently?

sahilharit
Автор

Hi just wondering how would you get the temp display up on a lcd 16x2, I have lcd connected up and test done but sending temp changes to lcd I cant seem to get.
Thanks

nickycummins
Автор

what if I wanted to put the temperature into coffee to determine what temperature it is to put into raspberry pi? How would I be able to do that?

Kushiwawah
Автор

how about weight scale? can i need a lil favor here? thank u

CBJemat
Автор

My code keeps displaying the same temperature, "(85, 105)". Any ideas what i'm doing wrong? Thanks :)

nickbuckham
Автор

how can I send the output temperature to an email address??

tulionunez
Автор

Where in the code does it say that it should read from pin 4? It works, but why ? :D

rickfalk
Автор

I love the videos, but with this video, I'm missing which gpio pin you connected the data pin to. Can you tell me which it is?

Anyway, excellent videos!

ABatorfi
Автор

thank you your tutorial, we want to more tutorail, please give up
Reply

jayanthasaranga
Автор

a pity that every reading apparently has to be written to a file that then should be read as it contributes to card wear.
Don' t understand why the DS18B20 values can' t be read directly into variables. It is possible with the DHTxx series as well and in fact anything that can be put in a file can be put into a variable as well

edw
Автор

Is it possible for you to make a quick update video of the temperature sensor controlling a GPIO pin. For example  if temp too hot turn on GPIO 17  else  if temp too low turn off GPIO 17. Many Thanks

winchy
Автор

If devices = 0
Open config file: terminal then 'sudo nano /boot/config.txt'
and add at the bottom of the config file 'dtoverlay=w1-gpio'
Reboot and try again.

unconsciouslyincompetent
Автор

So if anyone knows.... I am getting this error

device_folder = glob.glob(base_dir + '28*')[0]
IndexError: list index out of range

thediltarget
join shbcf.ru