SlideShare ist ein Scribd-Unternehmen logo
1 von 12
We Power
Connected Things
Hardware development at the speed of software. www.wildernesslabs.co
Bryan Costanich
@bryancostanich
- The dream of connected things
- Controlling household electricity with a
relay
- Exposing control via a web API
- Connecting to that Web API from a
Xamarin App
Building a Netduino Powered
Connected Coffee Maker
Wilderness Labs
Relaunched Netduino in March.
Added Mac support.
Netduino stock at Amazon.com and
Mouser.com (international).
Building a vNext connected things
platform.
Actively working on Netduino.
developer.wildernesslabs.co
community.wildernesslabs.co
Connected Coffee Maker
Solution
Power Control
Household electricity (110V/240V) is
controlled by a relay.
Relays are electromechanical and isolate
circuits.
Controlled by a simple on/off via a digital
I/O pin.
Design @ 3D_Print_Designs repo
Assembly instructions in blog.
OutputPort relay =
new OutputPort(Pins.GPIO_PIN_D2, false);
relay.Write(true);
Web Server
Purpose-built for Netduino.
Modern, RESTful Web API/
Built-in JSON Support.
Maple Web Server Host
public class RequestHandler : RequestHandlerBase {
private static bool _isPowerOn;
public void getStatus() { StatusResponse(); }
public void postTurnOn() { TogglePower(true); StatusResponse(); }
public void postTurnOff() { TogglePower(false); StatusResponse(); }
private void TogglePower(bool val) {
_isPowerOn = val;
Ports.ONBOARD_LED.Write(val);
Ports.GPIO_PIN_D1.Write(val);
}
private void StatusResponse() {
this.Context.Response.ContentType = "application/json";
this.Context.Response.StatusCode = 200;
Hashtable result = new Hashtable { { "isPowerOn", _isPowerOn.ToString().ToLower() } };
this.Send(result);
}
}
get:/Status
post:/TurnOn
post:/TurnOff
Xamarin Mobile App
Xamarin.Forms + HttpClient
async private Task<bool> PowerCommand(string command) {
HttpClient client = new HttpClient();
client.BaseAddress = new Uri("http://" + _hostAddress + "/" + _apiBase);
var response = await client.PostAsync(command, null);
if (response.IsSuccessStatusCode) {
if (command == "turnon") {
App.ApplianceStatus = ApplianceStatus.On;
} else {
App.ApplianceStatus = ApplianceStatus.Off;
}
}
return response.IsSuccessStatusCode;
}
Possible Expansion Projects
On timer.
Feedback loop for heat control w/temp sensor; what temp do
you like your coffee?
Coffee done push notification.
Scheduler.
Thanks.
www.wildernesslabs.co
slideshare.net/bryancostanich
Code here
Github.com/WildernessLabs/Netduino_Samples/Connected_Coffee_Maker

Weitere Àhnliche Inhalte

Ähnlich wie Connected Coffee Maker Solution

Embedded web server application based automation and monitoring system
Embedded web server application based automation and monitoring systemEmbedded web server application based automation and monitoring system
Embedded web server application based automation and monitoring systemsudhakar5472
 
Ionic event: March 2021
Ionic event: March 2021Ionic event: March 2021
Ionic event: March 2021Ionic Framework
 
Home Energy Management Gateway
Home Energy Management GatewayHome Energy Management Gateway
Home Energy Management Gatewayksison
 
VJUG - Reacting to an event driven world
VJUG - Reacting to an event driven worldVJUG - Reacting to an event driven world
VJUG - Reacting to an event driven worldGrace Jansen
 
HyPPO - Hybrid Performance-aware Power-capping Orchestrator
HyPPO - Hybrid Performance-aware Power-capping OrchestratorHyPPO - Hybrid Performance-aware Power-capping Orchestrator
HyPPO - Hybrid Performance-aware Power-capping OrchestratorNECST Lab @ Politecnico di Milano
 
