sensor Arduino analog signal read problem

  
Inside:
Repository
The piezo element is only connected to Channel 1 (Arduino A[0] port). The channels Ch 1 Ch 6 are connected to female mono jacks and the ground(GND) wiring is in series from jack 1, 2 and 3 so on. till the Ch 6 end to the Arduino GND port. Taped 3 times 787 0 0 0 0 0 191 0 0 0 0 0 19 0 0 0 0 0 937 123 63 5 0 0 < ch2, ch3 ch4 ERROR !> 86 0 0 0 0
sensor Arduino analog signal read problem - schematic

0 13 0 0 0 0 0 507 83 126 16 8 0 < ch2, ch3, ch4 ch5 ERROR !> 21 1 1 0 0 0 < ch2, ch3 ERROR !> 0 0 18 0 0 0 < ch3 ERROR !> const int singnalLevel = 10; boolean treshold = false; int sensorReading[6]; void setup() { Serial. begin(9600); } void loop() { int sensorReading[6] = {0, 0, 0, 0, 0, 0}; boolean treshold = false; sensorReading[0] = analogRead(A0); sensorReading[1] = analogRead(A1); sensorReading[2] = analogRead(A2); sensorReading[3] = analogRead(A3); sensorReading[4] = analogRead(A4); sensorReading[5] = analogRead(A5); for (int index = 0; index <= 5 ; index+) { if(sensorReading[index] > singnalLevel){ treshold = true; } } if(treshold){ for (int index = 0; index <= 5 ; index+) { Serial. print(sensorReading[index]); Serial. print(" "); } Serial. println(); } delay(1); }



Leave Comment

characters left:

New Circuits

.