I'm trying to create my own Arduino Nano shield for interfacing DS18B20 temperature sensors and I've run into a challenge dealing with compatibility between Nano 33 IoT and Nano Every:
I can't figure out which PIN should I use as a power supply for the DS18B20 sensora?
The Nano 33 IoT has one single power output pin and that's PIN 2 = 3V3. It works perfectly with the sensors.
The Nano Every also has a 3.3V output on PIN 2 but since it's a 5V board, the sensors can't communicate with the Every board since if they are powered by 3.3V they can't supply enough voltage for the digital input pins. Therefore for the Every boards I need to use PIN 12 = 5V output pin to power the DS18B20 sensors.
Now the great challenge is that if I want to make a generic DS18B20 shield which I can use both with Nano 33 IoT and Nano Every I don't really know which PIN to use as a power supply for the Dallas Sensors?
(Should I use a digital PIN always set to "1" to power the sensors? I'm afraid that I could fry the board if I power a lot of sensors)
Any ideas appreciated!