SlideShare a Scribd company logo
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

Arm cross development_with_eclipse
Arm cross development_with_eclipseArm cross development_with_eclipse
Arm cross development_with_eclipse
Walmar de Paula
 
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
Cassandra A. Appleton
 

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

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

一比一原版UTS毕业证悉尼科技大学毕业证成绩单如何办理
一比一原版UTS毕业证悉尼科技大学毕业证成绩单如何办理一比一原版UTS毕业证悉尼科技大学毕业证成绩单如何办理
一比一原版UTS毕业证悉尼科技大学毕业证成绩单如何办理
aagad
 
Article writing on excessive use of internet.pptx
Article writing on excessive use of internet.pptxArticle writing on excessive use of internet.pptx
Article writing on excessive use of internet.pptx
abhinandnam9997
 

Recently uploaded (12)

一比一原版UTS毕业证悉尼科技大学毕业证成绩单如何办理
一比一原版UTS毕业证悉尼科技大学毕业证成绩单如何办理一比一原版UTS毕业证悉尼科技大学毕业证成绩单如何办理
一比一原版UTS毕业证悉尼科技大学毕业证成绩单如何办理
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
The AI Powered Organization-Intro to AI-LAN.pdf
The AI Powered Organization-Intro to AI-LAN.pdfThe AI Powered Organization-Intro to AI-LAN.pdf
The AI Powered Organization-Intro to AI-LAN.pdf
 
The Use of AI in Indonesia Election 2024: A Case Study
The Use of AI in Indonesia Election 2024: A Case StudyThe Use of AI in Indonesia Election 2024: A Case Study
The Use of AI in Indonesia Election 2024: A Case Study
 
Pvtaan Social media marketing proposal.pdf
Pvtaan Social media marketing proposal.pdfPvtaan Social media marketing proposal.pdf
Pvtaan Social media marketing proposal.pdf
 
The Best AI Powered Software - Intellivid AI Studio
The Best AI Powered Software - Intellivid AI StudioThe Best AI Powered Software - Intellivid AI Studio
The Best AI Powered Software - Intellivid AI Studio
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
How Do I Begin the Linksys Velop Setup Process?
How Do I Begin the Linksys Velop Setup Process?How Do I Begin the Linksys Velop Setup Process?
How Do I Begin the Linksys Velop Setup Process?
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
Article writing on excessive use of internet.pptx
Article writing on excessive use of internet.pptxArticle writing on excessive use of internet.pptx
Article writing on excessive use of internet.pptx
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 

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