RF Modules/VirtualWireLibrary/DallasOneWireLibrary

Post here about your arduino projects, get help & ideas, etc!

Moderators: magician13134, adafruit

RF Modules/VirtualWireLibrary/DallasOneWireLibrary

Postby tytower » Fri Oct 23, 2009 9:57 pm

I wanted to get these modules transfering readings from my Freezer and Fridge using Dallas DS18B20 digital temp sensors. This is now working .
See the following posts for a zip file containing the .pde files for the Arduino IDE and the files can be read with any text editor.
Last edited by tytower on Thu Nov 05, 2009 8:02 pm, edited 3 times in total.
tytower
 
Posts: 37
Joined: Thu Sep 17, 2009 11:47 pm

Re: RF Modules/VirtualWireLibrary/DallasOneWireLibrary

Postby franklin97355 » Sat Oct 24, 2009 2:43 pm

It would help if you included links to the parts you are talking about and to the datasheets.
User avatar
franklin97355
 
Posts: 550
Joined: Mon Apr 21, 2008 1:33 pm

Re: RF Modules/VirtualWireLibrary/DallasOneWireLibrary

Postby tytower » Sat Oct 24, 2009 3:31 pm

have modules from Oatley Electronics KST-TX01 433Mhz
http://secure.oatleyelectronics.com//pr ... 5b5683bb6b but they are much the same as Sparkfuns (Adafruit does not have them yet) which is here http://www.sparkfun.com/commerce/produc ... ts_id=8946

And the receiver is GD-V6C from GD Techway again from Oatley at which is one of two choices you can have with these transmitters at http://secure.oatleyelectronics.com//pr ... 8d4c164919

Important note
For 433Mhz use 170mm antenna (6 3/4 inches),bend the ant pins upward and replace with another pin if they break. Solder the antenna directly on to the pin. I am toying with using double sided tape to add a layer of aluminium foil tape across the bottom of the shield for a ground plane but I don't know if I can solder or stick a wire to the aluminium.
Power the transmitter with 12 V as with 6V it is as weak as ..
With 12V it goes 90ft and through 3 Masonry block walls
Putting the transmitter next to the computer while working on it often gives a loud interference burst as the chip transmits so you can ensure it is actually transmitting. If there is anything wrong with your message it simply will not transmit. Then its hard to tell what's happening.
Attachments
RF_VirtualWire_Dallas.zip
(3.46 KiB) Downloaded 8 times
Arduino boardIMG_4530.jpg
Arduino boardIMG_4530.jpg (61.51 KiB) Viewed 142 times
Last edited by tytower on Tue Nov 10, 2009 5:59 am, edited 6 times in total.
tytower
 
Posts: 37
Joined: Thu Sep 17, 2009 11:47 pm

Re: RF Modules/VirtualWireLibrary/DallasOneWireLibrary

Postby tytower » Mon Oct 26, 2009 1:29 am

Sorted see prior post
tytower
 
Posts: 37
Joined: Thu Sep 17, 2009 11:47 pm

Re: RF Modules/VirtualWireLibrary/DallasOneWireLibrary

Postby tytower » Tue Nov 03, 2009 2:02 am

I noticed while I was doing this the Dallas library versions changed so this compiles onversion 3.00

If you have 3.1 then it needs to be changed for three names I think oneWire constant changes, getTemperatures() becomes requestTemperatures() and deviceCount() becomes getDeviceCount(). Simple function name changes only-see Dallas example "Multiple" or "Single" and change accordingly

The files might be available here
http://stigern.net/upload/download.php? ... 8b75a2b90a
Last edited by tytower on Thu Nov 12, 2009 2:54 pm, edited 1 time in total.
tytower
 
Posts: 37
Joined: Thu Sep 17, 2009 11:47 pm

Re: RF Modules/VirtualWireLibrary/DallasOneWireLibrary

Postby tytower » Thu Nov 05, 2009 8:14 pm

You can also set and check the internal alarms in each device by adding in the following code


//set alarms
sensors.setHighAlarmTemp(Freezer, 0);
sensors.setLowAlarmTemp(Freezer, -17);
//sensors.setHighAlarmTemp(Fridge, 4);
//sensors.setLowAlarmTemp(Fridge, 1);

Serial.println("Freezer High = ");
Serial.println(sensors.getHighAlarmTemp(Freezer));
Serial.println("Freezer Low = ");
Serial.println(sensors.getLowAlarmTemp(Freezer));
Serial.println("Fridge High = ");
Serial.println(sensors.getHighAlarmTemp(Fridge));
Serial.println("Fridge Low = ");
Serial.println(sensors.getLowAlarmTemp(Fridge));


if (Serial.println(sensors.alarmSearch(Freezer)));//If these come back as 1 then the alarm has been triggered

if (Serial.println(sensors.alarmSearch(Fridge)));//If these come back as 1 then the alarm has been triggered
tytower
 
Posts: 37
Joined: Thu Sep 17, 2009 11:47 pm


Return to Arduino

Who is online

Users browsing this forum: No registered users and 7 guests

Stuff to buy from the Adafruit store and links to product documentation!


x