RF-Positioning-System V0.1
by Max Heinekamp
Loading...
Searching...
No Matches
config.h File Reference

Configuration file for the entire project. More...

#include "Ethernet.h"

Go to the source code of this file.

Macros

#define SCPI_HASH_TYPE   uint16_t
#define DEVICE_MANUFACTURER   "EMES"
#define DEVICE_NAME   "RF-Positioning-System"
#define DEVICE_VERSION   "1.0.0"
#define DEVICE_SERIAL   "001"
#define POWER_GOOD_PIN   26
#define SCPI_PORT   5025
#define IP_ADDRESS   "192.168.0.55"
#define MAC_ADDRESS   { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }
#define ERROR_QUEUE_SIZE   10
#define ETHERNET_RESET_PIN   25
#define RESET_CONTROL_PIN   4
#define STEPS_PER_REV   200
#define MOTOR1_STEP_PIN   15
#define MOTOR1_ENABLE_PIN   32
#define MOTOR2_STEP_PIN   13
#define MOTOR2_ENABLE_PIN   12
#define MOTOR_SERIAL_PORT   Serial1
#define R_SENSE   0.11f
#define STEP_DELAY   4
#define RMS_CURRENT   1600
#define HOLD_CURRENT   8
#define MICROSTEPS   16
#define STEPPER1_ADDRESS   0
#define STEPPER2_ADDRESS   1
#define AXIS1_GEAR_RATIO   1
#define AXIS2_GEAR_RATIO   6
#define AXIS2_DIR_CHANGE_CAL_FACTOR   3
#define SPEED   1000
#define ACCELERATION   5000

Detailed Description

Configuration file for the entire project.

Author
Max Heinekamp
Note
This information will be copied to the flash memory of the ESP32 on first boot by FLASH::initFlashMemory()
Version
0.1
Date
26-01-2025

Definition in file config.h.

Macro Definition Documentation

◆ ACCELERATION

#define ACCELERATION   5000

Definition at line 68 of file config.h.

◆ AXIS1_GEAR_RATIO

#define AXIS1_GEAR_RATIO   1

Definition at line 64 of file config.h.

◆ AXIS2_DIR_CHANGE_CAL_FACTOR

#define AXIS2_DIR_CHANGE_CAL_FACTOR   3

Definition at line 66 of file config.h.

◆ AXIS2_GEAR_RATIO

#define AXIS2_GEAR_RATIO   6

Definition at line 65 of file config.h.

◆ DEVICE_MANUFACTURER

#define DEVICE_MANUFACTURER   "EMES"

Definition at line 32 of file config.h.

◆ DEVICE_NAME

#define DEVICE_NAME   "RF-Positioning-System"

Definition at line 33 of file config.h.

◆ DEVICE_SERIAL

#define DEVICE_SERIAL   "001"

Definition at line 35 of file config.h.

◆ DEVICE_VERSION

#define DEVICE_VERSION   "1.0.0"

Definition at line 34 of file config.h.

◆ ERROR_QUEUE_SIZE

#define ERROR_QUEUE_SIZE   10

Definition at line 42 of file config.h.

◆ ETHERNET_RESET_PIN

#define ETHERNET_RESET_PIN   25

Definition at line 45 of file config.h.

◆ HOLD_CURRENT

#define HOLD_CURRENT   8

Definition at line 60 of file config.h.

◆ IP_ADDRESS

#define IP_ADDRESS   "192.168.0.55"

Definition at line 40 of file config.h.

◆ MAC_ADDRESS

#define MAC_ADDRESS   { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }

Definition at line 41 of file config.h.

◆ MICROSTEPS

#define MICROSTEPS   16

Definition at line 61 of file config.h.

◆ MOTOR1_ENABLE_PIN

#define MOTOR1_ENABLE_PIN   32

Definition at line 53 of file config.h.

◆ MOTOR1_STEP_PIN

#define MOTOR1_STEP_PIN   15

Definition at line 52 of file config.h.

◆ MOTOR2_ENABLE_PIN

#define MOTOR2_ENABLE_PIN   12

Definition at line 55 of file config.h.

◆ MOTOR2_STEP_PIN

#define MOTOR2_STEP_PIN   13

Definition at line 54 of file config.h.

◆ MOTOR_SERIAL_PORT

#define MOTOR_SERIAL_PORT   Serial1

Definition at line 56 of file config.h.

◆ POWER_GOOD_PIN

#define POWER_GOOD_PIN   26

Definition at line 36 of file config.h.

◆ R_SENSE

#define R_SENSE   0.11f

Definition at line 57 of file config.h.

◆ RESET_CONTROL_PIN

#define RESET_CONTROL_PIN   4

Definition at line 48 of file config.h.

◆ RMS_CURRENT

#define RMS_CURRENT   1600

Definition at line 59 of file config.h.

◆ SCPI_HASH_TYPE

#define SCPI_HASH_TYPE   uint16_t

Definition at line 26 of file config.h.

◆ SCPI_PORT

#define SCPI_PORT   5025

Definition at line 39 of file config.h.

◆ SPEED

#define SPEED   1000

Definition at line 67 of file config.h.

◆ STEP_DELAY

#define STEP_DELAY   4

Definition at line 58 of file config.h.

◆ STEPPER1_ADDRESS

#define STEPPER1_ADDRESS   0

Definition at line 62 of file config.h.

◆ STEPPER2_ADDRESS

#define STEPPER2_ADDRESS   1

Definition at line 63 of file config.h.

◆ STEPS_PER_REV

#define STEPS_PER_REV   200

Definition at line 51 of file config.h.