Giter Site home page Giter Site logo

Comments (9)

cpetrich avatar cpetrich commented on August 25, 2024 1

Interesting.

  1. I have tested temperature readings at temperatures other than 0 C sporadically, only, because that takes considerably more effort to get right than a measurement in an ice--water bath at 0C. I don't expect the offsets at 0 C will tell you much about the errors at other temperatures, though.

  2. I have two probes with sensors that have ROMs similar to yours, and those are Family B1:
    28-96-E7-8E-5A-14-01-C2
    28-02-B7-13-5F-14-01-73

from counterfeit_ds18b20.

cpetrich avatar cpetrich commented on August 25, 2024 1

For future reference, I've added a sketch that determines what Family a sensor belongs to based on low-level implementation details (i.e. using undocumented function codes): classify_fake_DS18B20.ino

from counterfeit_ds18b20.

cassiel74 avatar cassiel74 commented on August 25, 2024

Ok, so is not that easy to tell which family they belongs to.
I see that A2, D1 and D2 have offsets up to 3° so my guess is that mine should be in those families.

For the sake of clarity, I am not really doing tests but just noticed this discrepancy between my heat pump send temperature and the DS18B20 being in contact on the send/return pipes similar to this

from counterfeit_ds18b20.

cpetrich avatar cpetrich commented on August 25, 2024

Make sure there's insulation surrounding the pipe with the sensor otherwise your measurement error will increase the more the pipe temperature differs from the ambient temperature (i.e. you measure a temperature that lies between pipe and air temperature).

from counterfeit_ds18b20.

cassiel74 avatar cassiel74 commented on August 25, 2024

Yes, there's insulation surrounding the pipe and thermal paste all around the probe.

from counterfeit_ds18b20.

cassiel74 avatar cassiel74 commented on August 25, 2024

sketch_may24a.ino: In function ‘void loop()’:
sketch_may24a.ino:391:1: error: jump to label ‘err_C’ [-fpermissive]
sketch_may24a.ino:380:68: note: from here
sketch_may24a.ino:381:15: note: crosses initialization of ‘uint8_t cfg2’
sketch_may24a.ino:391:1: error: jump to label ‘err_C’ [-fpermissive]
sketch_may24a.ino:371:68: note: from here
sketch_may24a.ino:381:15: note: crosses initialization of ‘uint8_t cfg2’
sketch_may24a.ino:372:15: note: crosses initialization of ‘uint8_t cfg1

from counterfeit_ds18b20.

cpetrich avatar cpetrich commented on August 25, 2024

changed the script so it compiles without the (Arduino IDE default) -fpermissive compiler option

from counterfeit_ds18b20.

cassiel74 avatar cassiel74 commented on August 25, 2024

it compiles but I got this output (I am running it on linux IDE)

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20

from counterfeit_ds18b20.

cpetrich avatar cpetrich commented on August 25, 2024
  1. avrdude is the program used to upload the program to the board, i.e. this error has nothing to do with the script and should appear regardless of what program you try to upload. Consider checking the Arduino forum for pointers.

  2. I've never used the Linux IDE so here are some things to check based on the way the Windows version works. I'm assuming you connect the board to the computer through a plain USB cable and you use something like an Uno or so that doesn't need the reset button pushed manually.

    • select the board in "Tools/Board"
    • select the port the board is connected to in "Tools/Port"
    • close any terminal (program) connected to that port (also check any other instances of the IDE)
    • use "Sketch/Upload" rather than "Sketch/Upload using programmer"

from counterfeit_ds18b20.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.