RPi 06 - Counter Using Interrupt
Автор: tsbrownie
Загружено: 2019-03-18
Просмотров: 6609
Count people through a door, animals through a space, products on an assembly line... This experiment uses the same Infrared LED and Sensor setup as before to detect inputs on a Raspberry Pi using interrupts in Python 3.
A relatively simple python program allows you to power the LED and use the photodiode to detect any interruption of the IR beam. Can be used for counting, detection of objects, location of moving parts, etc.
MATERIALS
IR photodiode
IR LED
330 ohm resistor x2
1M ohm resistor
Jumpers
Breadboard
Pi
WARNING: Warning: mis-wiring or mis-programming your Pi or miswiring of accessories can ruin the Pi and accessories.
Information/drawings offered as is. Use at your own risk. If you don't know, learn first.
Re-edit
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: