|
2 years ago | |
---|---|---|
dc_motor_controller | 2 years ago | |
libraries | 2 years ago | |
stepper_motor_controller | 2 years ago | |
.gitignore | 2 years ago | |
.gitlab-ci.yml | 2 years ago | |
CONTRIBUTING.md | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 2 years ago | |
satnogs-rotator-firmware.doxyfile | 2 years ago |
Firmware SatNOGS Rotator Controller.
Repository includes all source files for the SatNOGS rotator controller Firmware.
Electronics can be found on satnogs-rotator-controller
In order to use this code, you need to install
You need to choose the version of the Firmware you will be utilizing based on your controller and rotator setup. Namely we have two different versions (one for DC motors and one for Stepper motors).
##############################################################
satnogs.name=SatNOGS
satnogs.upload.tool=avrdude
satnogs.upload.protocol=buspirate
satnogs.upload.maximum_size=32256
satnogs.upload.maximum_data_size=2048
satnogs.upload.speed=115200
satnogs.bootloader.tool=avrdude
satnogs.bootloader.low_fuses=0xFF
satnogs.bootloader.high_fuses=0xDE
satnogs.bootloader.extended_fuses=0xFD
satnogs.bootloader.unlock_bits=0x3F
satnogs.bootloader.lock_bits=0x0F
satnogs.bootloader.file=optiboot/optiboot_atmega328.hex
satnogs.build.mcu=atmega328p
satnogs.build.f_cpu=16000000L
satnogs.build.board=AVR_SATNOGS
satnogs.build.core=arduino
satnogs.build.variant=eightanaloginputs
##############################################################
ARDUINO_DIR – Directory where Arduino is installed
ARDMK_DIR – Directory where you have copied the makefile
AVR_TOOLS_DIR – Directory where avr tools are installed
USER_LIB_PATH – Directory where arduino libraries are installed
AVRDUDE – Directory where avrdude are installed
AVRDUDE_ARD_BAUDRATE – Serial Baudrate (uncomment to use 57600 for FTDI)
include – Directory where Arduino.mk are installed
make
Upload using ISP
Connect arduino or buspirate for ISP programming
BusPirate
satnogs.upload.protocol=buspirate (in board.txt)
ISP_PROG = buspirate (in Makefile)
make ispload
satnogs.upload.protocol=arduino (in board.txt)
ISP_PROG = arduino (in Makefile)
make ispload
Connect FTDI
satnogs.upload.protocol=arduino (in board.txt)
make upload
Only with ISP programming
* Arduino as ISP
* BusPirate as ISP
make burn_bootloader
M1IN1 10, Step or PWM1
M1IN2 9, Direction or PWM2
M1SF 7, Status flag
M1FB A1, Load measurment
M2IN1 11, Step or PWM1
M2IN2 3, Direction or PWM2
M2SF 6, Status flag
M2FB A0, Load measurment
MOTOR_EN 8, Enable/Disable motors
SW1 5, Endstop for axis 1
SW2 4, Endstop for axis 2
RS485_DIR 2, RS485 Half Duplex direction pin
SDA_PIN 3, Data I2C pin
SCL_PIN 4, Clock I2C pin
PIN12 12, Digital output pin
PIN13 13, Digital output pin
A2 A2, Analog input pin
A3 A3, Analog input pin
Connect the PC with contreller via UART to USB or RS485 to USB by using the right converter (as described in rotator controller BOM). For both options must be soldered the suitable components as descrided in rotator controller wiki page.
Use commands of rotctl:
rotctl -m 204 -s 19200 -r /dev/ttyUSB1 -vvvvv
Replace the /dev/ttyUSB1 with the device which is connected to PC.
Use commands of easycomm 3:
Send directly commands of easycomm 3 as described in Easycomm implemantation section.
The main repository lives on Gitlab and all Merge Request should happen there.
Licensed under the GPLv3