Using relays as vibrators for feedback
Bistable Relay
A relay can be used to produce vibrations by exploiting the mechanical momentum generated by the coil opening and closing the switch.

I'm using an OMRON G6CK-2117P-Us rated for 250VAC/8A 30VDC/8A coupled to a Jeenode to do the dirty job. The advantage of that is that you can also control the frequency via the radio module rather than giving serial commands or using buttons.
The breakout board is provided by Ciseco and I worked out the layout for the PIN functions, because it's not on their website!

This relay is bistable and thus have 2 control signal: SET-RESET.
Pin 4 is the Vcc that can be either 5V or 3.3V, pin 3 is the GND, pin 1 is the SET command and pin 2 is the RESET command.C,N,P are the connections for the actual switch but we are not going to use it for this applicaion.
Control
The idea is to switch very quickly between the SET and RESET state generating a regular control from the Jeenode.
It is very important to use a grey code to give the command if we don't want to damage the relay.
The control sequence is:
| SET | REST |
| 0 | 0 |
| 1 | 0 |
| 0 | 1 |
| 1 | 0 |
| .. | .. |
The controller must never generate the 1-1 condition as in the dummy code provided:
Cabling between the Ciseco bistable relay and the Jeenode.
| Black wire | Gnd on Port 3 |
| Blue wire | Pwr on Port 3 |
| Yellow wire | Digital on Port 3 |
| Red wire | Digital on Port 2 |
In action:
Dim lights Embed Embed this video on your site
Last Updated (Friday, 06 August 2010 10:17)



