navitron
 
Renewable Energy and Sustainability Forum
UK's most popular Renewable Energy Forum May 23, 2012, 09:54:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Anyone wishing to register as a new member on the forum is strongly recommended to use a "proper" email address - following recent spam/hack attempts on the forum, all security is set to "high", and "disposable" email addresses like Gmail, Yahoo and Hotmail tend to be viewed with suspicion, and the application rejected if there is any doubt whatsoever
 
Recent Articles: UPDATE ON DECC APPLICATION FOR LEAVE TO APPEAL TO THE SUPREME COURT | Yingli Green Energy's PV Module Ranks No.2 in TUV Rheinland Energy Yield Test | Navitron Solar Showers at Glastonbury for Year 5!
   Home   Help Search Login Register  
Pages: 1 2 3 4 5 [6]   Go Down
  Print  
Author Topic: No frills low cost standalone 1 wire datalogger  (Read 8340 times)
ericw
Hero Member
*****
Offline Offline

Posts: 735


« Reply #75 on: January 31, 2011, 05:13:19 PM »


On another note I have managed to purchase 2 PIC16F1827s - these are a bit like golddust at present. It should be possible to create a multi-device 1-wire emulator, or an 8 channel ADC if there were any interest. These are of the order of £1 each.


I'm appropriately green with envy. I do have some 16F688's which can be used for quad ADC's and have code for a DS2408 (8 channel I/O) substitute if there is any interest.
Logged
ericw
Hero Member
*****
Offline Offline

Posts: 735


« Reply #76 on: December 17, 2011, 03:57:28 PM »

As a new version of the Arduino code (1.0) has been released so I have updated the original sketch to be compatable with this new version.

Attached is the new code for the basic (ie no Nokia display) datalogger. The extension will need to be changed to .pde before use.

A different and more flexible RTC library has been used (but it needs to have the include statements modified for Arduino 1.0)
The 'summertime' code has been re-written so it now changes the time in the RTC chip.

Without any modification it will run standalone, writing one file every day on an SD card containing the one wire data logged every 5 minutes in CSV format.
It will log the most popular devices, DS18B20 for temperature and DS2423 for pulse counting of flashing LED meters.

* dlog_2011.txt (9.61 KB - downloaded 108 times.)
Logged
StBarnabas
Hero Member
*****
Offline Offline

Posts: 2111


St Barnabas Chapel (2009)


« Reply #77 on: December 18, 2011, 09:06:40 AM »

Eric
many thanks. It should be fairly easy to upgrade it to have a Nokia display, so if anyone is interested I will have a go. Sadly I never had time to do much with the 16F1827, however they are no becoming easily available as is indeed the 12F1840. Though I have just checked the 1840 at RS http://uk.rs-online.com/web/p/microcontroller/7432681/ and sadly it is out of stock. Hopefully Rowan managed to get some. In any event porting the code from the 12F683 should be straightforward. A quad ADC with 1-wire connection for under £1.00 would have many uses.
Sean
Logged


Gestis Censere. 40x47mm DHW with TDC3. 3kW ASHP, 9kW GSHP, 3kW Navitron PV with Platinum 3100S GTI, 6.5kW WBS, 5 chickens. FMY 2009.
Pages: 1 2 3 4 5 [6]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!