Using a Magnetic Switch (called a Door or Reed Switch) with a Raspberry Pi Pico & Circuit Python

Опубликовано: 06 Март 2023
на канале: Prof. John Gallaugher
3,809
51

Want to tell if a door is open? Use a Magnetic Switch. Sometimes called a Reed or Door switch, these come with two components, a wired piece and a magnet. When the door is open, the switch reports like a button that isn't depressed. When closed, the magnet completes a circuit inside the wired switch and current flows through the switch, reporting like a depressed button. We'll learn about Magnetic Switches, we'll wire one to a Raspberry Pi Pico and read it's state through a CircuitPython program, then we'll issue a challenge to create a door alarm that lights up an LED and plays an alarm sound if a door is open, and stop playing and lighting when the door is closed. We'll show the solution to the challenge at the end of the lesson.
Part of Prof. John Gallaugher's Physical Computing course. For more info, see: https://gallaugher.com/physical-compu...


Смотрите видео Using a Magnetic Switch (called a Door or Reed Switch) with a Raspberry Pi Pico & Circuit Python онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Prof. John Gallaugher 06 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,809 раз и оно понравилось 51 людям.