i was working on a project based on Atmega328p now im in the final part of it & i need to use 4 Analog inputs of it
1 : read push buttons
2 : read 2 Ntc's
3 : read the mains Voltage
& im using the internal 8Mhz oscillator
is that ok ?
can i read all of this inputs ?
hi Guys
here is a schematic of the Analog section & the code is not finished yet to read the inputs But here is what is needed
Code:
int NTC1 = A5;
int NTC2 = A4;
int NTC3 = A3;
int ReadSwitch = A2;
int MeasureVoltage = A1;
int FreePin = A0
ins NTC1Value = analogRead(NTC1);
ins NTC2Value = analogRead(NTC2);
ins NTC3Value = analogRead(NTC3);
ins PushButtons = analogRead(ReadSwitch);
ins VoltageMeasuring = analogRead(MeasureVoltage);
pinMode(FreePin,OUTPUT);
digitalWrite(FreePin,LOW);
the pin A0 isn't connected to board so is it a good idea to set it like this ?
i need your opinion about the analog inputs can i change the reading source this easy ?