I have a project which involves a DS18B20 sensor. I know it has a certain "adress" which can be recognized by the arduino.
I want to use this as protection. For example, how can I make when the DS18B20 is not on the board with the very specific adress ( which means only one sensor to be right for the board, never another one) and when it's not on the screen shuts off. Possibly 7 segment display shuts off.
I want the starting and ending point of the potentiometer not the be min and max, but I want to set the minimum and maximum values myself. For example, 15% of value to be 0, and maximum to be for example on 79% to be 10. After that, 5 should be manually - by me - for example I want 5 to be 60%.
I want the scale or the map, to be divided manually - for me to set the values.
How can I make TWO DIGIT 7-segment display to read the value from the potentiometer? For example, if the resistance is greater than 35 ohms, the display shows the digit 1. If the resistance is greater than 50, the display shows the digit 2 and so on.
So basically, I want to manipulate the value of the resistance.
Here is what I need in pseudo-code :
if(value > 0 && value <= 35) displayValue = 00; if(value > 35 && value <= 50) displayValue = 01; if(value > 50 && value <= 75) displayValue = 02;
And if possible the PCB to have as much less parts as possible.