navitron
 
Renewable Energy and Sustainability Forum
UK's most popular Renewable Energy Forum May 25, 2012, 04:28:53 PM *
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 ... 6 7 8 9 [10] 11 12 13 14 ... 16   Go Down
  Print  
Author Topic: A Wide Variety of free 1-wire slaves arriving soon. What do you need?  (Read 29861 times)
ericw
Hero Member
*****
Offline Offline

Posts: 735


« Reply #135 on: August 13, 2010, 11:52:47 AM »

Karl,
I've set up owfs-dsl and I'm getting exactly the same results as you are.
I think I might know what is causing the problem, but need to do some checks on the data being sent on the bus.
If I'm right then it will be fixable.
Watch this space for updates

Eric
Logged
ericw
Hero Member
*****
Offline Offline

Posts: 735


« Reply #136 on: August 17, 2010, 09:01:30 PM »

Karl,

I have found cause of the problem and modified the code so that the A & B counters now display correctly in OWFS as well as the Windows programs.

Eric
Logged
ChaduRoc
Newbie
*
Offline Offline

Posts: 12



« Reply #137 on: August 17, 2010, 10:00:07 PM »

ReHi Eric,

perfect work! I'll try and report.

Thank you very much!

Greets
Karl M.
Logged

The Truth Will Set You Free.
ChaduRoc
Newbie
*
Offline Offline

Posts: 12



« Reply #138 on: August 27, 2010, 08:40:40 AM »

Hi Eric, hi All!

Nearly two weeks ago the counter has been inserted into my 1-wire-net.
Had no problems in this connection, the counter works absolutely
precise, no errors with the other devices, just perfect!
 
For debouncing manners I added a 100nF capacitor in
parallel to the reed-switch, works fine.

Great thanks to Eric for this shiny piece of work!

Regards
Karl M.
« Last Edit: August 27, 2010, 08:48:43 AM by ChaduRoc » Logged

The Truth Will Set You Free.
StBarnabas
Hero Member
*****
Online Online

Posts: 2111


St Barnabas Chapel (2009)


« Reply #139 on: August 27, 2010, 07:39:29 PM »

Hi
Sorry have been away on holiday. Eric and Karl great work - haven't looked at my emails yet prospect too depressing. Great that everything worked out. Karl please stay in touch we have much to learn from you also.
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.
StBarnabas
Hero Member
*****
Online Online

Posts: 2111


St Barnabas Chapel (2009)


« Reply #140 on: September 02, 2010, 08:38:55 AM »

Karl,

I have found cause of the problem and modified the code so that the A & B counters now display correctly in OWFS as well as the Windows programs.

Eric

Eric
is possible to have a new version of the code for the Chip Factory?
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.
xtal
Newbie
*
Offline Offline

Posts: 46



« Reply #141 on: October 06, 2010, 03:10:34 PM »

I have   my hvac wired with 4 temp sensors and was impressed with how well it work..
I have been trying to program 12f683 using mikrobasic to emulate  and found this forum

I would like to get the source code for the DS18B20  and  the 4 address pics

Could somebody email to me      msw101144@charter.net     thx
I would like to make clip on amp meter
Logged
StBarnabas
Hero Member
*****
Online Online

Posts: 2111


St Barnabas Chapel (2009)


« Reply #142 on: October 06, 2010, 03:22:48 PM »

Xtal
could you tell me a bit more about yourself? This offer was intended for established forum members. Comsiderable intellectual effort has gone into writing this code - all crafted (bodged?) in assembler. What can you offer in return?
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.
xtal
Newbie
*
Offline Offline

Posts: 46



« Reply #143 on: October 06, 2010, 04:42:22 PM »

Well been in computer industry 40 years ,,,software and hw mainly HW since the mid 70's
I like to work on a project until I can see its end then fast lose interest .
I am at retirement age but must keep working to be able to have health ins on wife...
My interest in this got tweaked when I wired my home AC to monitor Suction line temp, Liquid line temp, outside air temp , and exhaust temp, so I could watch for any trends etc....and figured there could be a lot more things done ...

As to what I can do ,, I can test code,,, I have programed some C some basic and micro chip asm...have postings in RCGroups/DIY
Logged
StBarnabas
Hero Member
*****
Online Online

Posts: 2111


St Barnabas Chapel (2009)


« Reply #144 on: October 07, 2010, 02:56:12 PM »

Hi Xtal
I have sent you a copy of the quad switch code. Please let us know how you get on
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.
xtal
Newbie
*
Offline Offline

Posts: 46



« Reply #145 on: October 16, 2010, 06:19:56 PM »

I had 9 ds18b20 on my network ,, 4 on outside AC  5 in shop ..using LOGTEMP
I removed 4 in shop and attached the quad ...

Ibutton viewer sees 9 with occasional error
Onwireviewer sees 9 wirh occasional error

LOGTEMP only sees the quad  ....  any ideas HuhHuhHuh

tried to modify wait_for_ip to use tmr0 ,,, but only see 1 device...

I'm using serial port with 2 zeners/2 shottly and 1.5k pullup

I just order 2 elcheapo from china that was mentioned in another post

modified code


;WAIT_FOR_IP
;        BCF     GPIO,2                  ; make sure GP2 is still outputting a 0
;        MOVLW   TRISIO                  ; \_ point INDF at TRISIO to allow slave
;        MOVWF   FSR                     ; /  to pull DQ low as quickly as poss
;        clrf    TMR0    ;*****
;        BSF     INDF,2                  ;   1 240  drive DG hi (make GP2 i/p)
;                                        ; cs cc (cycles, cycle count)
;r1:     BTFSC   DQ                      ;  1  0 \_ Wait in tight loop for DQ to
;        GOTO    r1                      ;  1  1 /  go low;
;
;--- line is low now
;
;
;r2:     btfsc    DQ                     ;
;         goto    WAIT_FOR_IP            ; less than 480
;        movfw    TMR0                   ;
;        sublw    d'59'                     ;
;        btfsc    CARRY           ;
;         goto    r2                     ; loop
;END_OF_IP: clrf TMR0   
;r3:     btfsc    DQ                     ;
;         goto    r4                     ; goto presense
;        movfw    TMR0                   ;
;        sublw    d'59'                     ; less than 480+480 960
;        btfsc    CARRY           ;
;         goto    r3                     ;
;         goto    WAIT_FOR_IP            ; loop
;
;r4:
;
;        MOVLW   D'19'                   ;  1  2  Wait for tPDH of 30us
;        MOVWF   DELCTR                  ;  1  3  => 3 + (3x19 - 1) = 59
;
;DELPP1  DECFSZ  DELCTR,1                ; 56 59 \_ cycles = 3n - 1
;        GOTO    DELPP1                  ;       /
;
;        BCF     INDF,2                  ;  1 60  drive DG low (make GP2 o/p)
;
;                                        ;  cs  cc
;        MOVLW   d'120'  ; 3*120/2=180 D'79'                   ;   1   2 \_ Make PP 120us long
;        MOVWF   DELCTR                  ;   1   3 /
;
;DELPP2  DECFSZ  DELCTR,1                ; 236 239 \_ cycles = 3n - 1
;        GOTO    DELPP2                  ;         /
;
;        BSF     INDF,2                  ;   1 240  drive DG hi (make GP2 i/p)
;
;END_OF_PP
;        BTFSS   DQ                      ; \_ Wait for DQ to go high at end of
;        GOTO    END_OF_PP               ; /  the presence pulse
;
;        CLRF    ROMIDX                  ; Reset all ROM IDs eXclusion status



Logged
StBarnabas
Hero Member
*****
Online Online

Posts: 2111


St Barnabas Chapel (2009)


« Reply #146 on: October 17, 2010, 11:33:47 AM »

hi Xtal
I would need to know more about your setup. Mike spent a lot of time with a logic analyser getting the timings right so I suspect it is not the PIC code that is the problem. Currently I have an experimental network with 2 HalfBeeswitch chips (8-switches) two ADC chips (4 ADCs) a HalfBee Humidity/Temperature sensor interfacing to DHT11 and a HalfBee counter (DS2423 look alike) and some genuine Dallas devices (20 devices on the network). These are spread over 4 solder-less breadboards connected by telephone wire. LogTemp is quite happy but I get an occasional error with OneWireViewer. There is a lot of traffic on the bus and I find that the system is much happier when searching is turned off - sadly there seems no option to do this with LogTemp.

What master are you using? I'm a bit puzzled about your serial port reference - 2 zeners/2 shottly and 1.5k pullup ?

Are you using parasitic or powered mode for your 18B20's
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.
xtal
Newbie
*
Offline Offline

Posts: 46



« Reply #147 on: October 17, 2010, 03:41:45 PM »


here's a post I made showing the interface

http://www.rcgroups.com/forums/showthread.php?t=1299659
Logged
xtal
Newbie
*
Offline Offline

Posts: 46



« Reply #148 on: October 17, 2010, 03:51:01 PM »

The Wait for Ip code looks like you only check for > 960 us 
I see no handling of < 480 us
or am I or am I mistaken,,,,,
I have found that this 11 lines of code is very sensitive code ,,,ie I've been unsuccessful
in using TMR0 

I did shorten the presense delay  to cnt=70 helped a little but not much....
My interface is probably the problem , will need to wait for the ones I just ordered..
Logged
ericw
Hero Member
*****
Offline Offline

Posts: 735


« Reply #149 on: October 17, 2010, 07:08:30 PM »

The Wait for Ip code looks like you only check for > 960 us 
I see no handling of < 480 us
or am I or am I mistaken,,,,,

Xtal
You have overlooked that the clock is running @ 8Hhz so a cycle time is 500nSec and the test for 962 cycles is 480usec.
So far every test has shown the chips have worked correctly with the usual interfaces, however there is aways a first time for them to fail.

The timings for the 1 wire bus are published in the Maxim data sheets and some of them - particularly the ones around the end the begining of the a write cycle can only be met by pushing the chip to its limits. You are highly unlikely to be able to do this using a high level language.

I think you should repeat the test when you have installed a full spec interface.
Logged
Pages: 1 ... 6 7 8 9 [10] 11 12 13 14 ... 16   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!