SlideShare a Scribd company logo
1 of 17
Download to read offline
1
Bringing Innovation to Life
Markus van Kempen
Executive Architect &
Venture Capitalist
E: mvk@ca.ibm.com
T: @markusvankempen
2
Objective – Controlling a Light wireless via a PI
MQTT
Code ble
Pi Send Ble command
to set color to red
Bluemix
3
Node-red tool – Drag/Drop - Javascript coding tool
3. drag
5. On/off
1. URL ??= group
7. Debug/Message
2. Deploy to Server
Click after every
change
4. connecting
4
•  Power up PI & Light
•  Note: Light should turn green and stay green once connected
•  Open a browser and type in your group url
•  Like: http://snp##.mybluemix.net
–  Where ## is your group number like 06
•  E.g. http://snp06.mybluemix.net/red
Let’s go!
We will demo each step of the exercise
5
•  1. Activate the Debug Tab on the right
•  2. Enable the debugging – by clicking on the button on the node
•  3. You should see message from the Candle in the Debug Tab
•  Explore the messages
Exercise #1
3
1
6
•  Let’s send commands to the Candle to change the light color
•  Add functionality to change the color to blue, green and off
•  You will need to add nodes and connect them as well as code
Exercise #2
7
var newmsg = {"cmd" : "setcolor",
"mode":"",
"speed":"",
"rr" : 0,
"gg" : 0,
"bb" : 255
}
msg.payload=newmsg ;
return msg;
Code
Color Value
8
Result should look like:
9
•  Send mode commands to the Candle
•  Set Candle to
–  candlelight more
–  Flash
–  Jump
–  Fade
Add and connect the node and input/copy the code
Note: move the color setting command node over form the previous Tab
Exercise #3
10
var newmsg = {"cmd" : "setcolor",
//00 7e ff 00 00 00 19 00"
// modes: 01 = Fade, 02 = Jump RBG (rainbow), 03 = Fade RGB (rainbow), 04 = Candle Effect
"mode":0,
"speed1":19,
"speed2":0,
"rr" : 0,
"gg" : 0,
"bb" : 255
}
msg.eventOrCommandType = "setCandleMode";
msg.payload=newmsg ;
return msg;
Code
Mode Value
11
Result:
12
•  Create a dashboard to web/mobile-enable the candle function
•  Open a new browser tab with the URL
•  https://snp<##>.mybluemix.net/ui (Where # is your group number)
•  Remove the brackets“< >”
•  E.g. http://snp06.mybluemix.net
Exercise #4
13
Your starting dashboard
14
Add all functions/candle commands and data to the dashboard
15
Result:
16
•  Use you phone or tablet with the ui url
https://snp<##>.mybluemix.net/ui
•  Try to add functionality to detect the Candle mode
Extra:
SNP STEAM Academy 2017 Class #1

More Related Content

Similar to SNP STEAM Academy 2017 Class #1

Programming preparation_stepping Algorithm
Programming preparation_stepping AlgorithmProgramming preparation_stepping Algorithm
Programming preparation_stepping Algorithmleneinterno
 
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
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step Ming-Hung Hseih
 
Microbit madness lesson 2
Microbit madness lesson 2Microbit madness lesson 2
Microbit madness lesson 2Mr K Dudley
 
microbit Microbit programming Microbit programming
microbit Microbit programming Microbit programmingmicrobit Microbit programming Microbit programming
microbit Microbit programming Microbit programmingssuser5feb2c1
 
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...Embarcados
 
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday Markus Van Kempen
 
Algorithm Development
Algorithm DevelopmentAlgorithm Development
Algorithm DevelopmentALI RAZA
 
18CSL51 - Network Lab Manual.pdf
18CSL51 - Network Lab Manual.pdf18CSL51 - Network Lab Manual.pdf
18CSL51 - Network Lab Manual.pdfSelvaraj Seerangan
 
Assignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxAssignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxfaithxdunce63732
 
The Ultimate Question of Programming, Refactoring, and Everything
The Ultimate Question of Programming, Refactoring, and EverythingThe Ultimate Question of Programming, Refactoring, and Everything
The Ultimate Question of Programming, Refactoring, and EverythingAndrey Karpov
 
The Ultimate Question of Programming, Refactoring, and Everything
The Ultimate Question of Programming, Refactoring, and EverythingThe Ultimate Question of Programming, Refactoring, and Everything
The Ultimate Question of Programming, Refactoring, and EverythingPVS-Studio
 
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
 
Valgrind tutorial
Valgrind tutorialValgrind tutorial
Valgrind tutorialSatabdi Das
 
System integration through queues
System integration through queuesSystem integration through queues
System integration through queuesGianluca Padovani
 
ARM-ES MANUAL.pdf
ARM-ES MANUAL.pdfARM-ES MANUAL.pdf
ARM-ES MANUAL.pdfvidhya1806
 
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
 

Similar to SNP STEAM Academy 2017 Class #1 (20)

Programming preparation_stepping Algorithm
Programming preparation_stepping AlgorithmProgramming preparation_stepping Algorithm
Programming preparation_stepping Algorithm
 
SNP STEAM Academy 2017 Class #12
SNP STEAM Academy 2017 Class #12SNP STEAM Academy 2017 Class #12
SNP STEAM Academy 2017 Class #12
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step
 
Microbit madness lesson 2
Microbit madness lesson 2Microbit madness lesson 2
Microbit madness lesson 2
 
microbit Microbit programming Microbit programming
microbit Microbit programming Microbit programmingmicrobit Microbit programming Microbit programming
microbit Microbit programming Microbit programming
 