Graduation Project on "SMART HOMES & RENEWABLE ENERGY" PowerPoint Presentation
Graduation Project on "SMART HOMES & RENEWABLE ENERGY" PowerPoint PresentationGraduation Project on "SMART HOMES & RENEWABLE ENERGY" PowerPoint Presentation
Graduation Project on "SMART HOMES & RENEWABLE ENERGY" PowerPoint PresentationAhmed Khalil Ibrahim
 
Automation of residential electricity cut off using network embedded controller
Automation of residential electricity cut off using network embedded controllerAutomation of residential electricity cut off using network embedded controller
Automation of residential electricity cut off using network embedded controllerimpulseembedded
 
IOT: Home Automation using Android Application
IOT: Home Automation using Android ApplicationIOT: Home Automation using Android Application
IOT: Home Automation using Android ApplicationNikhil Jadav
 
vensoft technologies http://www.ieeedeveloperslabs.in/ pc controlled pick an...
vensoft technologies http://www.ieeedeveloperslabs.in/  pc controlled pick an...vensoft technologies http://www.ieeedeveloperslabs.in/  pc controlled pick an...
vensoft technologies http://www.ieeedeveloperslabs.in/ pc controlled pick an...Vensoft Technologies
 
Development of Smart Home security system using Raspberry Pi
Development of Smart Home security system using Raspberry PiDevelopment of Smart Home security system using Raspberry Pi
Development of Smart Home security system using Raspberry PiIRJET Journal
 
Controlling the world with Arduino & JavaScript
Controlling the world with Arduino & JavaScriptControlling the world with Arduino & JavaScript
Controlling the world with Arduino & JavaScriptMagnus Green
 
Controlling the World with Arduino,JavaScript & Azure
Controlling the World with Arduino,JavaScript & AzureControlling the World with Arduino,JavaScript & Azure
Controlling the World with Arduino,JavaScript & AzureMagnus Green
 
