Browse Source

Update schematic for final build setup, adjust code for finalized build

master
KemoNine 3 years ago
parent
commit
834249cfda
  1. 3
      hardware/arduino/calibration_jig/README.md
  2. 14
      hardware/arduino/calibration_jig/calibration_jig.ino
  3. BIN
      hardware/arduino/calibration_jig/schematic/Schematic_Home-Assistant_Calibration-Jig_20190612192312.pdf
  4. BIN
      hardware/arduino/calibration_jig/schematic/Schematic_Home-Assistant_Calibration-Jig_20190612192325.png

3
hardware/arduino/calibration_jig/README.md

@ -10,7 +10,8 @@ An Arduino based build that allows testing and reading various sensors (used els
| 1 | SparkFun QWIIC Proto Shield |
| 1 | Arduino Proto Shield |
| 3 | Push button |
| 1 | MAX6816EUS+T (Button Debounce) |
| 1 | MAX6816EUS+T (Button Debounce) |
| 1 | MAX6817EUT+T (Button Debounce) |
| 1 | Adafruit 2.2" TFT LCD |
| 2 | 4.7k Resistor |
| 1 | SparkFun RGB LED Breakout - WS2812B |

14
hardware/arduino/calibration_jig/calibration_jig.ino

@ -19,7 +19,7 @@ I2CSoilMoistureSensor sensor_soil_catnip;
// Various tunables
#define ERROR_LED_PIN 13
#define ERROR_LED_LIGHTUP_STATE HIGH
#define PIXEL_PIN 40 // pin of pixel
#define PIXEL_PIN 2 // pin of pixel -- 40 for metro on board pixel
#define PIXEL_MAX_BRIGHTNESS 48 // 255 max
#define PIXEL_MIN_BRIGHTNESS 4 // 0 min
#define BREATHE_DELAY 5 // milliseconds
@ -106,12 +106,12 @@ void setup() {
tft.setCursor(tft.width() / 2 - 138, tft.height() / 2 + 10);
tft.println("Press Up/Down");
pinMode(BUTTON_UP, INPUT_PULLUP);
pinMode(BUTTON_DOWN, INPUT_PULLUP);
pinMode(BUTTON_OK, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(BUTTON_UP), InterruptHandlerButtonUp, RISING);
attachInterrupt(digitalPinToInterrupt(BUTTON_DOWN), InterruptHandlerButtonDown, RISING);
attachInterrupt(digitalPinToInterrupt(BUTTON_OK), InterruptHandlerButtonOk, RISING);
pinMode(BUTTON_UP, INPUT);
pinMode(BUTTON_DOWN, INPUT);
pinMode(BUTTON_OK, INPUT);
attachInterrupt(digitalPinToInterrupt(BUTTON_UP), InterruptHandlerButtonUp, FALLING);
attachInterrupt(digitalPinToInterrupt(BUTTON_DOWN), InterruptHandlerButtonDown, FALLING);
attachInterrupt(digitalPinToInterrupt(BUTTON_OK), InterruptHandlerButtonOk, FALLING);
sem_btn_up = xSemaphoreCreateBinary();
sem_btn_down = xSemaphoreCreateBinary();

BIN
hardware/arduino/calibration_jig/schematic/Schematic_Home-Assistant_Calibration-Jig_20190612192312.pdf

Binary file not shown.

BIN
hardware/arduino/calibration_jig/schematic/Schematic_Home-Assistant_Calibration-Jig_20190612192325.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Loading…
Cancel
Save