Sunday, 8 May 2011

FEZ Domino

Description: Say hello to the FEZ  domino. This is a tiny open source board running Microsoft .NET Micro Framework. This allows you to more efficiently write code using Microsoft’s free Visual C# express and the C# programming language. Build your next projects in minutes by connecting FEZ Domino to one of the shields or the many available components. Many libraries are already included like FAT file system, threading, UART, SPI, I2C, GPIO, PWM, ADC, DAC and many more.
Check out this comparison chart between the FEZ Domino and the FEZ Panda.

Features:
  • Based on Microsoft's .NET Micro Framework
  • Runs on 72Mhz NXP ARM processors
  • Pin compatible with Arduino
  • Shield Compatable
  • It's freakin' easy to use!
Documents:

LinkSprite JPEG Color Camera TTL Interface

Description: The LinkSprite JPEG color camera allows you to capture and output JPEG images through UART, making it easy to integrate into an existing design.
Note: Cameras purchased before November 01, 2010 output RS232 serial data, so you will need a level converter if you plan on connecting it to an Arduino or other microcontroller. See the related items for an appropriate converter. Cameras purchased after this time are use a TTL interface.
Note: These only work reliably with a 5V power supply, even though the manual states they can work at 3.3V.
Features:
  • VGA/QVGA/160x120 resolution
  • Support capture JPEG from serial port
  • Default baud rate of serial port is 38400
  • 5V power supply
  • Size 32X32mm
  • Current consumption: 80-100mA
Documents:
 Sample

 using (var camera = new LinkspriteCamera(new SerialPort("COM1", 38400, Parity.None, 8, StopBits.One)))
            {
                //DoSuccessFail(camera.Reset, "Reset successfull", "ERROR resetting");
                //DoSuccessFail(() => camera.SetPictureSize(LinkspriteCamera.SET_SIZE_640x480), "Size change successfull", "ERROR changing size");
                //DoSuccessFail(camera.Reset, "Reset successfull", "ERROR resetting");
                if(camera.Reset())
                    camera.GetPicture(ProcessChunk);
                DoSuccessFail(camera.Stop, "Stop successfull", "ERROR stopping");
            }


FEZ Library: http://code.tinyclr.com/project/220/linksprite-camera-library/


Sample pic




Bad point


The camera doesn't have a white balance and the pictures are half color and half BW ( outdoor )

Digital Infrared motion sensor

Introduction
This is a simple to use motion sensor. Power it up and wait 1-2 seconds for the sensor to get a snapshot of the still room. If anything moves after that period, the 'alarm' pin will go low.
Specification
  • Type: Digital
  • Supply Voltage:3~5V
  • Current:50μA
  • Working temperature:0℃~+70℃
  • Output level(HIGH):4V
  • Output level(LOW):0.4V
  • Detect angle:110 Degree
  • Detect distance:7 meters
  • Size:28mm×36mm
  • Weight:25g

Sample


InterruptPort  PIR = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di13, false, Port.REsistorMode.PullDown, Port.InterruptMode.InterruptEdgeHigh);
PIR.OnInterrupt += new NativeEventHandler(doSomething);


static void doSomething(uint port, uint state, DateTime time) {
    //do something, turn on led, write file, ecc
}

Saturday, 7 May 2011

Humidity and Temperature Sensor - DHT22

 

Description: The DHT-22 is a low cost humidity and temperature sensor with a single wire digital interface. The sensor is calibrated and doesn't require extra components so you can get right to measuring relative humidity and temperature.
Features:
  • 3.3-6V Input
  • 1-1.5mA measuring current
  • 40-50 uA standby current
  • Humidity from 0-100% RH
  • -40 - 80 degrees C temperature range
  • +-2% RH accuracy
  • +-0.5 degrees C
Documents:

Sample

DHT11 MyDHT11 = new DHT11((Cpu.Pin)FEZ_Pin.Digital.Di6, (Cpu.Pin)FEZ_Pin.Digital.Di7);
 
while (true)
{
    if (MyDHT11.ReadSensor())
    {
        Debug.Print("Temperature = " + MyDHT11.Temperature.ToString() + "°C");
        Debug.Print("Humidity    = " + MyDHT11.Humidity.ToString() + "%");                   
    }
    else Debug.Print("DHT11 Error : " + MyDHT11.LastError);
 
    Thread.Sleep(10000);
}
 
FEZ Library 
 
 
 




Friday, 6 May 2011

Camera works with the sensor

Finalmente ho ricevuto il pacco con gli ultimi pezzi per completare la mia opera, il contenuto era della Camera e sensore di temperatura.

Nell'ordinazione ho inserito un supporto per saldare sulle piastre o tenere fermi due pezzi di filo. Questo apparecchio mi è servito per una buona saldatura dei fili della Camera visto che non avevo una presa a 5 pin.
Invece è stato un pò piu rude il collegamento sulla piastra dove mi sono affidato al mio amico Scotch! Non preoccupatevi, nei prossimi giorni provvederò nella saldatura.
Il risultato finale non era quello desiderato, però ormai per il prezzo e le specifiche dell'HW me lo potevo aspettare.
Finaly I received the pack with the last items to complete the my project, in the box were the camera and the temperature sensor.

I bought a support that it cans help me to weld the cable on the plate.
I settled 4 cables on the camera's board because I hadn't a plug for 5 cables.

Instead the connection on the FEZ was a little rude with the magic scotch! I know that is the worst solution but don't worries I will change that as soon as possible.


The final result wasn't that I wished but already due the price and the specification about the HW I could imagine this.

Tuesday, 3 May 2011

MicroSD and Configuration

Nell'attesa che mi arrivano i nuovi pezzi dalla China, ho iniziato a sviluppare il supporto di storage dove si troveranno tutti i dati,foto e altro.

La programmazione non era stata un problema a parte un piccolo intoppo sulla restituzione del Unix timestamp e la regolazione dell'ora.

Nella prossima settimana spero di continuare e testare le nuove funzionalità, il sensore di movimento, termometro e finire la torretta.


While waiting I got the new items from China and then I began to developer the storage system where they will stay all data, pics and other.

The coding wasn't a problem apart a little trouble about the Unix timestamp and the time setting.

The next week I hope to conitnue and test the new features: the motion sensor, therm and the motor system.

Monday, 2 May 2011

PIR and IO Expansion

Oggi con mia grande gioia ho ricevuto alcuni pezzi da DFRobot.com, così ho potuto testare e completare un'altro pezzo del mio progetto.


Ho testato il sensore di movimento e la scheda di espansione con alimentare esterna per le periferiche esterne.


Inoltre ho scoperto che il Real time clock si resetta ad ogni avvio, questo perchè non vi è un condensatore o batteria collegato alla scheda.
Perciò dovro aggiungere alla mia lista una batteria da 3V per tenere il RTC attivo.