IFB102 Lecture Notes - Lecture 11: Photodetector, Passive Infrared Sensor, Raspberry Pi

103 views4 pages
20 Jul 2018
School
Course
Professor

Document Summary

Lecture 11 - advanced topics cont. (as required lecture) 10:05 am: continuing from last week, gpio. I2c on rpi: sensors, lcds, hardware interfacing. I2c is available on pins 3 and 5 see diagram: whilst easy to connect, the encoding of data can be fiddly so i recommend following an example or finding some code for your sensor. There is code on blackboard for all the sensors available to borrow. How to enable i2c on raspberry pi: tutorial on setting up i2c https://learn. adafruit. com/adafruits-raspberry-pilesson-4-gpio- setup/configuring-i2c, use raspi-config to enable i2c, enable under advanced options sudo raspi-config, tools to look at i2c devices sudo apt-get install i2c-tools. For old documentation: beware that i2c bus has changed on different version of the board old versus new vs model a model b, the way you enable i2c has also changed. Simple sensors and actuators: led: small coloured lights, buttons, pir sensor (passive infrared sensor detects movement e. g. for security systems, buzzer.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers