SlideShare a Scribd company logo
1 of 21
Download to read offline
1
Six Nations Polytechnic
STEM/STEAM - Tech Wednesdays
Feb 2018 – Class #1
Markus van Kempen
E: mvk@ca.ibm.com
T: @markusvankempen
2
https://en.wikipedia.org/wiki/Six_Nations_Polytechnic
3
Lecture 1 - February 2018
Creating
Infrared Breaker aka
Burglar Alarm
4
•  We building a Burglar Alarm using a Infrared Beam
•  When the Beam is broken we will
•  Change the ble Candle
•  Green OK,
•  Red = somebody broker the Beam – Alarm !!!
Objective
5
How does it work?
Infrared
Emitter
(Clear LED)
IR Receiver
(Dark LED)
Invisible Infrared Beam
6
How does it work?
Infrared
Emitter
(Clear LED)
IR Receiver
(Dark LED)
Turn RED
7
•  Breadboard
•  3 Resistors (2x 330 Ohm 10KOhm)
•  IR Emitter, Receiver
•  1 Red LED for Testing
» 
The pieces
- Materials should be in your box
Cables
8
Pieces we need – these should be in your PI Box
9
•  A Diode (LED) lets the electricity thru only in one way
•  Use Red Cable for the + (Power) and Black or Blue for Ground/GND
•  The LED’s have a long and a short end ! Connect Long end with Power +
•  For the IR Received we will use the short END
•  Mark with tape so you know which is the 330Ohm Resistors and which is 10KOhm
Things to Remember!
10
Electrical Schema
11
•  We will start with just the RED led .
Test setup
12
•  We will show you the configuration in person
•  Video on YouTube – mvk channel
The result
13
•  Connect the output to the PI (yellow cable to the far left pin)
•  Fire up your Node-RED in a browser
•  http:// snp??.mybluemix.net/red)
•  Get the code from Github see bookmark on browser
•  https://github.com/SixNationsPolytechnic
–  Userid snpkid?? /Password
–  See 2018-01-BurglarAlam Folder
•  https://github.com/SixNationsPolytechnic/2018-01-BurglarAlam/blob/master/BurglarAlarm.flow
•  Make sure to view in raw mode
–  Remember CTRL-A, CTRL-C and CTRL-V
–  Import the Node-RED flow into Node-RED
Step Two
14
Once Imported you should see the following flow
15
•  Adjust the Candle Number to your number
•  Make sure you get Events/Message from the PI/Burglar Alarm
•  Add the command to set the Candle to RED when the IR Beam is broken
Your Task Adjustments Flow.
16
Setting the Light based on Events e.g when the Infra RED Beam is broken
MQTT
Code ble
Pi Send Ble command
to set color to red
Bluemix
Code
17
•  Back up your code into your github folder use your name or group number
•  Delete the Node-RED flow
•  Disassemble the breadboard and put the pieces back into the box
Last step
18
Node-Red Flow & Presenation for the class are at
https://github.com/SixNationsPolytechnic/
The IoT Code for the PI and Candle can be found here
https://github.com/markusvankempen/playbulb
Videos
https://github.com/SixNationsPolytechnic/
Reference
20
Six Nations Polytechnic
STEM/STEAM - Tech Wednesdays
Feb 2018 – Class #1
Markus van Kempen
E: mvk@ca.ibm.com
T: @markusvankempen
21
Burglar Alarm
Setting up the
electronics

More Related Content

Similar to SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday

PLC for Home Automation and How to Make It a Honeypot
PLC for Home Automation and How to Make It a HoneypotPLC for Home Automation and How to Make It a Honeypot
PLC for Home Automation and How to Make It a HoneypotPhilippe Lin
 
DTMF based Home Applicance System
DTMF based Home Applicance SystemDTMF based Home Applicance System
DTMF based Home Applicance SystemDaksh Raj Chopra
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshopKedarv
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1Felipe Belarmino
 
Arduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of MoratuwaArduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of MoratuwaAbarajithan Gnaneswaran
 
Embedded systems basics 8051 - project approach
Embedded systems basics 8051 - project approach Embedded systems basics 8051 - project approach
Embedded systems basics 8051 - project approach hybrald industries
 
Arm cross development_with_eclipse
Arm cross development_with_eclipseArm cross development_with_eclipse
Arm cross development_with_eclipseWalmar de Paula
 
Introduction to Arduino with ArduBlock & SparkFun LilyPad
Introduction to Arduino with ArduBlock & SparkFun LilyPadIntroduction to Arduino with ArduBlock & SparkFun LilyPad
Introduction to Arduino with ArduBlock & SparkFun LilyPadBrian Huang
 
Kathryn McElroy: Building IoT Prototypes with Arduino
Kathryn McElroy: Building IoT Prototypes with ArduinoKathryn McElroy: Building IoT Prototypes with Arduino
Kathryn McElroy: Building IoT Prototypes with ArduinoJordan Bresler
 
Industrial control cases with MATLAB code in PLCs, using PROFINET's "oversamp...
Industrial control cases with MATLAB code in PLCs, using PROFINET's "oversamp...Industrial control cases with MATLAB code in PLCs, using PROFINET's "oversamp...
Industrial control cases with MATLAB code in PLCs, using PROFINET's "oversamp...PROFIBUS and PROFINET InternationaI - PI UK
 
Team 2 Final Presentation 12-7 download
Team 2 Final Presentation 12-7 downloadTeam 2 Final Presentation 12-7 download
Team 2 Final Presentation 12-7 downloadCassandra A. Appleton
 
Blinky 101 with Arduino v1.0b3 (FastLED)
Blinky 101 with Arduino v1.0b3 (FastLED)Blinky 101 with Arduino v1.0b3 (FastLED)
Blinky 101 with Arduino v1.0b3 (FastLED)kriegsman
 
Building the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry PiBuilding the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry PiNeil Broers
 
Spark - pre-#startathon Workshop 2014
Spark - pre-#startathon Workshop 2014Spark - pre-#startathon Workshop 2014
Spark - pre-#startathon Workshop 2014Kenneth Lim
 
DIY Home Weather Station (Devoxx Poland 2023)
DIY Home Weather Station (Devoxx Poland 2023)DIY Home Weather Station (Devoxx Poland 2023)
DIY Home Weather Station (Devoxx Poland 2023)Ryan Cuprak
 

Similar to SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday (20)

PLC for Home Automation and How to Make It a Honeypot
PLC for Home Automation and How to Make It a HoneypotPLC for Home Automation and How to Make It a Honeypot
PLC for Home Automation and How to Make It a Honeypot
 
DTMF based Home Applicance System
DTMF based Home Applicance SystemDTMF based Home Applicance System
DTMF based Home Applicance System
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1
 
Intro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptxIntro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptx
 
Arduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of MoratuwaArduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of Moratuwa
 
Embedded systems basics 8051 - project approach
Embedded systems basics 8051 - project approach Embedded systems basics 8051 - project approach
Embedded systems basics 8051 - project approach
 
Arm cross development_with_eclipse
Arm cross development_with_eclipseArm cross development_with_eclipse
Arm cross development_with_eclipse
 
Introduction to Arduino with ArduBlock & SparkFun LilyPad
Introduction to Arduino with ArduBlock & SparkFun LilyPadIntroduction to Arduino with ArduBlock & SparkFun LilyPad
Introduction to Arduino with ArduBlock & SparkFun LilyPad
 
Kathryn McElroy: Building IoT Prototypes with Arduino
Kathryn McElroy: Building IoT Prototypes with ArduinoKathryn McElroy: Building IoT Prototypes with Arduino
Kathryn McElroy: Building IoT Prototypes with Arduino
 
IoT Aquarium 2
IoT Aquarium 2IoT Aquarium 2
IoT Aquarium 2
 
Industrial control cases with MATLAB code in PLCs, using PROFINET's "oversamp...
Industrial control cases with MATLAB code in PLCs, using PROFINET's "oversamp...Industrial control cases with MATLAB code in PLCs, using PROFINET's "oversamp...
Industrial control cases with MATLAB code in PLCs, using PROFINET's "oversamp...
 
Team 2 Final Presentation 12-7 download
Team 2 Final Presentation 12-7 downloadTeam 2 Final Presentation 12-7 download
Team 2 Final Presentation 12-7 download
 
MILITARY ROBOT BASED ON IOT
MILITARY ROBOT BASED ON IOTMILITARY ROBOT BASED ON IOT
MILITARY ROBOT BASED ON IOT
 
Arduino
ArduinoArduino
Arduino
 
Blinky 101 with Arduino v1.0b3 (FastLED)
Blinky 101 with Arduino v1.0b3 (FastLED)Blinky 101 with Arduino v1.0b3 (FastLED)
Blinky 101 with Arduino v1.0b3 (FastLED)
 
Building the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry PiBuilding the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry Pi
 
Spark - pre-#startathon Workshop 2014
Spark - pre-#startathon Workshop 2014Spark - pre-#startathon Workshop 2014
Spark - pre-#startathon Workshop 2014
 
Lab2ppt
Lab2pptLab2ppt
Lab2ppt
 
DIY Home Weather Station (Devoxx Poland 2023)
DIY Home Weather Station (Devoxx Poland 2023)DIY Home Weather Station (Devoxx Poland 2023)
DIY Home Weather Station (Devoxx Poland 2023)
 

More from Markus Van Kempen

MyHackMIT2023-ChallengetoTheStudents.pdf
MyHackMIT2023-ChallengetoTheStudents.pdfMyHackMIT2023-ChallengetoTheStudents.pdf
MyHackMIT2023-ChallengetoTheStudents.pdfMarkus Van Kempen
 
Ways Artificial Intelligence Can Improve Your Business with IBM Watson
Ways Artificial Intelligence Can Improve Your Business with IBM WatsonWays Artificial Intelligence Can Improve Your Business with IBM Watson
Ways Artificial Intelligence Can Improve Your Business with IBM WatsonMarkus Van Kempen
 
SNP STEAM Academy 2017 class 3 - -ISS #TechWednesday
SNP STEAM Academy 2017 class 3 - -ISS #TechWednesdaySNP STEAM Academy 2017 class 3 - -ISS #TechWednesday
SNP STEAM Academy 2017 class 3 - -ISS #TechWednesdayMarkus Van Kempen
 
Animal tracking using Watson IoT and LoraWAN
Animal tracking using Watson IoT and LoraWANAnimal tracking using Watson IoT and LoraWAN
Animal tracking using Watson IoT and LoraWANMarkus Van Kempen
 
SNP STEAM Academy 2017 Class #12
SNP STEAM Academy 2017 Class #12SNP STEAM Academy 2017 Class #12
SNP STEAM Academy 2017 Class #12Markus Van Kempen
 
World of Watson Ask Me Anything About IoT
World of Watson Ask Me Anything About IoTWorld of Watson Ask Me Anything About IoT
World of Watson Ask Me Anything About IoTMarkus Van Kempen
 
SNP STEAM Academy 2017 Class #1
SNP STEAM Academy 2017 Class #1SNP STEAM Academy 2017 Class #1
SNP STEAM Academy 2017 Class #1Markus Van Kempen
 
Using Alexa, IFTTT and Watson IoT Platform to control ble devices
Using Alexa, IFTTT and Watson IoT Platform to control ble devicesUsing Alexa, IFTTT and Watson IoT Platform to control ble devices
Using Alexa, IFTTT and Watson IoT Platform to control ble devicesMarkus Van Kempen
 
Watson IoT @Ryerson University - IEEE Chapter
Watson IoT  @Ryerson University - IEEE Chapter  Watson IoT  @Ryerson University - IEEE Chapter
Watson IoT @Ryerson University - IEEE Chapter Markus Van Kempen
 
Playbulb Candle & Watson IoT Platform using Watson APIs and Twitter
Playbulb Candle & Watson IoT Platform using Watson APIs and TwitterPlaybulb Candle & Watson IoT Platform using Watson APIs and Twitter
Playbulb Candle & Watson IoT Platform using Watson APIs and TwitterMarkus Van Kempen
 
Drone Payloader using a Servo and a Raspberry Pi
Drone Payloader using a Servo and a Raspberry Pi Drone Payloader using a Servo and a Raspberry Pi
Drone Payloader using a Servo and a Raspberry Pi Markus Van Kempen
 
LoRa/LRSC Bridge for Bluemix and Watson IoT Plattform Some changes are not ye...
LoRa/LRSC Bridge for Bluemix and Watson IoT Plattform Some changes are not ye...LoRa/LRSC Bridge for Bluemix and Watson IoT Plattform Some changes are not ye...
LoRa/LRSC Bridge for Bluemix and Watson IoT Plattform Some changes are not ye...Markus Van Kempen
 
How to use IoT data with Watson SpeechToText, TextToSpeech and NLC to query ...
How to use IoT data with  Watson SpeechToText, TextToSpeech and NLC to query ...How to use IoT data with  Watson SpeechToText, TextToSpeech and NLC to query ...
How to use IoT data with Watson SpeechToText, TextToSpeech and NLC to query ...Markus Van Kempen
 
Connecting everything to the Internet of Things - even a TPR
Connecting everything to the Internet of Things - even a TPRConnecting everything to the Internet of Things - even a TPR
Connecting everything to the Internet of Things - even a TPRMarkus Van Kempen
 
IoT Demo using Maps and Sensor Data
IoT Demo using Maps and Sensor DataIoT Demo using Maps and Sensor Data
IoT Demo using Maps and Sensor DataMarkus Van Kempen
 
Simple Internet of Things (IoT) game with Bluemix and Node-Red
Simple Internet of Things (IoT)  game with Bluemix and Node-RedSimple Internet of Things (IoT)  game with Bluemix and Node-Red
Simple Internet of Things (IoT) game with Bluemix and Node-RedMarkus Van Kempen
 
iBeacons / Beacons and Presence use cases and examples (part 1)
iBeacons / Beacons and Presence use cases and examples (part 1)iBeacons / Beacons and Presence use cases and examples (part 1)
iBeacons / Beacons and Presence use cases and examples (part 1)Markus Van Kempen
 
Connecting Devices to the IBM IoT via MQTT - Session 1231 @IBMInsight2015
Connecting Devices to the IBM IoT via MQTT - Session 1231 @IBMInsight2015Connecting Devices to the IBM IoT via MQTT - Session 1231 @IBMInsight2015
Connecting Devices to the IBM IoT via MQTT - Session 1231 @IBMInsight2015Markus Van Kempen
 
Tec118 Teched2015 IOT use case and examples
Tec118 Teched2015 IOT use case and examplesTec118 Teched2015 IOT use case and examples
Tec118 Teched2015 IOT use case and examplesMarkus Van Kempen
 

More from Markus Van Kempen (20)

MyHackMIT2023-ChallengetoTheStudents.pdf
MyHackMIT2023-ChallengetoTheStudents.pdfMyHackMIT2023-ChallengetoTheStudents.pdf
MyHackMIT2023-ChallengetoTheStudents.pdf
 
Ways Artificial Intelligence Can Improve Your Business with IBM Watson
Ways Artificial Intelligence Can Improve Your Business with IBM WatsonWays Artificial Intelligence Can Improve Your Business with IBM Watson
Ways Artificial Intelligence Can Improve Your Business with IBM Watson
 
SNP STEAM Academy 2017 class 3 - -ISS #TechWednesday
SNP STEAM Academy 2017 class 3 - -ISS #TechWednesdaySNP STEAM Academy 2017 class 3 - -ISS #TechWednesday
SNP STEAM Academy 2017 class 3 - -ISS #TechWednesday
 
Animal tracking using Watson IoT and LoraWAN
Animal tracking using Watson IoT and LoraWANAnimal tracking using Watson IoT and LoraWAN
Animal tracking using Watson IoT and LoraWAN
 
SNP STEAM Academy 2017 Class #12
SNP STEAM Academy 2017 Class #12SNP STEAM Academy 2017 Class #12
SNP STEAM Academy 2017 Class #12
 
World of Watson Ask Me Anything About IoT
World of Watson Ask Me Anything About IoTWorld of Watson Ask Me Anything About IoT
World of Watson Ask Me Anything About IoT
 
World of Watson HandsOnLab
World of Watson HandsOnLabWorld of Watson HandsOnLab
World of Watson HandsOnLab
 
SNP STEAM Academy 2017 Class #1
SNP STEAM Academy 2017 Class #1SNP STEAM Academy 2017 Class #1
SNP STEAM Academy 2017 Class #1
 
Using Alexa, IFTTT and Watson IoT Platform to control ble devices
Using Alexa, IFTTT and Watson IoT Platform to control ble devicesUsing Alexa, IFTTT and Watson IoT Platform to control ble devices
Using Alexa, IFTTT and Watson IoT Platform to control ble devices
 
Watson IoT @Ryerson University - IEEE Chapter
Watson IoT  @Ryerson University - IEEE Chapter  Watson IoT  @Ryerson University - IEEE Chapter
Watson IoT @Ryerson University - IEEE Chapter
 
Playbulb Candle & Watson IoT Platform using Watson APIs and Twitter
Playbulb Candle & Watson IoT Platform using Watson APIs and TwitterPlaybulb Candle & Watson IoT Platform using Watson APIs and Twitter
Playbulb Candle & Watson IoT Platform using Watson APIs and Twitter
 
Drone Payloader using a Servo and a Raspberry Pi
Drone Payloader using a Servo and a Raspberry Pi Drone Payloader using a Servo and a Raspberry Pi
Drone Payloader using a Servo and a Raspberry Pi
 
LoRa/LRSC Bridge for Bluemix and Watson IoT Plattform Some changes are not ye...
LoRa/LRSC Bridge for Bluemix and Watson IoT Plattform Some changes are not ye...LoRa/LRSC Bridge for Bluemix and Watson IoT Plattform Some changes are not ye...
LoRa/LRSC Bridge for Bluemix and Watson IoT Plattform Some changes are not ye...
 
How to use IoT data with Watson SpeechToText, TextToSpeech and NLC to query ...
How to use IoT data with  Watson SpeechToText, TextToSpeech and NLC to query ...How to use IoT data with  Watson SpeechToText, TextToSpeech and NLC to query ...
How to use IoT data with Watson SpeechToText, TextToSpeech and NLC to query ...
 
Connecting everything to the Internet of Things - even a TPR
Connecting everything to the Internet of Things - even a TPRConnecting everything to the Internet of Things - even a TPR
Connecting everything to the Internet of Things - even a TPR
 
IoT Demo using Maps and Sensor Data
IoT Demo using Maps and Sensor DataIoT Demo using Maps and Sensor Data
IoT Demo using Maps and Sensor Data
 
Simple Internet of Things (IoT) game with Bluemix and Node-Red
Simple Internet of Things (IoT)  game with Bluemix and Node-RedSimple Internet of Things (IoT)  game with Bluemix and Node-Red
Simple Internet of Things (IoT) game with Bluemix and Node-Red
 
iBeacons / Beacons and Presence use cases and examples (part 1)
iBeacons / Beacons and Presence use cases and examples (part 1)iBeacons / Beacons and Presence use cases and examples (part 1)
iBeacons / Beacons and Presence use cases and examples (part 1)
 
