Upload
dean-willson
View
918
Download
1
Embed Size (px)
Citation preview
Intro to the “Internet of Things” using NetduinoNUFW presentation by Dean Willson 3/8/2016
AbstractIt is estimated that by 2020 there will be tens of billions of devices connected to the internet. As a .Net developer, devices like the Netduino provide a low barrier to entry for IoT utilizing your existing skills and tools. This will be an introduction to Iot using Visual Studio and Netduino.
Agenda• What and Why?• Intro to Equipment
Netduino Other Hardware/Devices/Peripherals Software
• Demo - Configuration MFDeploy• Demos - Development Visual Studio
What is IoT and Why?• Creating a network of “things”
Device to device Device to internet
• Examples Remote start car Open/close garage door on vacation Frozen pipe monitor (turn on heat tape)
General GearGeneral• Development board of some type (Netduino, Fez)• PC with USB connection – device config, file transfer and debugging• Digital MultimeterDemo• Netduino 3 WIFI • Electronics sample kit• Laptop
Netduino 3 wifi microprocessor
Netduino hardware• I/O, Serial GoBus• Power
3.3V, 5V USB or DC jack
• Features WIFI/Ethernet depending on model Button LED USB MicroSD
I/O• Digital Input/Output
SPI – synchronous Serial Peripheral Interface UART – Universal Asynchronous Recv/Transmit PWM – Pulse Wave Modulation I2C – (Inter-Integrated Circuit) multi-master, multi-slave, single-ended, serial bus
GoBus – Netduino quick connect sensor bus (like Arduino’s I2C bus)
• Analog Input/Output Reads as values 0-1023 10 bit
Netduino 3 WIFI
Accessorieshttp://www.amazon.com/gp/product/B00D9M4BQU?psc=1&redirect=true&ref_=oh_aui_detailpage_o09_s00
Software• .Net MicroFramework (NetMF)• Visual Studio templates• Device Drivers
• Breadboard and PC Board design (Fritzing)
.Net Micro Framework (NetMF)• Scaled down version of the .Net Framework• No Generics, LINQ
NetMF Core features
MFDeploy• Windows Forms app to deploy configuration changes to the Netduino firmware• Examples: IP address, WIFI settings• Update Firmware
Visual Studio templates
Demo - simpleOnboard button and LED
YouTube video of onboard I/O demo
https://youtu.be/52876EXYaV0
Demo – putting it all togetherTemperature Sensor and LCD
Fritzing – Breadboard and PC Board design
YouTube video of LCD demo
https://youtu.be/xNXZT-Zgzs0
Temperature sensor and display
LCD using Shift RegisterIllustration source http://weblogs.asp.net/bleroy/improving-the-netduino-knight-rider-effect-with-a-shift-register
TMP36 temperature sensor• Source https://learn.adafruit.com/tmp36-temperature-sensor
Demo – InternetMVC webpage POST from Netduino – Save Temperature
Web POST request
MVC web application (temp log)
Production HardwareProduction example hardware - GHI Electronics• G30, G80 SoC (System on Chip, surface mount)• G120, G400 SoM (System on Module)
References• https://www.ghielectronics.com/technologies/netmf • http://weblogs.asp.net/bleroy/improving-the-netduino-knight-rider-effect-with-a-shift-register • https://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus• https://en.wikipedia.org/wiki/Universal_asynchronous_receiver/transmitter
Dean Willson• Long time member of NUFW• Former President of fwPASS• Twitter: @deanwillson• Blogs: dean-o.blogspot.com, practicalhoshin.blogspot.com• LinkedIn: http://linkedin.com/in/deanwillson