Pages: [1]   Go Down
Author Topic: Wireless transmission of signal for alarm system  (Read 1934 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm working on a small fun project that involves setting up multiple wireless alarm systems. Basically, I want to have approximately 10 or more alarms/sensors (not sure whether this will be motion sensitive, small switch, infrared etc...) that will send a WIRELESS signal to an arduino when one or more of them gets tripped. The data transmitted will either be a logical 1 or 0 (alarm triggered or not). The arduino will then communicate with a computer and send an email out notifying me of which sensor tripped. The range will not be more than 50m at most.

My main confusion lies with how to have an arduino listening for multiple wireless sources and keeping track of which source it came from. (Wi-Fi is not an option due to highly unreliable network in my area). I'm hoping to keep the costs down as well since I don't have too much money to spend right now. Any suggestions?
Logged

Peckham London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

NRF24l01+ modules are cheap wireless modules and  you can use up to 6 transmitters transmitting to one reciever. See here:
http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo

I have just used a couple to make a wireless MIDI setup. smiley
Logged

Smooberry Dooberry.

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The arduino will then communicate with a computer and send an email out notifying me of which sensor tripped.
You don't need a computer to send an email from your Arduino. An ethernet shield would suffice.
Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have just used a couple to make a wireless MIDI setup
Mubase, care to share?
Logged

Peckham London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Florinc. smiley
I'd love to show you how I finally got around sending MIDI over these cheap NRF24l01 modules.
I have been wanting to try wireless MIDI for a long time and the other week came across some code for a wireless MIDI pads and joystick controller which controlled pitchbend commands. ( see here https://github.com/honnet/BAD

The transmitter is working on an Arduino MEGA2560 and the reciever on a duemilanove. I have made a shield for the NRF24l01 module using a protoshield with a MIDI din attached for simplicity and it is quite robust.smiley

After studying the code I worked out how to change it to suit 3 pots, an LDR and 2 buttons to trigger noteon/off messages. Oh yeah, the original code used a USBMIDI library which I changed to a standard MIDI library. I initially had some problems with understanding how the NRF24l01s transmitted their information payload but after some help, worked out how to change the payload to reflect the information sent by the controlers and buttons.
Another problem was with getting the transmitter to transmit in increments of 1 ( which originally it was doing in 3 so intead of controller messages going up: 1,2,3,4,5....etc they were going up 1,4,7,10...etc)
The code works and is very smooth, the pots and LDR are connected to A0,A1,A2 and A3 and the note buttons digital pins 18 and 19 . Have a look at the pictures. smiley
I will post the code in another message as I will probably run out of characters if I try to post it on this one..

All the best,
Regards,
Steve ( Mubase )


* midiproj.JPG (129.14 KB, 1600x1200 - viewed 58 times.)
Logged

Smooberry Dooberry.

Pages: [1]   Go Up
Jump to: