Teensy Notes and UserManual - dgedgedge/AstraDIY GitHub Wiki

Installing the software on the Teensy 4.0:

The AstrOnStep is (for the RA/DEC) a fork of miniPcb2 project.

The reference Teensy 4.0 software is the OnStepX software with a Config.h file configurred for the miniPcb board.

Below some notes to configure/build the software in the OnStep configuration.

If you plan to use a Teensy on the AstrOnStep board, you need :

AstrOnStep Switch configuration:

To select this option you shall put a Teensy 4.0 computer on the board, and the switches under the teensy (DRV1 to PI and DRV2 to PI) shall be set to OFF.

Teensy 4.0 configuration:

In the process you need to build a config file. As AstrOnStep is build on the basis of MiniPCB2 you will need to configure the Config File for MiniPCB2.

  • The PCB Layout :
// PINMAP ------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#PINMAP
#define PINMAP                        MiniPCB2 //    OFF, Choose from: MiniPCB, MiniPCB2, MaxPCB2, MaxESP3, CNC3, STM32Blue,      <-Req'd
//         MaxSTM3, FYSETC_S6_2, etc.  Other boards and more info. in ~/src/Constants.h
  • The SerialLink to communicate with the Raspberry :
#define SERIAL_B_BAUD_DEFAULT        9600 //   9600, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments.   Infreq

An example using the TMC2209 driver is provided with the file ExampleTCM2209_Config.h. In this example only consider the capacity to make the stepper motor to move with orders coming from the kstars., you still have to change the mecanical aspects of your setup like STEPS_PER_DEGREE.

Configuring kstars Ekos:

Mount Driver is LX200 Onstep

image

Link in Indi Driver (tty sur /dev/ttyAMA3):

image

Motor drivers :

https://onstep.groups.io/g/main/wiki/4464

For using the TMC2209 (On RA+DEC) add to your Arduino Ide the 2209 Lib :

https://github.com/hjd1964/TMC2209

cd ~
git clone https://github.com/hjd1964
zip -r TMC2209.zip TMC2209/

Then add the TMC2209.zip as an Arduino Librairie.