From e8300c9eb44d511c7ad4a008bfa52a4f24c707f6 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Fri, 8 Mar 2019 13:09:18 -0800 Subject: [PATCH] Renamed Rev.1.x.x sketch to match folder --- ...{Pyr0_Piezo_v1.x.x.ino => Pyr0_Piezo_Sensor_v1.x.x.ino} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename firmware/AVR-Source/Pyr0_Piezo_Sensor_v1.x.x/{Pyr0_Piezo_v1.x.x.ino => Pyr0_Piezo_Sensor_v1.x.x.ino} (96%) diff --git a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v1.x.x/Pyr0_Piezo_v1.x.x.ino b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v1.x.x/Pyr0_Piezo_Sensor_v1.x.x.ino similarity index 96% rename from firmware/AVR-Source/Pyr0_Piezo_Sensor_v1.x.x/Pyr0_Piezo_v1.x.x.ino rename to firmware/AVR-Source/Pyr0_Piezo_Sensor_v1.x.x/Pyr0_Piezo_Sensor_v1.x.x.ino index 4cb299f..6cc2009 100644 --- a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v1.x.x/Pyr0_Piezo_v1.x.x.ino +++ b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v1.x.x/Pyr0_Piezo_Sensor_v1.x.x.ino @@ -35,10 +35,10 @@ int ERR_LED = 3; // LED will blink if optimal voltage range cannot int InitCount = 6; // Number of times to blink the LED on start int V_FOLLOW_PIN = A0; // Sense pin to check first amp stage voltage output int VADJ_SENSE_PIN = A1; // Sense pin to check comparator stage voltage -int TRG_DUR = 120; // duration of the Z-axis pulse sent, in ms +int TRG_DUR = 40; // duration of the Z-axis pulse sent, in ms int Vin = 5; // input reference voltage -float senseHighThrs = 2.35; // Upper threshold voltage of amp circuit before adjustment -float senseLowThrs = 1.8; // Lower threshold voltage of amp circuit before adjustment +float senseHighThrs = 1.9; // Upper threshold voltage of amp circuit before adjustment +float senseLowThrs = 0; // Lower threshold voltage of amp circuit before adjustment const int VADJ_R0 = 20; // Auto-adjust ladder pin assignments const int VADJ_R1 = 21; const int VADJ_R2 = 5; @@ -83,6 +83,7 @@ void setup() { void pulse() { digitalWrite(TRG_OUT, LOW); sensorHReading = 1; + delay(TRG_DUR + 30); } void adjustState() {