Buenas
today’s example does not attempt to replace a Kinect, or much less. However shows us that with a small hardware little more than €12, can create a sensor’s movements when it detects movements, begin to record the input from a camera.
On this basis, we started with the following hardware for example, where we will see the simple which can be create a Motion Detector
- Fez Spider Mainboard
http://savecomm.net/p/53/fez-spider-starter-kit - USB Client DP
http://www.netmf.com/showcase.aspx?ShowcaseID=1 & id = 110 - PIR Module
http://www.ghielectronics.com/catalog/product/357
with these three elements, we connect the same guided by the following scheme
At this point, with the connected sensor we work with it is pretty simple.
Line 10 shows us that we have an event Motion_Sensed () that is activated when the sensor detects motion.
1: using Gadgeteer.Modules.GHIElectronics;
2: using Microsoft.SPOT;
3:
4: namespace GadgeteerApp14
5: {
6: public partial class Program
7: {
8: void ProgramStarted()
9: {
10: motion_Sensor.Motion_Sensed += MotionSensorMotionSensed;
11: }
12:
13: void MotionSensorMotionSensed(Motion_Sensor sender, Motion_Sensor.Motion_SensorState state)
14: {
15: Debug.Print("motion detected !");
16: // also check >> motion_Sensor.SensorStillActive
17: }
18: }
19: }
Well, we can subscribe to this event or can change the focus and do a PULL of the status of the sensor. For this second case we check the Boolean value of the property SensorStillActive (line 15).
The sensor is quite small and has a range of about 7 meters according to official indications that we can readhere .
In the next post, add a camera and keep the contents of it on an SD card.
Saludos @ Home
El Bruno
Leave a comment