S. Orange Pi DMX/RDM Stepper Controller > Configuration
The Art-Net configuration is stored in the file 'artnet.txt'.
Parameter name
| Description | net
| Bits 14-8 of the 15 bit Port-Address are encoded into the bottom 7 bits of this field. (default = 0)
| subnet
| Bits 7-4 of the 15 bit Port-Address are encoded into the bottom 4 bits of this field. (default = 0) | universe
| Bits 3-0 of the 15 bit Port-Address. (default = 0) | short_name
| Default = 'AvV Art-Net Node'
| long_name | Default = 'Raspberry Pi Art-Net 3 L6470 Stepper Motor Controller'
| manufacturer_id | Default = 7FF0 (RESERVED FOR PROTOTYPING/EXPERIMENTAL USE ONLY) | oem_value | Default = 20E0 (OemArtRelay) |
The SlushEngine configuration is stored in the file 'slush.txt' Parameter name | Description | dmx_start_address_port_a | DMX start address I/O Port A (8-channels). DMX value < 127 is OFF, DMX value >= 127 is ON | dmx_footprint_port_a | DMX Footprint. Valid values: 1, 2, 3, 4, 5, 6, 7, 8
| dmx_slot_info_port_a | Valid values see ANSI E1.20, Appendix C: Slot Info (Normative). Format: [Slot ID Type]:[Slot Category/ID] | dmx_start_address_port_b | DMX start address I/O Port B (8-channels). DMX value < 127 is OFF, DMX value >= 127 is ON | dmx_footprint_port_b | DMX Footprint. Valid values: 1, 2, 3, 4, 5, 6, 7, 8 | dmx_slot_info_port_b | Valid values see ANSI E1.20, Appendix C: Slot Info (Normative). Format: [Slot ID Type]:[Slot Category/ID] |
Example: dmx_start_address_port_a=5 dmx_footprint_port_a=1 # Relay or power control dmx_slot_info_port_a=00:0505
The SparkFun AutoDriver configuration is stored in the file 'sparkfun.txt' Parameter name | Description | sparkfun_spi_cs | The SPI0 chip select pin: 0 (CE0) , 1 (CE1). Can be overridden in file 'motor%.txt'
| sparkfun_reset_pin | The BCM GPIO pin for the board reset input. (default = 20, Header P1-38).
| sparkfun_busy_pin | The BCM GPIO pin for the board busy output. (optional)
|
The motor configuration is stored in the file 'motor%.txt', where % can be 0, 1, 2, 3. SparkFun AutoDriver onlyParameter name | Description | sparkfun_spi_cs | The SPI0 chip select pin: 0 (CE0) , 1 (CE1)
| sparkfun_position | The board position in the chain. Values: 0, 1, 2, 3
|
DMX settings Parameter name | Description | dmx_mode | Operation mode. Starts with 0, Mode 0
| dmx_start_address | Dmx start address of the mode selected
| dmx_slot_info | Valid values see ANSI E1.20, Appendix C: Slot Info (Normative). Format: [Slot ID Type]:[Slot Category/ID],[Slot ID Type]:[Slot Category/ID]... |
DMX Mode parameters. Used with limit switch : goUntil(act, dir, sps) Parameter name | Description | mode_max_steps | Maximum steps from home position
| mode_switch_act | Valid values: reset, copy
| mode_switch_dir | Valid values: reverse, forward
| mode_switch_sps | Steps per second
| mode_switch | Use limit switch {default=yes , 0=no} |
Motor parameters Parameter name | Description | motor_step_angel | Degrees
| motor_voltage | V Volt | motor_current | A Ampére | motor_resistance | R Ohm | motor_inductance | mH Henry
|
L6470 register set when parameters are set: For the details see AN4144 Application note : Voltage mode control operation and parameter optimization
Register | Parameters
| INT_SPEED | motor_resistance , motor_inductance |
L6470 parameters Note: These settings will override the registers set by the motor parameters. Parameter name | L6470 Parameter
| l6470_min_speed | MIN_SPEED (0x08)
| l6470_max_speed | MAX_SPEED (0x07) | l6470_acc | ACC (0x05) | l6470_dec | DECEL (0x06) | l6470_kval_hold | KVAL_HOLD (0x09) | l6470_kval_run | KVAL_RUN (0x0A) | l6470_kval_acc | KVAL_ACC (0x0B) | l6470_kval_dec | KVAL_DEC (0x0C) | l6470_micro_steps | Valid values 1, 2, 4, 8, 16, 32, 64, 128
|
Example #1: l6470_kval_hold=50 l6470_kval_run=50 l6470_kval_acc=50 l6470_kval_dec=50 #l6470_min_speed=25 l6470_max_speed=800 l6470_micro_steps=1 l6470_micro_steps=4 # motor_step_angel=1.8 motor_resistance=2.3 motor_inductance=1.8 # dmx_mode=4 dmx_start_address=1 dmx_slot_info=00:0101 # mode 4, mode 5 settings # mode_max_steps=800 # # Use limit switch {default=yes , 0=no} mode_switch=0 # goUntil(act, dir, sps) # # copy, reset #mode_switch_act= # reverse, forward #mode_switch_dir= # Steps per second #mode_switch_sps
Example #2: l6470_kval_hold=60 l6470_kval_run=60 l6470_kval_acc=60 l6470_kval_dec=60 #l6470_min_speed=25 l6470_max_speed=400 #l6470_micro_steps=1 l6470_micro_steps=4 # motor_step_angel=1.8 motor_resistance=2.3 motor_inductance=1.8 # dmx_mode=5 dmx_start_address=3 dmx_slot_info=00:0402,01:0002 # mode 4, mode 5 settings # mode_max_steps=800 # # Use limit switch {default=yes , 0=no} mode_switch=0 # goUntil(act, dir, sps) # # copy, reset #mode_switch_act= # reverse, forward #mode_switch_dir= # Steps per second #mode_switch_sps
|
|