sensor Arduino analog signal read problem


Posted on Feb 6, 2014

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
Click here to download the full size of the above Circuit.

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:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Lead Acid Battery Charger II
    IR remote control for PC
    Tell-A-Bell
    Remote-Control Transmitter Circuit
    Electronic Mini Projects
    home telephone fm transmitter circuit
    led noughts and crosses
    Dual power supply using L165
    LM1279 110 MHz RGB Video Amplifier System With OSD [Obsolete]
    direction detector decoder
    555 car circuit diagram of the device
    Using reactors buck breeze block circuit
    Intermittent start and stop cycle control circuit of the four



    Top