Skip to content

Problem with spindle synchronous encoder #226

@auxp

Description

@auxp

I don't know if this is correct.
// Spindle encoder pins.
#if SPINDLE_ENCODER_ENABLE
#define RPM_COUNTER_N 2
#define RPM_TIMER_N 3
#define SPINDLE_INDEX_PORT GPIOB
#define SPINDLE_INDEX_PIN 3
#define SPINDLE_PULSE_PORT GPIOA
#define SPINDLE_PULSE_PIN 15
#endif

The sender has set PULSE 100, encoder A is connected to PULSE, and Z is connected to INDEX. Of course, I also swapped them, and there was no change in the iOS speed after rotation.
I also used an oscilloscope to check the waveforms of A and Z, and everything is normal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions