Edi Wang

Windows / XAML 75


Create QR Code in Windows 10 UWP

A year ago, I wrote an UWP application that can generate QR Code. However, at that time, the QR Code library I used was ZXing.Net, the last update for this package was in 2014. Now, time has changed, the author of ZXing.Net seems not to update the package any more. However, we have to move on, so I found a fantastic new library to generate QR Code...

UWPQR Code

UWP App for the Raspberry Pi Azure Surveillance Camera

I wrote a post about Raspberry Pi Surveillance Camera with Linux and Azure, it was using an ASP.NET website for displaying the photos. I made an UWP client App these days, you can download from here https://www.microsoft.com/store/apps/9nblgggzfnv0 (Because WP is already finished, so I don't provide Windows 10 Mobile package) It doesn't allow u...

MVVMPINMicrosoft PassportBinding

Reed Controlled Light by Windows 10 IoT Core

Reed switch is an electronic component to connect / disconnect the switch by magnetic field. When it touchs magnetic field, the two iron sheets inside the tube will clip together, so the switch is connected.  The application of Reed Swith: Door light controller: When you open the door, turn the light on. When you close the door, turn off the ligh...

Windows 10IoTRaspberry Pi

74HC595 4 Digits LED Tube with Windows 10

One of the common used LED Tube driver chip is 74HC595, by using the Chip, you can save GPIO ports. I bought a LED Tube with 595 chip, it only need 3 GPIO ports to display 4 digits. However there is no existing posts about how to drive the 74HC595 LED Tube from Windows 10. So I can only try for myse...

Windows 10IoTRaspberry Pi

Azure Fire Alarm by Raspberry Pi and Windows 10 IoT Core

防火是日常生活中非常重要的意识,如果你是一只恩爱狗,出门在外,家里被FFF团点了,那真是太惨(hao)了。如果你恰好有Windows 10的设备,比如Lumia,Surface,能及时收到火警是至(mei)关(sha)重(luan)要(yong)的。今天就教大家如何用Microsoft Azure公有云+Windows 10 IoT Core在树莓派上实现一个远程火警系统。 阅读这篇文章,你需要的前置知识: Windows 10,UWP的基本开发能力 MVVM基础知识 ASP.NET MVC的基础知识 树莓派、GPIO及逻辑电路的基本知识(也就是大学里的计算机电路) Azure公有云的使用经验 ……当然,还要有对微软的信仰 一、设计原理 基本想法是,通过火焰传感器的输入信号...

AzureWindows 10IoTRaspberry Pi

Using stepper motor in Windows 10 IoT Core

如果你需要精确控制设备的转动角度,普通电机是做不到的,通常我们会选用步进马达。比如28BYJ-48这个型号的,很容易买到。 步进马达得配合驱动板使用,最常用的是ULN2003芯片的驱动板,就像下图。不过注意,你买到的驱动板长相可能不太一样,不过没关系,只要芯片上写的是ULN2003,就可以使用,它们的接口都是一样的。关于步进马达的原理,可以看这篇: https://en.wikipedia.org/wiki/Stepper_motor  拿到驱动板和步进马达后,将马达插入驱动板的白色插槽中,这个接口有防呆设计,所以不会插反。 关于Windows 10 IoT如何驱动步进马达,有一篇很好的英文材料: https://www.hackster.io/erickbp/stepper...

Windows 10IoTRaspberry Pi

Sound Controlled Light by Windows 10 IoT Core

在很多楼道中,声控灯的应用很广泛,拍一下手就可以开灯。现在有了树莓派3和Windows 10 IoT,要自己实现一个声控灯也很简单。 我买的声音传感器型号是FC-04,这个网上Windows 10 IoT的资料几乎没有,不过根据它的电器说明还是很容易琢磨出来用法的。和其他传感器类似,首先第一步是校准。 一、校准FC-04声音传感器 在安静的环境中将VCC接入树莓派的DC 3.3输出v,GND接入电源负极(Ground),这时候电源指示灯会亮起,证明你买到的FC-04没有爆掉。 如果你的开关指示也亮起,是正常现象,说明声音太灵敏,在安静的环境中也识别出了声音,需要校准。 用指甲或者螺丝刀慢慢旋转蓝色菊花的菊花芯子,一边旋转一边对着传感器头部的麦克风说“微软大法好”,直到开关指示熄...

Windows 10UWPIoTRaspberry Pi

Windows 10 IoT开发:HC-04超声波传感器测距(树莓派3)

HC-04是树莓派上用的比较广泛的超声波传感器,可以用来测量设备和物体之间的距离。可惜网上的资料很少有针对Windows 10的,几乎都是Python和C在Linux上的例子。 hackster.io上有一篇用HC-04做雷达的例子,但是设计的部件太多了,对单纯学习HC-04传感器的使用来说这个例子比较复杂。搜了一圈,英文资料最好的是这篇:http://www.guruumeditation.net/en/digital-io-with-windows-10-iot-raspberry-pi-2-and-the-ultrasonic-ranging-module-hc-sr04/ 国内中文资...

Windows 10UWPIoTRaspberry Pi

Windows 10 IoT开发:土壤湿度传感器的使用(树莓派3)

前几天在淘宝上买了个长得这样的土壤湿度传感器: 结果搜了一圈,网上似乎还没有Windows 10的例子代码,又只能自己爆了。 这个传感器有4个阵脚,意思分别是: 针脚 含义 AO 模拟信号输出 DO  数字信号输出  GND  电源负极  VCC  电源正极  所以,我们把VCC接到树莓派的DC3.3v输出上,我用的是PIN 01,GND接在任何一个接地端口上,我用的是PIN 09,DO输出接任何一个空闲的GPIO端口,我用的是21。如果不清楚树莓派端口布局的朋友可以参考这张图: 连线完成就像是这样...

Windows 10UWPIoTRaspberry Pi