Friday, December 24, 2010

Playing with the GROVE System using Netduino

Recently I bought the GROVE starter bundle pictured below

But the cables (and the LCD) went missing. When I complained about the missing items I was replied with the information that they will arrive in a few days. The cables arrived yesterday indeed, but I'm still waiting for the LCD.

For testing purposes I connected the expansion shield (the big board with many white connectors on it) to the Netduino, and I started testing the modules. Here is what I found out:

1. The majority modules components are connect almost directly to the microcontroller, there is no I2C converter. I was expecting a different somehow since the jigsaw puzzles apparently were meant to be connected to a bus.

2. Led module:
D1 drives the Red led.
D2 drives the Green led.

2. Buzzer module
It is an ON/OFF buzzer controlled by D1 alone. You can't control the frequency and if you send a square wave, you'll get a strange flickering sound.

Wednesday, December 15, 2010

Using the Codec-Adaptative Wireless Relay with the 315Mhz Wireless Car Key Fob

I recently bought the Codec-Adaptative Wireless Relay

And the 315Mhz Wireless Car Key Fob

Luckly they work together. And quite well. As soon as you get yours, all you need to learn how to use them is to plug the 12 V DC power source to the Relay.

You can't program the Key Fob, but you have to program the Relay.

1. Choose the operation mode for the Relay:

A. Latch – Connect pin 1 and 2 – all memorized signals toggles the relay state.
B. Interlock – Connect pin 2 and 3 – some signals activates the relay, while other signals deactivates it.
C. Non-latch – Empty – the relay remains in a normal state except when it is receiving a expected signal. As soon as the signal reception is interrupted, the relay returns to its normal state.

2. You can clear all memorized signals by pressing the programming button until the led goes off.
3. You can add program new signals by pressing the programming button and then sending the signal.

The key fob emits different signals for each button and button combination. So button 1 sends a different signal than button 2, and both signals are different from pressing button 1 and 2 together. A single key fob can emit up to 16 different signals, but due to hardware limitations you can only use 15 of these, by pressing button combinations.

Two key fobs are unlikely to emit the same signals, as the main component (HS1527) datasheet states that it uses a 20 bit random salt for its signals. That means that you can have up to 1M (1,048,576) different key fobs.

Friday, December 3, 2010

RFBee wireless communication module (and development board!)

I bought this XBee pin compatible RF replacement module, called RFBee
For my surprise it turned out to have a programmable ATMega168. What a nice module! I'm loving it.
Once you learned that it has a ATMega168 you may be tempted to overwrite the firmware choosing any 168 board in your Arduino IDE. But beware that as stated in the manual it will only work with the "Arduino Pro or Pro Mini (3.3v, 8MHz) w/ATmega168" board. Even if it doesn't show any error messages you may experience malfunction if you chose another target.