Week 2
Week 2Week 2
Week 2
 
Compiler tricks
Compiler tricksCompiler tricks
Compiler tricks
 
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
 
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
 
Algorithm Development
Algorithm DevelopmentAlgorithm Development
Algorithm Development
 
18CSL51 - Network Lab Manual.pdf
18CSL51 - Network Lab Manual.pdf18CSL51 - Network Lab Manual.pdf
18CSL51 - Network Lab Manual.pdf
 
Assignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxAssignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docx
 
The Ultimate Question of Programming, Refactoring, and Everything
The Ultimate Question of Programming, Refactoring, and EverythingThe Ultimate Question of Programming, Refactoring, and Everything
The Ultimate Question of Programming, Refactoring, and Everything
 
The Ultimate Question of Programming, Refactoring, and Everything
The Ultimate Question of Programming, Refactoring, and EverythingThe Ultimate Question of Programming, Refactoring, and Everything
The Ultimate Question of Programming, Refactoring, and Everything
 
Mlcc #4
Mlcc #4Mlcc #4
Mlcc #4
 
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
 
Valgrind tutorial
Valgrind tutorialValgrind tutorial
Valgrind tutorial
 
System integration through queues
System integration through queuesSystem integration through queues
System integration through queues
 
ARM-ES MANUAL.pdf
ARM-ES MANUAL.pdfARM-ES MANUAL.pdf
ARM-ES MANUAL.pdf
 
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
 

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
 
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
 
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
 
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
 
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDESAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDEMarkus Van Kempen
 
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...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
 
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
 
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
 
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
 
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDESAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
 
Iss Location to IoTF
Iss Location to IoTFIss Location to IoTF
Iss Location to IoTF
 
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
 

Recently uploaded

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
 
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Roomgirls4nights
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Roomdivyansh0kumar0
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Personfurqan222004
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
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
 
Denver Web Design brochure for public viewing
Denver Web Design brochure for public viewingDenver Web Design brochure for public viewing
Denver Web Design brochure for public viewingbigorange77
 
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural  in villages of indiaGram Darshan PPT cyber rural  in villages of india
Gram Darshan PPT cyber rural in villages of indiaimessage0108
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一3sw2qly1
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls KolkataLow Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 

Recently uploaded (20)

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
 
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Person
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance VVIP 🍎 SERVICE
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SERVICECall Girls Service Dwarka @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SERVICE
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance VVIP 🍎 SERVICE
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
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
 
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🔝
 
Denver Web Design brochure for public viewing
Denver Web Design brochure for public viewingDenver Web Design brochure for public viewing
Denver Web Design brochure for public viewing
 
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural  in villages of indiaGram Darshan PPT cyber rural  in villages of india
Gram Darshan PPT cyber rural in villages of india
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 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
 
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls KolkataLow Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 

SNP STEAM Academy 2017 Class #1

  • 1. 1 Bringing Innovation to Life Markus van Kempen Executive Architect & Venture Capitalist E: mvk@ca.ibm.com T: @markusvankempen
  • 2. 2 Objective – Controlling a Light wireless via a PI MQTT Code ble Pi Send Ble command to set color to red Bluemix
  • 3. 3 Node-red tool – Drag/Drop - Javascript coding tool 3. drag 5. On/off 1. URL ??= group 7. Debug/Message 2. Deploy to Server Click after every change 4. connecting
  • 4. 4 •  Power up PI & Light •  Note: Light should turn green and stay green once connected •  Open a browser and type in your group url •  Like: http://snp##.mybluemix.net –  Where ## is your group number like 06 •  E.g. http://snp06.mybluemix.net/red Let’s go! We will demo each step of the exercise
  • 5. 5 •  1. Activate the Debug Tab on the right •  2. Enable the debugging – by clicking on the button on the node •  3. You should see message from the Candle in the Debug Tab •  Explore the messages Exercise #1 3 1
  • 6. 6 •  Let’s send commands to the Candle to change the light color •  Add functionality to change the color to blue, green and off •  You will need to add nodes and connect them as well as code Exercise #2
  • 7. 7 var newmsg = {"cmd" : "setcolor", "mode":"", "speed":"", "rr" : 0, "gg" : 0, "bb" : 255 } msg.payload=newmsg ; return msg; Code Color Value
  • 9. 9 •  Send mode commands to the Candle •  Set Candle to –  candlelight more –  Flash –  Jump –  Fade Add and connect the node and input/copy the code Note: move the color setting command node over form the previous Tab Exercise #3
  • 10. 10 var newmsg = {"cmd" : "setcolor", //00 7e ff 00 00 00 19 00" // modes: 01 = Fade, 02 = Jump RBG (rainbow), 03 = Fade RGB (rainbow), 04 = Candle Effect "mode":0, "speed1":19, "speed2":0, "rr" : 0, "gg" : 0, "bb" : 255 } msg.eventOrCommandType = "setCandleMode"; msg.payload=newmsg ; return msg; Code Mode Value
  • 12. 12 •  Create a dashboard to web/mobile-enable the candle function •  Open a new browser tab with the URL •  https://snp<##>.mybluemix.net/ui (Where # is your group number) •  Remove the brackets“< >” •  E.g. http://snp06.mybluemix.net Exercise #4
  • 14. 14 Add all functions/candle commands and data to the dashboard
  • 16. 16 •  Use you phone or tablet with the ui url https://snp<##>.mybluemix.net/ui •  Try to add functionality to detect the Candle mode Extra: