Sonsivri

Electronics => Projects => Topic started by: acinonix14 on May 20, 2015, 04:35:29 16:35



Title: DS18B20 and Proteus ISIS
Post by: acinonix14 on May 20, 2015, 04:35:29 16:35
Hi all,

I try find any code to simulate the 1-wire for DS18B20 in Proteus ISIS?

Has anyone try to simulate or test any code?

Thanks,

Posted on: May 20, 2015, 04:30:53 16:30 - Automerged

I have included the code and the ISIS schematic.

The strange thing is that in real life the code works perfectly (I put 2 ds18B20 and returns the values for the 2 of them).
In other side the Proteus always returns 127.937 C
To help all the work is done from readTemp() kai search() functions in main c file.

It needs additional configuration the proteus isis? (I am using the 7.10 SP0)


Title: Re: DS18B20 and Proteus ISIS
Post by: towlerg on May 21, 2015, 03:29:15 15:29
Just my 2cents (I know that a lot of people will disagree) Isis is pretty solid and the 18b20 model has no doubt been used extensively. Under those circumstances it's quite possible that you are using the device outside its spec. Isis has a rigid interpretation of timings and the like. Please no flames, if you disagree that's your prerogative.

George


Title: Re: DS18B20 and Proteus ISIS
Post by: Robi on May 22, 2015, 12:33:34 12:33
Did both of them get the same rom serial number ? You can edit the component and check for a property that would sound as <ROM Serial Number>. The default value is B8C530. Change one of them to get a different serial number as if they get the same then a conflict will arise.

//Robi// 


Title: Re: DS18B20 and Proteus ISIS
Post by: towlerg on May 22, 2015, 04:36:09 16:36
Robi,

of course you are correct. I changed the serial numbers but still get bad data.

George


Title: Re: DS18B20 and Proteus ISIS
Post by: vbcoder on July 09, 2017, 05:21:02 17:21
I tried getting decent data from DS18b20 with Proteus and Arduino . It was very bad performance as I get one correct value every 20 to 30 typical (-127 degree) incorrect temperature.

If that's your case, so at least you got a confirmation about it. I double checked the connected pins and no doubt it is a buggy component


Title: Re: DS18B20 and Proteus ISIS
Post by: intel on July 10, 2017, 11:41:54 11:41

I tried getting decent data from DS18b20 with Proteus and Arduino . It was very bad performance as I get one correct value every 20 to 30 typical (-127 degree) incorrect temperature.

If that's your case, so at least you got a confirmation about it. I double checked the connected pins and no doubt it is a buggy component

The following links have useful information. I hope it helps :

https://www.theengineeringprojects.com/2015/11/use-18b20-proteus-isis.html (https://www.theengineeringprojects.com/2015/11/use-18b20-proteus-isis.html)

http://www.hobbytronics.co.uk/ds18b20-arduino (http://www.hobbytronics.co.uk/ds18b20-arduino)

http://bildr.org/2011/07/ds18b20-arduino/ (http://bildr.org/2011/07/ds18b20-arduino/)