Internet of Thing, is there a place for C# and .NET Framework?

44
Internet of Things is there a place for C# and .NET Framework!?

Transcript of Internet of Thing, is there a place for C# and .NET Framework?

Page 1: Internet of Thing, is there a place for C# and .NET Framework?

Internet of Thingsis there a place for C and NET Framework

who is this guy

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

get involved

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

forget about Windows 10 and

IoT devicesjust for nowhellip

Windows 10 IoT Core public beta in

httpms-iotgithubiocontenten-USwin10SupportedInterfaceshtm

wee want to do something besides blinking LEDs

- Jairo Cantillo

why C amp IoT

c runs on

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 2: Internet of Thing, is there a place for C# and .NET Framework?

who is this guy

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

get involved

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

forget about Windows 10 and

IoT devicesjust for nowhellip

Windows 10 IoT Core public beta in

httpms-iotgithubiocontenten-USwin10SupportedInterfaceshtm

wee want to do something besides blinking LEDs

- Jairo Cantillo

why C amp IoT

c runs on

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 3: Internet of Thing, is there a place for C# and .NET Framework?

get involved

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

forget about Windows 10 and

IoT devicesjust for nowhellip

Windows 10 IoT Core public beta in

httpms-iotgithubiocontenten-USwin10SupportedInterfaceshtm

wee want to do something besides blinking LEDs

- Jairo Cantillo

why C amp IoT

c runs on

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 4: Internet of Thing, is there a place for C# and .NET Framework?

forget about Windows 10 and

IoT devicesjust for nowhellip

Windows 10 IoT Core public beta in

httpms-iotgithubiocontenten-USwin10SupportedInterfaceshtm

wee want to do something besides blinking LEDs

- Jairo Cantillo

why C amp IoT

c runs on

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 5: Internet of Thing, is there a place for C# and .NET Framework?

Windows 10 IoT Core public beta in

httpms-iotgithubiocontenten-USwin10SupportedInterfaceshtm

wee want to do something besides blinking LEDs

- Jairo Cantillo

why C amp IoT

c runs on

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 6: Internet of Thing, is there a place for C# and .NET Framework?

wee want to do something besides blinking LEDs

- Jairo Cantillo

why C amp IoT

c runs on

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 7: Internet of Thing, is there a place for C# and .NET Framework?

why C amp IoT

c runs on

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 8: Internet of Thing, is there a place for C# and .NET Framework?

c runs on

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 9: Internet of Thing, is there a place for C# and .NET Framework?

bunch of deviceshellip

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 10: Internet of Thing, is there a place for C# and .NET Framework?

26 billions devices

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 11: Internet of Thing, is there a place for C# and .NET Framework?

Mono

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 12: Internet of Thing, is there a place for C# and .NET Framework?

bull Open source implementation of the CLR

bull Linux MacOS X Solaris BSD Wii PS3hellip

bull Started in 2001 as Ximian purchased by Novell in 2003 released in 2004

Mono

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 13: Internet of Thing, is there a place for C# and .NET Framework?

bull 2009 MonoTouch created (released in 2010)

bull 2010 MonoDroid created (release in 2011)

bull 2011 Novel purchased by Attachmate where entire Mono team has ben sacked

bull 2011 Xamarin Startup created

Mono

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 14: Internet of Thing, is there a place for C# and .NET Framework?

+ +

26 billions devices

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 15: Internet of Thing, is there a place for C# and .NET Framework?

httpswwwsupergiantgamescomgamesbastion

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 16: Internet of Thing, is there a place for C# and .NET Framework?

httpfezgamecom

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 17: Internet of Thing, is there a place for C# and .NET Framework?

httpbitlymixradioapp

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 18: Internet of Thing, is there a place for C# and .NET Framework?

httpbitlyDsKids

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 19: Internet of Thing, is there a place for C# and .NET Framework?

httpmonobrasilcom

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 20: Internet of Thing, is there a place for C# and .NET Framework?

Internet of Things

I wanna play too

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 21: Internet of Thing, is there a place for C# and .NET Framework?

sensors actuators

gateway

interact with data

+

+

interact with the real world

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 22: Internet of Thing, is there a place for C# and .NET Framework?

Connect All

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 23: Internet of Thing, is there a place for C# and .NET Framework?

boards

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 24: Internet of Thing, is there a place for C# and .NET Framework?

cubieboard2 $5900

httpcubieboardorg

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 25: Internet of Thing, is there a place for C# and .NET Framework?

Beagle board BeagleBoneBlack

httpbeagleboardorgblack

$5500

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 26: Internet of Thing, is there a place for C# and .NET Framework?

if there is

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 27: Internet of Thing, is there a place for C# and .NET Framework?

Mono will run httpbitlyIoTBoardsLinux

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 28: Internet of Thing, is there a place for C# and .NET Framework?

lets play

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 29: Internet of Thing, is there a place for C# and .NET Framework?

Camera as the Sensor C and Raspberry Pi as Gateway

web api as interaction tool

find a problem to solve

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 30: Internet of Thing, is there a place for C# and .NET Framework?

httpbitlyRaspi2ModelB

bull A 900MHz quad-core ARM Cortex-A7 CPU

bull 1GB RAM bull 4 USB ports bull 40 GPIO pins bull Full HDMI port bull Ethernet port bull Combined 35mm audio jack and

composite video bull Camera interface (CSI) bull Display interface (DSI) bull Micro SD card slot bull VideoCore IV 3D graphics core

R$ 24990

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 31: Internet of Thing, is there a place for C# and .NET Framework?

bull 1 Raspberry Pi or a Raspberry Pi 2

bull 8GB ldquohard disk driverdquo

bull Ethernet cable or wifi dongle

bull Computer with SD card reader

bull Optionally USB mouse and keyboard HDMI screen

what you need for start

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 32: Internet of Thing, is there a place for C# and .NET Framework?

bull Guide httpswwwraspberrypiorgdocumentationinstallationinstalling-imagesREADMEmd

bull OS Image httpswwwraspberrypiorgdownloadsraspbian

install OS on Raspi

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 33: Internet of Thing, is there a place for C# and .NET Framework?

install Mono

$ sudo apt-get update$ sudo apt-get install mono-runtime

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 34: Internet of Thing, is there a place for C# and .NET Framework?

using System

namespace Test class Program static void Main(string[] args) ConsoleWriteLine(Running on 0 EnvironmentOSVersion)

ConsoleWriteLine(Press a key to continue) ConsoleReadKey(true)

$ mcs Testcs$ mono Testexe

testing and running

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 35: Internet of Thing, is there a place for C# and .NET Framework?

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 36: Internet of Thing, is there a place for C# and .NET Framework?

$ sudo apt-get update$ sudo apt-get install mono-csharp-shell$ csharpMono C Shell type help for helpEnter statements below

$ LoadAssembly(RaspberryIOGeneralPurpose)$ using RaspberryIOGeneralPurpose$ var gpioConnection = new GpioConnection()

$ quit

C interactive shell

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 37: Internet of Thing, is there a place for C# and .NET Framework?

$ using SystemIOPorts$ SerialPort sp = new SerialPort(devttyAMA0 9600)$ spIsOpenfalse

$ spOpen()$ spIsOpen true

C interactive shell

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 38: Internet of Thing, is there a place for C# and .NET Framework?

var cameras = CamerasDeclareDevice() Named(ldquoCamera) WithDevicePath(devvideo0) Memorize()

var pictureSize = new PictureSize(640 480)

camerasGet(ldquoCamera1)SavePicture(pictureSizerdquoimagemjpg 20)

take a picture

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 39: Internet of Thing, is there a place for C# and .NET Framework?

var req = WebRequestCreate(ldquoyour_service_urlrdquo)reqMethod = PUTreqHeadersAdd(ldquokeyrdquo ldquovalue)

var fileStream = new FileStream(ldquoapp_dirimagemjpgrdquo FileModeOpen)

push to a service

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 40: Internet of Thing, is there a place for C# and .NET Framework?

what you can do

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 41: Internet of Thing, is there a place for C# and .NET Framework?

so what you can do next

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 42: Internet of Thing, is there a place for C# and .NET Framework?

thank you )

williamsrzoutlookcom WilliamSRodz28bytescombr williamsrzcombr

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved

Page 43: Internet of Thing, is there a place for C# and .NET Framework?

httpbitlyMonkeyNightsDevshttpbitlyDotNetCuritiba

httpbitlyMFCFCWBmonobrasilcombr

get involved