Remote LED Control With Raspberry Pi, Python gpiozero/pigpiod (MCP3002 ADC + Potentiometer + Button)

  Переглядів 3,066

M Heidenreich

M Heidenreich

День тому

This tutorial demonstrates the basics of remote GPIO access, where I demonstrate how to control components attached to a Raspberry Pi from another Pi device across a LAN.
While there are 2 Raspberry Pi devices involved and the electronic components are installed across 2 breadboards, it all looks like a single system from the programmer's side (apart from very simple initial setup) and the programming is no different that standard GPIO approach when only one Raspberry Pi is involved. This method can be applied to an arbitrary number of Raspberry Pi devices - more than 2!
0:00 Intro
0:21 Basic Circuit - LED Switch (Just One Raspberry Pi)
0:53 Secondary (Remote) Raspberry Pi Setup
1:30 PiGPIO Library and Daemon
2:10 Remote Access Code Update
3:24 Updated Circuit - Digital LED Dimmer
4:24 LED Dimmer Code
6:01 Code Update - LED Dimmer and Switch Control
7:06 Final Code incl. PWM Compensation
7:43 Wrap -Up
Code download: github.com/mheidenreich/Remot...
Erratum:
Line 27 of the finished code (light.source_delay = 0.02) sets the LED update interval to 20ms and not 2 ms. I indicated that in my narration incorrectly.
Disclaimer:
"Raspberry Pi" and the distinct logo are a trademark of the Raspberry Pi Foundation.
Music: Wrong by Dan Henig, UKposts Music Library

КОМЕНТАРІ
Drift-Free Joystick with Raspberry Pi (Python, gpiozero, ADS7830 ADC)
8:10
Blinking LED Raspberry Pi Tutorial
12:32
Sam Westby Tech
Переглядів 18 тис.
The World's Fastest Cleaners
00:35
MrBeast
Переглядів 100 млн
Зомби Апокалипсис  часть 1 🤯#shorts
00:29
INNA SERG
Переглядів 4,7 млн
Smarter than a Smart TV! (Raspberry Pi Inside)
9:10
Jeff Geerling
Переглядів 1,9 млн
Google Data Center 360° Tour
8:29
Google Cloud Tech
Переглядів 5 млн
Raspberry Pi - Control GPIO Pins with GPIOzero Library
19:15
Eli the Computer Guy
Переглядів 16 тис.
How To Control A Standard Servo With Raspberry Pi
7:40
Core Electronics
Переглядів 70 тис.
PiicoDev Potentiometers | Guide for Raspberry Pi
12:04
Core Electronics
Переглядів 2,5 тис.
HUAWEI БЕЗ GOOGLE: ЕСТЬ ЛИ ЖИЗНЬ? | РАЗБОР
11:49
Samsung or iPhone
0:19
rishton_vines😇
Переглядів 717 тис.
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Переглядів 1 млн