Added pulldown resistor for analogue inputs

This commit is contained in:
2023-02-04 12:48:38 +02:00
parent 7a72340730
commit 85800d7217
4 changed files with 371 additions and 228 deletions

View File

@ -1,7 +1,7 @@
{ {
"board": { "board": {
"active_layer": 0, "active_layer": 0,
"active_layer_preset": "", "active_layer_preset": "All Layers",
"auto_track_width": true, "auto_track_width": true,
"hidden_nets": [], "hidden_nets": [],
"high_contrast_mode": 0, "high_contrast_mode": 0,

File diff suppressed because it is too large Load Diff

22
README.MD Normal file
View File

@ -0,0 +1,22 @@
Features:
- 6 output channels
- Master BPM
- Separate divider or multiplier per chennel (from /32 to x24)
- Per-channel random pulse skip (currently only 50/50 chance)
- 2 inputs for external modulation (currently only 1, hardcoded to channel 6)
TODO:
- per-channel modulation settings
- different chance options for random
- External clock
- Save state to EEPROM when stopped
- swing
- Switch to U8G2 for screen
- settings (input mode, pulse length)
- Design PCB
Timer library available here
https://github.com/PaulStoffregen/FlexiTimer2
KiCad SSD1306 display component
https://github.com/pforrmi/KiCad-SSD1306-128x64

View File

@ -251,10 +251,11 @@ void checkInputs() {
//modulations //modulations
a1Input = analogRead(ANALOGUE_INPUT_1_PIN); a1Input = analogRead(ANALOGUE_INPUT_1_PIN);
a1Input = map (a1Input, 5, 1023, 0, 4); a1Input = map (a1Input, 0, 1023, 0, 4);
a2Input = analogRead(ANALOGUE_INPUT_2_PIN); a2Input = analogRead(ANALOGUE_INPUT_2_PIN);
Serial.println(a2Input); Serial.println(a2Input);
a2Input = map (a2Input, 5, 1023, 0, 4); a2Input = map (a2Input, 0, 1023, 0, 4);
} }