uStepper S
Classes | Macros
uStepperEncoder.h File Reference

Function prototypes and definitions for the AEAT8800-Q24 Encoder. More...

#include <Arduino.h>
Include dependency graph for uStepperEncoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  uStepperEncoder
 Prototype of class for the AEAT8800-Q24 encoder. More...
 

Macros

#define CS   PB2
 
#define DIN   PB3
 
#define DO   PB4
 
#define CLK   PB5
 
#define ENCODERDATATOSTEP   51200.0/65536.0
 
#define ENCODERDATATOREVOLUTIONS   60.0/65536.0
 
#define ANGLETOENCODERDATA   65535.0/360.0
 

Detailed Description

Function prototypes and definitions for the AEAT8800-Q24 Encoder.

        This file contains class and function prototypes for the AEAT8800-Q24 Encoder,
        as well as necessary constants and global variables.
Author
Thomas Hørring Olsen (thoma.nosp@m.s@us.nosp@m.teppe.nosp@m.r.co.nosp@m.m)

Definition in file uStepperEncoder.h.

Macro Definition Documentation

◆ ANGLETOENCODERDATA

#define ANGLETOENCODERDATA   65535.0/360.0

Constant to convert angle to raw encoder data

Definition at line 41 of file uStepperEncoder.h.

◆ CLK

#define CLK   PB5

Clock signal for AEAT-8800-Q24 - Pin 13 on ATmega328pB (SCK)

Definition at line 37 of file uStepperEncoder.h.

◆ CS

#define CS   PB2

Chip select for AEAT-8800-Q24 - Pin 10 on ATmega328pB

Definition at line 34 of file uStepperEncoder.h.

◆ DIN

#define DIN   PB3

Data in for AEAT-8800-Q24 - Pin 11 on ATmega328pB (MOSI)

Definition at line 35 of file uStepperEncoder.h.

◆ DO

#define DO   PB4

Data out for AEAT-8800-Q24 - Pin 12 on ATmega328pB (MISO)

Definition at line 36 of file uStepperEncoder.h.

◆ ENCODERDATATOREVOLUTIONS

#define ENCODERDATATOREVOLUTIONS   60.0/65536.0

Constant to convert raw encoder data to revolutions

Definition at line 40 of file uStepperEncoder.h.

◆ ENCODERDATATOSTEP

#define ENCODERDATATOSTEP   51200.0/65536.0

Constant to convert raw encoder data to 1/256th steps

Definition at line 39 of file uStepperEncoder.h.