Omega2+ DS18B20 Digital temperature sensor Error



  • @Jett-Walcott
    Omega2 is very picky on its power supply.

    Also, in no time, even just for one second, apply higher voltage than 3.3V (I would pad it by 5% more) to Omega2's Vcc supply.



  • @ccs-hello
    Do you know which power supply would be better for the DS18B20 sensor?
    Do you mean I should never use the Omega2's 5V pin with the sensor or something else?
    Thanks for your help!



  • @Jett-Walcott said:

    Is it possible I am not inputting the code correctly?

    Unlikely, although one error would be to specify a different GPIO pin in the command to the one to which the sensor is connected, but I doubt you'd be doing that. I suggest you stick to GPIO18 on the expansion board until you've got it working, as using that one is unlikely to cause clashes with any of the reserved ones.

    Do you know if the power supply (iPhone charger or laptop) and the voltage (3.3V or 5V) has any effect on the functionality of the sensor?

    I suggest using a power supply of 1A or more. The cheaper chargers (500mA) are not that great and I suppose could lead to problems such as this.
    Adafruit say that the sensor is compatible with +3.0V to +5.0V, so you ought to be safe whichever Omega2 output voltage you choose (3.3V/5.0V).

    If I understand the context of the comment correctly, @ccs-hello is referring to input voltage to the Omega2. i.e. Don't power the Omega2 vcc directly with more than 3.3V, but since you are using a dock to power it, I doubt you will have any problem there.



  • @cas
    Yes, I have made sure I am using the correct GPIO pins each time. I will use GPIO18 for my second try.
    Thanks for clarifying! I will post an update when I have used the second probe and a breadboard. Hopefully it works.



  • @Jett-Walcott
    On reflection, I'd suggest you stick to using 3.3V to power the sensor. Or if you power it with 5.0V, at least measure the voltage on the data pin before connecting it to your dock, just in case. At least until someone with more hardware experience chimes in.... Of course it's going to be 5V at the data pin, if you power it with 5V and don't adjust the voltage with a voltage divider like a regulator, it's a 5V circuit. Doh!



  • @cas said:

    Adafruit say that the sensor is compatible with +3.0V to +5.0V, so you ought to be safe whichever Omega2 output voltage you choose (3.3V/5.0V).

    Ok, I wasn't thinking clearly when writing this, so while true from the perspective of the sensor, it's bad advice from the perspective of the Omega2.
    What I should have said is that the sensor can be safely powered by either voltage, but use the 3.3V on the Omega2.

    I think I need to take a time out from giving advice here. I'm not thinking clearly. šŸ˜ž



  • @cas
    That's all good! Thanks for letting me know.
    I will make sure to use the 3.3V pin on the Omega2 just in case.
    I am wiring it up tonight.



  • @cas
    @ccs-hello
    I wired the new sensor to a breadboard last night with the 4.7K resistor between Data and VCC lines. At first it didn't work but after doing a factory reset of the Omega and and going to /Users/jett/.ssh/known_hosts (through Go To File in Finder) and deleting all the text there I put in the commands again and it worked! I then added the second temperature sensor into the circuit and they both work at the same time.
    Here is the photos of the code process:
    0_1522202265306_Omega2+ Code 1.png

    0_1522202295761_Omega2+ Code 2.png

    Here is a few photos of the end result:
    0_1522203117172_IMG_5278-1.JPG

    0_1522203147911_IMG_5277-1.JPG

    I don't know what happened with the host identification at the end there. I wonder if that was part of the problem in the beginning. Also since I had the 4.7K resistor under the heatshrink I realised I didn't need another one on the breadboard.
    Anyway thanks for your help guys! Now it's time to try and get the temperature readings showing up on Blynk and Amazon AWS!



  • @Jett-Walcott
    Good progress. Congrats.
    If both 1-wire sensors sharing the same input line, then only one 4.7K pull-up resistor is needed.



  • @ccs-hello
    Thanks!



Looks like your connection to Community was lost, please wait while we try to reconnect.