Hello,
I want to use the ATmega32-16PU together with a Dallas temperature sensor DS18S20.
I connected the data line of the DS18S20 to PIN 18. Within the code I use:
#define ONE_WIRE_BUS 12
See attached sketch. It's the the one that comes with the Arduino Library for Dallas Temperature ICs.
The answer I get on serial is the following:
Requesting temperatures...DONE
Temp C: -127.00 Temp F: -196.60
Whe I pull out the data line I get the following answer:
Requesting temperatures...DONE
Temp C: 0.00 Temp F: 32.00
So I know at least it's the right pin.
I know the sensor is ok because I checked it with an Arduino UNO just after the trial with the ATmega32-16PU.
Are there any incompatibilities with OneWire or is it the wrong port I used at the ATmega32-16PU ?
Thanks for your help.
Regards, AgeBee
single.ino (3.91 KB)