Edi Wang

Internet of Things 14


Raspberry Pi Surveillance Camera with Linux and Azure

Because Windows 10 IoT Core is not supporting Pi Camera, I can only use Linux instead. These days, I made a surveillance camera, the functionality is simple, when a person passed by the camera, it will take a picture and upload to Microsoft Azure Storage. It also got a website to remotely view the photos. 1. Hardware A PIR Sensor, a Pi Camera, a...

AzureIoTRaspberry PiLinuxPi CameraPython

Uploading PiCamera images to Azure

Recently Windows 10 IoT Core Build 14393 is coming, but still without PiCamera support, WTF. So I can only choose Linux for my project. When I was using Windows, I use C# + Azure SDK to upload photos to Microsoft Azure. So how to do it on Linux? After some research, here's how to do it. My system is Raspbian Linux. First, we need to install Azure...

AzureLinuxPi CameraPython

How to use Windows RDP to connect Raspbian Linux

Because Windows 10 IoT Core is not yet ready to replace Raspbian, in some case, we have to use Linux. The remote operation on Linux is usually done by SSH. If you want remote desktop like the one on Windows. There are two options: tightvnc or xrdp. I used to  use tightvnc, it does not have any problem with daily use. But I have to install a tightvn...

IoTRaspberry PiRaspbianLinuxxrdp

Windows 10 IoT: How to Drive an SSD1306 I2C Display

I bought a 128x64 0.96 inch OLED display, like this one: The driver chip for this screen is called SSD 1306, typically, this chip will have 2 layouts, SPI or I2C. However, the examples fo how to drive I2C with SSD 1306 is very rare, and they run on Raspbian not Windows. Luckly, with the help from a Microsoft Staff in US, we finally got the code...

IoTRaspberry PiSSD 1306I2C

Raspberry Pi 3 and Windows 10 IoT Core Basics

最近有时间,总结了一下关于树莓派3及Windows 10 IoT的基础知识。适合没有接触过硬件但有一定编程经验的读者入门。我自己刚刚买树莓派的时候花了很长时间入门,搞清楚各种概念和属于。很多网上的帖子都是分散在各个角落的,并且是英文的,有些还是过时的,有些是爆的,所以我觉得有必要总结一篇基础入门帖子。这篇文章讲的都是抛砖引玉的概念,并不包括End-To-End的Case,想要做一个完整实验的文章,请看我博客的物联网开发系列文章:http://edi.wang/category/list/iot  如果有错误和补充,欢迎在评论里指出。 一、树莓派3 树莓派是基于ARM芯片的卡片电脑,大小和一张信用卡一样。今年推出了第三代,集成了板载蓝牙和WIFI。之前的树莓派1和2都是需要用USB WI...

IoTRaspberry Pi

Windows 10 IoT开发:315MHz遥控模块+步进电机实现遥控门(树莓派3)

这几天我用树莓派实现了一个模仿车库遥控门的设备,分享给大家。(优酷视频 http://v.youku.com/v_show/id_XMTU3ODk1NDY2OA==.html )   一、遥控模块 首先介绍一下我用的遥控器和接收板,这种遥控模块在中国随处可以买到,基本都是长这样的。很多卷帘门、车库门都是用这种遥控模块的。做无线电实验购买的是非锁的版本,注意最好同时购买天线。天线用的是50欧姆单芯导线,其实就是个铜丝,注意购买时候要看好频率,中国大陆的无线电许可频率是315MHz,国外也有用443MHz的,我买的遥控器是315MHz。注意遥控器发射频率和接收频率要匹配就行。遥控接收端芯片是...

Windows 10IoTRaspberry Pi

Windows 10 IoT开发:干簧管控制的小灯(树莓派3)

干簧管是一种可以用磁场控制开关状态的设备。当有磁场时,玻璃管中的两片铁片会贴合,从而导电。干簧管模块也就是基于这个原理的电子模块,有磁场时,输出低电平。 干簧管的应用: 门口灯光:当你开门时,亮灯,关门时熄灯。只需要在门锁上装个干簧管,在门框上装个磁铁就能搞定。 当然,装在门上做防盗报警设备。 还有类似的很多应用场景。这篇文章讨论的就是类似第一种的灯光控制场景,不过并不是有磁场开灯,没磁场关灯,而是检测到磁场时开灯,再次检测到磁场时关灯。并没有什么卵用,只是写给Windows 10 IoT初学者看的起步例子。 一、物理连接: 干簧管端VCC接DC3.3, GND接GROUND, D...

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

Windows 10 IoT开发:步进马达的使用(树莓派3)

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

Windows 10IoTRaspberry Pi

Windows 10 IoT开发:声控灯的实现(树莓派3)

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

Windows 10UWPIoTRaspberry Pi