@ccs-hello
Thanks!
Posts made by Jett Walcott
-
RE: Omega2+ DS18B20 Digital temperature sensor Error
@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:
Here is a few photos of the end result:
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! -
RE: Omega2+ DS18B20 Digital temperature sensor Error
@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. -
RE: Omega2+ DS18B20 Digital temperature sensor Error
@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. -
RE: Omega2+ DS18B20 Digital temperature sensor Error
@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! -
RE: Omega2+ DS18B20 Digital temperature sensor Error
@cas
@ccs-hello
Yes, I have wired a 4.7K pull-up resistor connecting the DQ line and the Vcc (3.3V) and I am using the latest firmware.
Okay, I will try to get it working on a breadboard with the spare probe and latest firmware and see if that works.
Is it possible I am not inputting the code correctly?
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? -
RE: Omega2+ DS18B20 Digital temperature sensor Error
@cas
I am using the expansion dock and the setup suggested in the tutorial.
I will try rewiring it using another DS18B20 but I don't think that is the problem. It is a completely new sensor from Adafruit.
Here is a couple of photos:
I twisted the wires together and then used a soldering iron to join them and then covered it in heat shrink.
Thanks! -
Omega2+ DS18B20 Digital temperature sensor Error
Hi Guys,
I am attempting to wire and get readings from the Waterproof DS18B20 Digital temperature sensor using the Omega2+.
I have followed the Onion Docs 1wire tutorial (https://docs.onion.io/omega2-docs/communicating-with-1w-devices.html) and additionally wired in a 4.7k resistor, which is required as a pullup from the DATA to VCC lines. I am using 3.3V as the tutorial says to do.
However when I enter the command
"cat /sys/devices/w1_bus_master1/w1_master_slave_count" into the terminal the output reads 2 or sometimes 3 instead of 1.
When I enter the command "ls /sys/devices/w1_bus_master1" the terminal shows numbers such as 00-800000000000 instead of the serial number.
I originally used GPIO pin 19 and have tried changing the GPIO to 1 and 11 but the same thing happened. I have also tried changing the power line to 5V instead of 3.3 but that nothing either. I had the Omega plugged into my laptop USB port and tried plugging it into an iPhone charger port put that did nothing.
I have also tested it with an oscilloscope which confirmed that since it was working and there was a straight line that the wiring is correct and it must be a problem with the code.
Any help or tips would be greatly appreciated. I am not sure where I am going wrong.
Here is a screenshot of the code: