2022-08-30 23:26:37 +02:00
|
|
|
# gtr
|
|
|
|
|
2022-08-30 23:52:37 +02:00
|
|
|
augmented guitar with esp32 and mpu6050
|
|
|
|
|
|
|
|
## deps
|
|
|
|
|
|
|
|
last working version of esp32 arduino with current hardware is :
|
|
|
|
- https://github.com/espressif/arduino-esp32/releases/tag/2.0.0
|
|
|
|
|
|
|
|
### branch of wavey wind
|
|
|
|
|
|
|
|
the nodejs glue
|
|
|
|
|
|
|
|
- https://git.kompot.si/g1smo/wavey-wind/src/branch/rob
|
|
|
|
|
|
|
|
### the esp32 firmware
|
|
|
|
|
|
|
|
- https://git.kompot.si/g1smo/pifcamp-2021/src/branch/master/osc32final
|
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
## GPIO / PINS
|
2022-08-30 23:52:37 +02:00
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
LEDS
|
|
|
|
|
|
|
|
32 (ADC1_4 / TOUCH9)
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
GND
|
|
|
|
|
|
|
|
// OR 33
|
|
|
|
|
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
### ACCELEROMETER/GYRO
|
2022-08-30 23:52:37 +02:00
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
#### MPU6050
|
|
|
|
|
|
|
|
GPIO:
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
21 - SDA
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
22 - SCL
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
GND - GND
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
VCC - 3.3V
|
2022-08-30 23:52:37 +02:00
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
### CAPACATIVE TOUCH
|
|
|
|
|
|
|
|
GPIO:
|
|
|
|
|
|
|
|
momentary switchs
|
|
|
|
|
2022-09-02 08:26:37 +02:00
|
|
|
on diagram (0,1,2,3)
|
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
4 TOUCH0 - SHIFT KEY
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
0 TOUCH1 - record to buffer 0
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
2 TOUCH2
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
15 TOUCH3
|
|
|
|
|
2022-09-02 08:26:37 +02:00
|
|
|
on diagram (4,5,6,7)
|
2022-08-31 15:55:49 +02:00
|
|
|
|
|
|
|
13 TOUCH4
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
14 TOUCH5
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
12 TOUCH6
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
27 TOUCH7
|
|
|
|
|
|
|
|
TOUCH0 + TOUCH3 = EULER ROTATION RESET
|
|
|
|
|
|
|
|
|
|
|
|
array of 16 values -
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
8 x data inputs +
|
2022-09-01 14:55:41 +02:00
|
|
|
|
2022-08-31 15:55:49 +02:00
|
|
|
8 x 0/1 values - first 4 momentary second 4 toggle
|
|
|
|
|
|
|
|
args: [
|
|
|
|
35, 56, 53, 47, 99, 106, 99, 48,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0
|
|
|
|
]
|
|
|
|
|
2022-08-30 23:52:37 +02:00
|
|
|
|
|
|
|
|
2022-09-01 14:53:31 +02:00
|
|
|
## BUTTON MAPPING
|
|
|
|
|
|
|
|
|
|
|
|
BUTTON 0 ----- SHIFT
|
|
|
|
BUTTON 1 ----- TRIGGER ONESHOT BUFFER RECORD
|
|
|
|
|
|
|
|
BUTTON X ----- GRANULAR POSITION MODE
|
|
|
|
BUTTON X ----- GRANULAR PITCH MODE
|
|
|
|
BUTTON X ----- GRANULAR IMPULSE MODE
|
|
|
|
|
|
|
|
BUTTON X ----> LOOP RECORDING MODE ON/OFF
|
|
|
|
BUTTON X ----> OVERDUB RECORDING MODE ON/OFF
|
|
|
|
|
|
|
|
BUTTON X ----- LIVE SIGNAL / PROCESSED / MIX
|
|
|
|
|
|
|
|
BUTTON 0 && X RESET/ZERO SENSORS [in firmware]
|
|
|
|
|
|
|
|
|
2022-08-30 23:52:37 +02:00
|
|
|
|