1. LED LED Arduino Arduino AP Shield Arduino AP Shield 4 analogRead 4 0 1024 1 1024 1 2 3 NM 4 4 analogRead 4 analog 2. LED 2 3 A P Shield LED Qutput ee AP shield 05 O ttp koress Jp 2010 KORESS http koress p Arduino A PShield 05 5 LED 3. delay 20 elapse_up 20 elapse_down 20 Arduino A P Shield 05 A P Shield ROHM RPR 220 LED 4 0 1024 Arduino 2010 KORESS http koress p Arduino A PShield 05 4. A P Shield v0 5 2009 2010 koress project shigaku http koress jp contact koress jp 1 59Hz_ HPF Pulse OuUt 1 LMSSSN x1000 Ameclificaticon RP KORESS 3 2010 10 14 r E contact koress jp 2010 KORESS http koress jp 5. OUTPUT Seria1 begin 9600 void loop int currentValue analogRead sensorPin int diff currentVvalu sensorVvalue sensorValue currentValue 0 if diff lt 10 amp amp diff gt 10 amp amp integral_plus gt 160 gg integral_minus lt 200 if elapse_up gt 50 amp amp elapse_up lt 400 gg elapse_down gt 96 amp amp elapse_down lt 800 2010 KORESS http koress jp count Serial print count DEC Serial println elapse_up 0 elapse_down 0 integral_plus 0 integral_minus 0 else if diff gt 20 gg diff lt 280 integral_plus diff else if diff lt 20 gs diff gt 200 integral_minus diff 20ms 6. Arduino A PShield 05 A P Shield Arduino AP Shield Arduino E 1 gt AP Shield Arduino R AP Shield Arduino 5V GND ANALOG IN 4 DIGTTAL IN AP Shield Arduino Arduino AC USB 7. Read 4 200 analogInput 4 2010 KORESS http koress jp Arduino A PShield 05 http gist github com 413934 A P Shield 05 Demo Program Created by Gshigaku KORESS http koress jp ht bp tw1tter Com shigaku nt sensorPin 4 int ledPin 13 int sensorValue 0 int integra 1_plus 0 int integra _minus 0 int count 0 int elapse_up 0 int elapse_down 0 int ave 0 void setup Arduino pinMode 1edPin