Added libraries and firmware skeleton

This commit is contained in:
Emanuele Trabattoni
2026-03-24 17:07:49 +01:00
parent 9240a0be41
commit 948120c001
15 changed files with 1390 additions and 0 deletions

67
RotaxMonitor/src/pins.h Normal file
View File

@@ -0,0 +1,67 @@
// =====================
// SPI BUS
// =====================
#define SPI_MOSI 11
#define SPI_MISO 13
#define SPI_SCK 12
// =====================
// CHIP SELECT
// =====================
#define ADC_CS 10
#define POT_CS 9
// =====================
// ADC CONTROL
// =====================
#define ADC_DRDY 4
#define ADC_RST 5
#define ADC_SYNC 6
// =====================
// DIGITAL POT
// =====================
#define POT_DRDY 7
// =====================
// RELAY
// =====================
#define PICK_RELAY 8
// =====================
// PEAK DETECTORS (DIGITAL INPUT)
// =====================
#define PKDT_AP 1
#define PKDT_AN 2
#define PKDT_BP 3
#define PKDT_BN 14
// =====================
// TRIGGER INPUTS
// =====================
#define TRIG_AP 15
#define TRIG_AN 16
#define TRIG_BP 17
#define TRIG_BN 18
// =====================
// SOFT START DETECT
// =====================
#define SOFT_A 21
#define SOFT_B 47
// =====================
// STATUS OUTPUT
// =====================
#define STA_1 35
#define STA_2 36
#define STA_3 37
#define STA_4 38
// =====================
// BUTTON INPUT
// =====================
#define BTN_1 39
#define BTN_2 40
#define BTN_3 41
#define BTN_4 42