Dorna provides multiple options for connecting peripherals as inputs or outputs to the robot. In this section we provide an overview of the IOs available in Dorna 2 controller, and different methods that you can access them.
Dorna 2 controller has total of 42 IOs. Some of the IOs are available on the front panel of the controller box. The rest are on the controller board and can be accessed by opening the top panel of the controller box.
|Digital inputs||16 pins (8 in front of the box)|
|Digital outputs||16 pins (8 in front of the box)|
|PWM||5 pins (2 in front of the box)|
All I/O pins voltage level is 3.3V and any voltage higher than 3.3V might damage the controller board.
Dorna 2 has a total of 16 input pins. Input pins are referred to as
in0, in1, ..., in15. Input pins
in0,...,in7 are available on the front panel of the controller and input pins
in8,...,in15 are available inside the controller box on the controller board.
Input pins are constantly monitored by the controller at a rate of about
100KHz and upon change in their values a message is sent by the controller, reporting their new value.
Furthermore, the value of input pins can be read at anytime using command
Voltage level 0 at an input pin corresponds to digital value 0 and voltage level 3.3V at an input pin corresponds to digital value 1.
Probing let the user watch the input pins until a specific sequence appears. When the match happens, the controller will return the value of all joints at the exact moment of the match. The command to run probing is
Probing is a very usefull feature in homing a joint using an external homing sensor. In a typical application, a joint can be homed at a time, when the robot head hits a sensor (electrical probing).
Furthermore, probing can be also useful for automatic and precise measurements. The robot can touch different surfaces of interest, and the readings from
probe function, can be used to measure the distance between those surfaces, up to the resolution of the robot.
Dorna 2 has 16 output pins specified as
out0, out1, ..., out15, where the first 8 pins are available at the front panel of the controller and the last 8 pins are available inside the controller box. Output pins are very useful in actuating other devices, switches, microcontrollers or actuators.
Output pins can be set or reset by the user by calling command
output. The same command allow user to read the value of the output pins as well.
Digital value 0 appears as 0 voltage and digital value 1 appears as 3.3V at output pins.
At the startup, all output pins are initialized to 0.
Dorna 2 has 5 PWM pins specified as
pwm0, pwm1, ..., pwm4. The first two PWM pins are available at the front panel and the last 3 pins are inside the controller box. PWM pins generate pulse width modulated signals with a specific frequency and a specific duty cycle. The command for turning PWM pins on with specific duty cycle and frequency or turning them off is
PWM is very usefull for controlling DC motors, servo motors, and other types of actuators.
Dorna 2 has 5 ADC pins indicated by
adc0, adc1, ..., adc4 which are all located inside the controller box. ADC pins take an analog signal between 0V to 3.3V and convert it into a digital signal by scaling the value and mapping it to an integer beween 0 to 2^16 - 1.
ADC pins are not monitored like input pins. The ADC pin values are only read and reported upon request by command
ADCs are mainly useful for reading the value of analog sensors, such as thermometers, light sensors, or potentiometers.