Arduino Pro Mini & DS18B20
-
Hi,
I tried for 2 days now to build this project https://www.mysensors.org/build/temp. Unfortunatly I am not able to get this temperature read out with a Arduino Pro Mini. When I use a Nano it works. !?!
What could be wrong here? I tried 2 different Arduino Pro Mini boards but both don't work.
What could be different between the Arduino Pro Mini and Nano?
-
Do have the famous 4k7 Ohm resistor from VCC to data pin? DS18B20 min voltage is 3.0V and regardless if you use a 5V or 3,3V Arduino voltage it should work.
Maybe if you use read too quick it can't get enough voltage/power to the DS18B20 in parasite power mode
-
Yes, I have the 4k7 resister from VCC to data pin. The voltage is 3.3.
-
when compiling in Arduino IDEdo you remember to select correct Arduino board, Pro Mini and choose 3.3v 8MHz.
Tools->Board->"Arduino Pro or Pro Mini"
Tools->Board->Processor->3,3V 8MHz
Maybe if you forget this you will compile with wrong oscillator frequency and get wrong timings to your communication to DS18B20
-
-
@martim
Good that you replied what made the trick for you, so other can read what to check
Godt Nytår
-
@bjacobse
Couldn't agree more.
This might just be the problem I face.
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 9 days ago • bocalexandru 8 days ago -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47