satnogs-rotator-firmware
Loading...
Searching...
No Matches
rotator_pins.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define M1IN1   10
 Motor 1 PWM pin.
 
#define M1IN2   9
 Motor 1 PWM pin.
 
#define M1SF   7
 Motor 1 digital input, status flag.
 
#define M1FB   A1
 Motor 1 analog input, current/load feedback.
 
#define M2IN1   11
 Motor 2 PWM pin.
 
#define M2IN2   3
 Motor 2 PWM pin.
 
#define M2SF   6
 Motor 2 digital input, status flag.
 
#define M2FB   A0
 Motor 2 analog input, current/load feedback.
 
#define MOTOR_EN   8
 Digital output, to enable the motors.
 
#define SW1   5
 Digital input, to read the status of end-stop for motor 1.
 
#define SW2   4
 Digital input, to read the status of end-stop for motor 2.
 
#define RS485_DIR   2
 Digital output, to set the direction of RS485 communication.
 
#define SDA_PIN   3
 I2C data pin.
 
#define SCL_PIN   4
 I2C clock pin.
 
#define PIN12   12
 General purpose I/O pin.
 
#define PIN13   13
 General purpose I/O pin.
 
#define A2   A2
 General purpose I/O & analog pin.
 
#define A3   A3
 General purpose I/O & analog pin.
 

Detailed Description

It is a header file for pin mapping.

Licensed under the GPLv3

Definition in file rotator_pins.h.

Macro Definition Documentation

◆ A2

#define A2   A2

General purpose I/O & analog pin.

Definition at line 35 of file rotator_pins.h.

◆ A3

#define A3   A3

General purpose I/O & analog pin.

Definition at line 36 of file rotator_pins.h.

◆ M1FB

#define M1FB   A1

Motor 1 analog input, current/load feedback.

Definition at line 16 of file rotator_pins.h.

◆ M1IN1

#define M1IN1   10

Motor 1 PWM pin.

Definition at line 13 of file rotator_pins.h.

◆ M1IN2

#define M1IN2   9

Motor 1 PWM pin.

Definition at line 14 of file rotator_pins.h.

◆ M1SF

#define M1SF   7

Motor 1 digital input, status flag.

Definition at line 15 of file rotator_pins.h.

◆ M2FB

#define M2FB   A0

Motor 2 analog input, current/load feedback.

Definition at line 21 of file rotator_pins.h.

◆ M2IN1

#define M2IN1   11

Motor 2 PWM pin.

Definition at line 18 of file rotator_pins.h.

◆ M2IN2

#define M2IN2   3

Motor 2 PWM pin.

Definition at line 19 of file rotator_pins.h.

◆ M2SF

#define M2SF   6

Motor 2 digital input, status flag.

Definition at line 20 of file rotator_pins.h.

◆ MOTOR_EN

#define MOTOR_EN   8

Digital output, to enable the motors.

Definition at line 23 of file rotator_pins.h.

Referenced by setup().

◆ PIN12

#define PIN12   12

General purpose I/O pin.

Definition at line 33 of file rotator_pins.h.

◆ PIN13

#define PIN13   13

General purpose I/O pin.

Definition at line 34 of file rotator_pins.h.

◆ RS485_DIR

#define RS485_DIR   2

Digital output, to set the direction of RS485 communication.

Definition at line 28 of file rotator_pins.h.

◆ SCL_PIN

#define SCL_PIN   4

I2C clock pin.

Definition at line 31 of file rotator_pins.h.

◆ SDA_PIN

#define SDA_PIN   3

I2C data pin.

Definition at line 30 of file rotator_pins.h.

◆ SW1

#define SW1   5

Digital input, to read the status of end-stop for motor 1.

Definition at line 25 of file rotator_pins.h.

◆ SW2

#define SW2   4

Digital input, to read the status of end-stop for motor 2.

Definition at line 26 of file rotator_pins.h.