Announcement

Collapse
No announcement yet.

SOS, DS18B20

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16


    In your code, why are you setting and clearing I/O ?

    pin_HI(1);temp_MSB := OW_Read();pin_LO(1);
    Regards,
    Dave

    Comment


    • #17


      I have 2 sensors... but I take the same...
      I delete pin_HI(1); and pin_LO(1);

      Comment


      • #18


        Do you have the speaker jumper removed?
        Regards,
        Dave

        Comment


        • #19


          No, I want it..

          Comment


          • #20


            Try removing the speaker jumper to see if 1wire then works on IO2
            Regards,
            Dave

            Comment


            • #21


              I use a switch to switch the operations. I works right. My problem now is the value that it returns ( FF 07). Any ideas??

              Comment


              • #22


                If there is nothing else connected to the pin it should work.
                Make sure you are not reading or writing to any pins during the onewire sequence,
                and cut your code down to the absolute minimum required for a simple test.
                Might be a good idea to post your 'clean' code again for a close look.
                Regards,
                Dave

                Comment


                • #23


                  sorry if I become annoying, but it is very important for me to complete soon this project because I will present it at an informatis festival.

                  Comment


                  • #24


                    #platform "GOLDELOX-GFX2"#inherit "4DGL_16bitColours.fnc"
                    var temp_LSB, temp_MSB;func main()
                    pin_Set(ONEWIRE,IO1);
                    gfx_Cls();
                    repeat
                    if(OW_Reset())print("No device connected");while(1);
                    elserepeattxt_MoveCursor(2, 0);
                    OW_Reset();OW_Write(0xCC);OW_Write(0x44);OW_Reset();
                    OW_Write(0xCC); OW_Write(0xBE);

                    temp_LSB := OW_Read();
                    temp_MSB := OW_Read();

                    txt_MoveCursor(0,0);print("temp: ", [HEX] temp_LSB, " ", [HEX] temp_MSB);
                    foreverendifforever
                    there is nothing connected to this pin

                    Comment


                    • #25


                      I would still say its the wrong way round from the picture - have you changed that?

                      Comment


                      • #26


                        yes, I have changed it.

                        Comment


                        • #27


                          from my history of these - you will have damaged it - sorry

                          Comment


                          • #28


                            I will buy a new one... and I will try again... thanks a lot!!!!

                            Comment

                            Working...
                            X