From the course: Raspberry Pi: GPIO
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
1-Wire introduction
- [Instructor] The Raspberry Pi GPIO is more than a bunch of indiscriminate pins. Many of them have special purposes and in this chapter I'll show you how to use the 1-wire protocol and pulse width modulation. The 1-wire protocol is an ingenious way to send low speed data across one wire. Provide it with voltage and ground and the data flows across the one signal wire. In addition to 1-wire this project uses pulse width modulation. PWM, or pulse width modulation, simulates an analog signal by pulsing a digital signal. There is an excellent description of pulse width modulation in this library, but simply put it's a way to use a digital signal to emulate an analog value. The project we're building uses several DS18B 1-wire temperature sensors connected to an analog voltage meter. If we change the temperature of one of the probes the Raspberry Pi recalculates the average temperature and changes the pulse width modulation…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.