Connecting Devices to the IBM IoT via MQTT - Session 1231 @IBMInsight2015
Connecting Devices to the IBM IoT via MQTT - Session 1231 @IBMInsight2015Connecting Devices to the IBM IoT via MQTT - Session 1231 @IBMInsight2015
Connecting Devices to the IBM IoT via MQTT - Session 1231 @IBMInsight2015
 
Tec118 Teched2015 IOT use case and examples
Tec118 Teched2015 IOT use case and examplesTec118 Teched2015 IOT use case and examples
Tec118 Teched2015 IOT use case and examples
 

Recently uploaded

Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...akbard9823
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一3sw2qly1
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 

Recently uploaded (20)

Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 

SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday

  • 1. 1 Six Nations Polytechnic STEM/STEAM - Tech Wednesdays Feb 2018 – Class #1 Markus van Kempen E: mvk@ca.ibm.com T: @markusvankempen
  • 3. 3 Lecture 1 - February 2018 Creating Infrared Breaker aka Burglar Alarm
  • 4. 4 •  We building a Burglar Alarm using a Infrared Beam •  When the Beam is broken we will •  Change the ble Candle •  Green OK, •  Red = somebody broker the Beam – Alarm !!! Objective
  • 5. 5 How does it work? Infrared Emitter (Clear LED) IR Receiver (Dark LED) Invisible Infrared Beam
  • 6. 6 How does it work? Infrared Emitter (Clear LED) IR Receiver (Dark LED) Turn RED
  • 7. 7 •  Breadboard •  3 Resistors (2x 330 Ohm 10KOhm) •  IR Emitter, Receiver •  1 Red LED for Testing »  The pieces - Materials should be in your box Cables
  • 8. 8 Pieces we need – these should be in your PI Box
  • 9. 9 •  A Diode (LED) lets the electricity thru only in one way •  Use Red Cable for the + (Power) and Black or Blue for Ground/GND •  The LED’s have a long and a short end ! Connect Long end with Power + •  For the IR Received we will use the short END •  Mark with tape so you know which is the 330Ohm Resistors and which is 10KOhm Things to Remember!
  • 11. 11 •  We will start with just the RED led . Test setup
  • 12. 12 •  We will show you the configuration in person •  Video on YouTube – mvk channel The result
  • 13. 13 •  Connect the output to the PI (yellow cable to the far left pin) •  Fire up your Node-RED in a browser •  http:// snp??.mybluemix.net/red) •  Get the code from Github see bookmark on browser •  https://github.com/SixNationsPolytechnic –  Userid snpkid?? /Password –  See 2018-01-BurglarAlam Folder •  https://github.com/SixNationsPolytechnic/2018-01-BurglarAlam/blob/master/BurglarAlarm.flow •  Make sure to view in raw mode –  Remember CTRL-A, CTRL-C and CTRL-V –  Import the Node-RED flow into Node-RED Step Two
  • 14. 14 Once Imported you should see the following flow
  • 15. 15 •  Adjust the Candle Number to your number •  Make sure you get Events/Message from the PI/Burglar Alarm •  Add the command to set the Candle to RED when the IR Beam is broken Your Task Adjustments Flow.
  • 16. 16 Setting the Light based on Events e.g when the Infra RED Beam is broken MQTT Code ble Pi Send Ble command to set color to red Bluemix Code
  • 17. 17 •  Back up your code into your github folder use your name or group number •  Delete the Node-RED flow •  Disassemble the breadboard and put the pieces back into the box Last step
  • 18. 18 Node-Red Flow & Presenation for the class are at https://github.com/SixNationsPolytechnic/ The IoT Code for the PI and Candle can be found here https://github.com/markusvankempen/playbulb Videos https://github.com/SixNationsPolytechnic/ Reference
  • 19.
  • 20. 20 Six Nations Polytechnic STEM/STEAM - Tech Wednesdays Feb 2018 – Class #1 Markus van Kempen E: mvk@ca.ibm.com T: @markusvankempen
  • 21. 21 Burglar Alarm Setting up the electronics