Skip to content

Commit

Permalink
Added pin definitions for speedcrafters PCB V1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrGri committed Nov 5, 2023
1 parent 116a17a commit 1150bbd
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
Binary file modified Arduino/Esp32/.DS_Store
Binary file not shown.
Binary file modified Arduino/Esp32/Main/.DS_Store
Binary file not shown.
30 changes: 28 additions & 2 deletions Arduino/Esp32/Main/Main.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
//#include <ADS1256.h>

/********************************************************************/
/* Select the PCB */
/* Select the PCB */
/********************************************************************/
//#define PCB_VERSION 1 // V1 for regular ESP32
//#define PCB_VERSION 2 // V1 for ESP32 S2 mini
#define PCB_VERSION 3 // V3 for regular ESP32
//#define PCB_VERSION 4 // speedcrafter PCB V1.3





/********************************************************************/
/* Other defines */
/* Other defines */
/********************************************************************/

// target cycle time for pedal update task, to get constant cycle times, required for FIR filtering
Expand Down Expand Up @@ -117,3 +118,28 @@

#endif



// speedcrafter PCB V1.3
#if PCB_VERSION == 4
// ADC defines
#define PIN_DRDY 27// 19 --> DRDY
#define PIN_RST 5 // X --> X
#define PIN_SCK 14 // 16 -->SCLK
#define PIN_MISO 12 // 18 --> DOUT
#define PIN_MOSI 13 // 17 --> DIN
#define PIN_CS 15 // 21 --> CS

// stepper pins
#define dirPinStepper 32
#define stepPinStepper 33

// endstop pins
#define minPin 35
#define maxPin 34

// level shifter is present on this PCB design
#define SENSORLESS_HOMING true

#endif

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ There are two recommended ways to install the code on the ESP32. (a) built the s
3. Flash the [code](Arduino/Esp32/Main), e.g. via Ardiono IDE to esp32.

#### Flash prebuilt binaries via webflasher
The binaries for the [ESP32](releases) are available. They can be flashed via the ESP [webflasher](https://esp.huhn.me/).
The binaries for the [ESP32](https://github.com/ChrGri/DIY-Sim-Racing-Active-Pedal/releases) are available. They can be flashed via the ESP [webflasher](https://esp.huhn.me/).

Memory adress | File
:-------------------------:|:-------------------------:
Expand Down

0 comments on commit 1150bbd

Please sign in to comment.