I have one more question regarding you arduino example with bc66, ds1820 and bipolar digital NPN (in my case i used 2N3904) according to transistor shematic. I commented out display code from main.cpp and now it compiles successfully.
@WizIO I switched board to 3.3V (I measured) but still I program stuck in do-while loop (Serial1.available()) - do you have any other advice what else can I try?
Anyway, I’m not sure do I have DS18S20 or DS18B20 temperature sensor (it’s sealed waterproof version) - can that make difference? Or 2N3904 is not good choice ?
(when i’m disconnecting sensor from VCCB line i’m geting some bytes …)
ok it seems that problem was 4.7k on 3.3V pull-up resistor i connected to 5V now i get data but every measure fails, method DS18X20_read_decicelsius fails …
i’ll try to change pull-up resistors (R2 & R3 from schematic one-wire-to-uart) and connect it to 3.3V
Hello,
I am also trying to read DS18B20 with the board at 5V.
But I don’t have 7002 transistors. Can I use ZXMN3A01F instead?
I am not sure about how to select transistors for the board
Hope you can help me guys,
Thanks
Hi @WizIO
I have done some tests using OpenCPU GPIO API Ql_GPIO_SetLevel() takes around 20uS.
So, theoretically, we can achieve a 50kHz (without accounting for bit processing overhead) frequency. The 1-Wire standard frequency is 15.4kbps.
Hence, GPIO could be fast enough for 1-Wire communication, no need for UART, do you agree?
I will try to do some tests
I have any problem with GPIO-s… noise… with external pull-up, pull-down resistors? Quectel - is there any protection ( volttage, current ) GPIO-s ???
shot - GPIO2 - Olimex level convertor to 3.3 - Resistor 2.7k to GND
if R is connected to VCC-3.3 the image is reversed ( noise is down )
@WizIO so you managed to support DS18x20 and DHT(11,22) sensor without any additional module (1wire to uart)? i suppose you only have pull-up ressistors (3.3k ohm?) and connected both sensors on 3.3V?
Hi @WizIO,
Great that you achieved that and you could share it with us.
I currently have an Olimex BC66 devkit module, which has a level converter to 5V.
You mentioned in a previous post that you were seeing noise when using a level converter, have you tried it with this module (BC66 devkit)? The BC66 pins are not directly accessible so I am not sure I can connect the sensor directly to GPIO
Thanks