From the course: Raspberry Pi: GPIO

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

1-Wire sensors in depth

1-Wire sensors in depth

- [Instructor] In this project, we use the 1-Wire data protocol to work with temperature sensors. This protocol isn't in common use, but you may find it in certain applications. The 1-Wire protocol is an ingenious way to send low-speed data across one wire. All you have to do is provide it with voltage and ground, and then the data can flow across that single additional wire. There are a few other things you'll want to know. Let's break these out and look at the details. I've mentioned that 1-Wire is low-speed. By low-speed, I mean it can gather and transmit data somewhere between 16 and 64 kilobits per second. In comparison, a standard serial port can provide 25 megabits per second, or the equivalent of about 25,000 kilobitsa per second. That might seem unusable, but keep in mind, we're using this with a Raspberry Pi running Raspbian, a Linux operating system. Linux generates frequent interrupts and is generally a bad…

Contents