AVX 00011
By THE_HACKERSimulacion de la Adquisición de Datos de un tacómetro usando un sensor de efecto Hall usando un Circuito Integrado A3144
int A3144;
bool DD3144=1;
bool DU3144=1;
int t = 30000;
void setup ( ) {
pinMode ( 1, INPUT );
pinMode ( 2, INPUT_PULLUP );
Serial.begin(9600);
}
void loop ( ) {
A3144 = analogRead(A0);
delay ( t/100 );
DD3144= digitalRead( 1 );
delay ( t/100 );
DU3144= digitalRead( 2 );
delay ( t/100 );
Serial.print( "AnalogX= " );
delay ( t/100 );
Serial.println( A3144 );
delay ( t/100 );
Serial.print( "DigDown= ");
delay ( t/100 );
Serial.println( DD3144 );
delay ( t/100 );
Serial.print( "DigitUp= ");
delay ( t/100 );
Serial.println( DU3144 );
delay ( t );
Serial.println( "" );
delay ( 1 );
Serial.println( "" );
delay ( 1 );
}