Karsten Held: Internet Of Things (IOT), SmartBuilding & SmartHome Research (J...
Karsten Held: Internet Of Things (IOT), SmartBuilding & SmartHome Research (J...Karsten Held: Internet Of Things (IOT), SmartBuilding & SmartHome Research (J...
Karsten Held: Internet Of Things (IOT), SmartBuilding & SmartHome Research (J...Karsten Held
 
Jfokus - Reacting to an event-driven world
Jfokus - Reacting to an event-driven worldJfokus - Reacting to an event-driven world
Jfokus - Reacting to an event-driven worldGrace Jansen
 
Embedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PIEmbedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PIEditor IJMTER
 
Home automation under wi fi through android apps from any smart phone
Home automation under wi fi through android apps from any smart phoneHome automation under wi fi through android apps from any smart phone
Home automation under wi fi through android apps from any smart phoneEdgefxkits & Solutions
 
CaseStudy_EnergyETC
CaseStudy_EnergyETCCaseStudy_EnergyETC
CaseStudy_EnergyETCSteve Jones
 
Iot based load control over wifi 14000
Iot based load control over wifi 14000Iot based load control over wifi 14000
Iot based load control over wifi 14000Vivek Bhakta
 

Ähnlich wie Connected Coffee Maker Solution (20)

Embedded web server application based automation and monitoring system
Embedded web server application based automation and monitoring systemEmbedded web server application based automation and monitoring system
Embedded web server application based automation and monitoring system
 
Ionic event: March 2021
Ionic event: March 2021Ionic event: March 2021
Ionic event: March 2021
 
Home Energy Management Gateway
Home Energy Management GatewayHome Energy Management Gateway
Home Energy Management Gateway
 
VJUG - Reacting to an event driven world
VJUG - Reacting to an event driven worldVJUG - Reacting to an event driven world
VJUG - Reacting to an event driven world
 
FYP PPT
FYP PPTFYP PPT
FYP PPT
 
HyPPO - Hybrid Performance-aware Power-capping Orchestrator
HyPPO - Hybrid Performance-aware Power-capping OrchestratorHyPPO - Hybrid Performance-aware Power-capping Orchestrator
HyPPO - Hybrid Performance-aware Power-capping Orchestrator
 
Graduation Project on "SMART HOMES & RENEWABLE ENERGY" PowerPoint Presentation
Graduation Project on "SMART HOMES & RENEWABLE ENERGY" PowerPoint PresentationGraduation Project on "SMART HOMES & RENEWABLE ENERGY" PowerPoint Presentation
Graduation Project on "SMART HOMES & RENEWABLE ENERGY" PowerPoint Presentation
 
Electric Cloud
Electric CloudElectric Cloud
Electric Cloud
 
Automation of residential electricity cut off using network embedded controller
Automation of residential electricity cut off using network embedded controllerAutomation of residential electricity cut off using network embedded controller
Automation of residential electricity cut off using network embedded controller
 
IOT: Home Automation using Android Application
IOT: Home Automation using Android ApplicationIOT: Home Automation using Android Application
IOT: Home Automation using Android Application
 
vensoft technologies http://www.ieeedeveloperslabs.in/ pc controlled pick an...
vensoft technologies http://www.ieeedeveloperslabs.in/  pc controlled pick an...vensoft technologies http://www.ieeedeveloperslabs.in/  pc controlled pick an...
vensoft technologies http://www.ieeedeveloperslabs.in/ pc controlled pick an...
 
Development of Smart Home security system using Raspberry Pi
Development of Smart Home security system using Raspberry PiDevelopment of Smart Home security system using Raspberry Pi
Development of Smart Home security system using Raspberry Pi
 
Controlling the world with Arduino & JavaScript
Controlling the world with Arduino & JavaScriptControlling the world with Arduino & JavaScript
Controlling the world with Arduino & JavaScript
 
Controlling the World with Arduino,JavaScript & Azure
Controlling the World with Arduino,JavaScript & AzureControlling the World with Arduino,JavaScript & Azure
Controlling the World with Arduino,JavaScript & Azure
 
Karsten Held: Internet Of Things (IOT), SmartBuilding & SmartHome Research (J...
Karsten Held: Internet Of Things (IOT), SmartBuilding & SmartHome Research (J...Karsten Held: Internet Of Things (IOT), SmartBuilding & SmartHome Research (J...
Karsten Held: Internet Of Things (IOT), SmartBuilding & SmartHome Research (J...
 
Jfokus - Reacting to an event-driven world
Jfokus - Reacting to an event-driven worldJfokus - Reacting to an event-driven world
Jfokus - Reacting to an event-driven world
 
Embedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PIEmbedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PI
 
Home automation under wi fi through android apps from any smart phone
Home automation under wi fi through android apps from any smart phoneHome automation under wi fi through android apps from any smart phone
Home automation under wi fi through android apps from any smart phone
 
CaseStudy_EnergyETC
CaseStudy_EnergyETCCaseStudy_EnergyETC
CaseStudy_EnergyETC
 
Iot based load control over wifi 14000
Iot based load control over wifi 14000Iot based load control over wifi 14000
Iot based load control over wifi 14000
 

Mehr von bryan costanich

Futures in Computing
Futures in Computing Futures in Computing
Futures in Computing bryan costanich
 
Advanced android app lifecycle + Patterns
Advanced android app lifecycle + PatternsAdvanced android app lifecycle + Patterns
Advanced android app lifecycle + Patternsbryan costanich
 
Cross Platform Mobile Development with Xamarin
Cross Platform Mobile Development with XamarinCross Platform Mobile Development with Xamarin
Cross Platform Mobile Development with Xamarinbryan costanich
 
Going mobile - A Technical Job Prep for Vassar Students
Going mobile - A Technical Job Prep for Vassar StudentsGoing mobile - A Technical Job Prep for Vassar Students
Going mobile - A Technical Job Prep for Vassar Studentsbryan costanich
 
Cross-Platform Mobile Development in Visual Studio
Cross-Platform Mobile Development in Visual StudioCross-Platform Mobile Development in Visual Studio
Cross-Platform Mobile Development in Visual Studiobryan costanich
 
Cross Platform Development with Xamarin
Cross Platform Development with XamarinCross Platform Development with Xamarin
Cross Platform Development with Xamarinbryan costanich
 

Mehr von bryan costanich (7)

Futures in Computing
Futures in Computing Futures in Computing
Futures in Computing
 
Advanced android app lifecycle + Patterns
Advanced android app lifecycle + PatternsAdvanced android app lifecycle + Patterns
Advanced android app lifecycle + Patterns
 
C# rocks
C# rocksC# rocks
C# rocks
 
Cross Platform Mobile Development with Xamarin
Cross Platform Mobile Development with XamarinCross Platform Mobile Development with Xamarin
Cross Platform Mobile Development with Xamarin
 
Going mobile - A Technical Job Prep for Vassar Students
Going mobile - A Technical Job Prep for Vassar StudentsGoing mobile - A Technical Job Prep for Vassar Students
Going mobile - A Technical Job Prep for Vassar Students
 
Cross-Platform Mobile Development in Visual Studio
Cross-Platform Mobile Development in Visual StudioCross-Platform Mobile Development in Visual Studio
Cross-Platform Mobile Development in Visual Studio
 
Cross Platform Development with Xamarin
Cross Platform Development with XamarinCross Platform Development with Xamarin
Cross Platform Development with Xamarin
 

KĂŒrzlich hochgeladen

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...gurkirankumar98700
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

KĂŒrzlich hochgeladen (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

Connected Coffee Maker Solution

  • 1. We Power Connected Things Hardware development at the speed of software. www.wildernesslabs.co Bryan Costanich @bryancostanich
  • 2. - The dream of connected things - Controlling household electricity with a relay - Exposing control via a web API - Connecting to that Web API from a Xamarin App Building a Netduino Powered Connected Coffee Maker
  • 3. Wilderness Labs Relaunched Netduino in March. Added Mac support. Netduino stock at Amazon.com and Mouser.com (international). Building a vNext connected things platform. Actively working on Netduino.
  • 7. Power Control Household electricity (110V/240V) is controlled by a relay. Relays are electromechanical and isolate circuits. Controlled by a simple on/off via a digital I/O pin. Design @ 3D_Print_Designs repo Assembly instructions in blog. OutputPort relay = new OutputPort(Pins.GPIO_PIN_D2, false); relay.Write(true);
  • 8. Web Server Purpose-built for Netduino. Modern, RESTful Web API/ Built-in JSON Support.
  • 9. Maple Web Server Host public class RequestHandler : RequestHandlerBase { private static bool _isPowerOn; public void getStatus() { StatusResponse(); } public void postTurnOn() { TogglePower(true); StatusResponse(); } public void postTurnOff() { TogglePower(false); StatusResponse(); } private void TogglePower(bool val) { _isPowerOn = val; Ports.ONBOARD_LED.Write(val); Ports.GPIO_PIN_D1.Write(val); } private void StatusResponse() { this.Context.Response.ContentType = "application/json"; this.Context.Response.StatusCode = 200; Hashtable result = new Hashtable { { "isPowerOn", _isPowerOn.ToString().ToLower() } }; this.Send(result); } } get:/Status post:/TurnOn post:/TurnOff
  • 10. Xamarin Mobile App Xamarin.Forms + HttpClient async private Task<bool> PowerCommand(string command) { HttpClient client = new HttpClient(); client.BaseAddress = new Uri("http://" + _hostAddress + "/" + _apiBase); var response = await client.PostAsync(command, null); if (response.IsSuccessStatusCode) { if (command == "turnon") { App.ApplianceStatus = ApplianceStatus.On; } else { App.ApplianceStatus = ApplianceStatus.Off; } } return response.IsSuccessStatusCode; }
  • 11. Possible Expansion Projects On timer. Feedback loop for heat control w/temp sensor; what temp do you like your coffee? Coffee done push notification. Scheduler.

Hinweis der Redaktion

  1. Imagine waking up, grabbing your phone, and turning on your coffee pot from bed.
  2. We’re building the world’s first Connected Things OS. Secure, ultra low power features, over the air updates, managed from the cloud. Runs on real connected things hardware; microcontrollers like the ARM Cortex-M series. Full .NET standard apps + Javascript support. Developer Platform: Target .NET developers first. Full .NET Standard 2.0 Support. Then JavaScript (Node + Johnny Five) Open OS for other platforms.
  3. Great Netduino documentation Electronics tutorial Etc.
  4. A place to get help and meet other netduino developers