User Tools

Site Tools


getting_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
getting_started [2016/08/10 16:21] romaingetting_started [2020/03/02 11:26] – Wrong spelling of the function enter_operational_mode tvandenbussche
Line 1: Line 1:
 +====== Getting Started ======
  
 +A simple tutorial that explains the basic setup and command needed to start using the QuimDC.
 +
 +
 +Requirement :
 +  * QuimDC
 +  * USB/Serial port cable 
 +  * DC laboratory power supply
 +  * DC motor
 +  * Two Jumpers
 +
 +
 +
 +----
 +
 +
 +
 +===== Connection =====
 +
 +The QuimDC is divided into two parts, the logical one and the power one. In this tutorial we will power the two parts with one laboratory power supply. We need to put two jumper on G_com and V_com like in the picture below.
 +
 +
 +{{quimdc_tuto_jumper.jpg}}
 +
 +
 +
 +We connect the serial port.
 +
 +
 +
 +{{quimdc_tuto_serial.jpg}}
 +
 +
 +We connect the motor to the Motor R blue connector.
 +
 +
 +{{quimdc_tuto_motor.jpg}}
 +
 +
 +Then we will power the QuimDC with a tension between 12 V to 48 V.
 +
 +
 +
 +{{quimdc_tuto_power.jpg}}
 +
 +
 +
 +----
 +
 +
 +===== Command Line Interface =====
 +
 +In order to communicate with the board, we need a terminal connected to the QuimDC serial port (115200bps, 8 data bits, 1 stop bit, no parity). Once your terminal is open, type "print_board_states" command.
 +
 +<code>
 +>print_board_states 
 +
 +>D:001-000000 
 +D:002-000000 ####################
 +D:003-000000 # THE BOARD STATES #
 +D:004-000000 ####################
 +D:005-000000 Operational Mode : no
 +D:006-000000 Motor Watchdog value : -1
 +D:007-000000 Right Motor(1) : 
 +D:008-000000     Control : Pwm Open Loop
 +D:009-000000 Left Motor(2) : 
 +D:010-000000     Control : Pwm Open Loop
 +</code>
 +
 +The following line ...
 +
 +<code>
 +D:005-000000 Operational Mode : no
 +</code>
 +
 +... tells us that we are not in operational mode, the motor is disabled for now.
 +
 +
 +Enter "enter_operational_mode" and use the up arrow to retrieve the "print_board_states" command and press enter.
 +
 +<code>
 +>enter_operational_mode 
 +
 +>print_board_states   
 +
 +>D:011-000000 
 +D:012-000000 ####################
 +D:013-000000 # THE BOARD STATES #
 +D:014-000000 ####################
 +D:015-000000 Operational Mode : yes
 +D:016-000000 Motor Watchdog value : -1
 +D:017-000000 Right Motor(1) : 
 +D:018-000000     Control : Pwm Open Loop
 +D:019-000000 Left Motor(2) : 
 +D:020-000000     Control : Pwm Open Loop
 +</code>
 +
 +There is now 'yes' beside Operational Mode, the board is in operational mode, the motor are enabled. The motors are controlled in open loop with pwm. With 128 pwm, the motors are stopped and don't move. Use the ref_speed command to set a new PWM and make the motor move.
 +
 +<code>
 +>ref_speed 1 40
 +</code>
 +
 +The PWM send to the motor is now 128 + 40. To stop the motor use :
 +
 +
 +<code>
 +>ref_speed 1 0 
 +</code>
 +
 +The PWM value is somewhere between 0 and 255, with 128 for motor stop.
 +
 +----
getting_started.txt · Last modified: 2020/03/02 13:36 by tvandenbussche