P201 Encoder Interface

The P201 series are single channel encoder interfaces suitable for use with a wide variety of 5V rotary and linear encoders. The USB versions allow encoders to be easily interfaced to and powered from a PC using only a USB cable. The new RS485 encoder interface (P201-9B-RS485) enables long distance, multidrop capability for SSI or BiSS C encoders.

Supported by PC based GUI Demonstration software and supplied with USB drivers that emulate a COM Port. Virtual COM Port access enables simple interfacing from LabVIEW, C#.Net, VB.Net, MATLAB.

More details can be referred to the data sheet of P201 interface.

read more...

MATLAB Tips

General Programming Tips

  1. Compute the running time of a function all

    1
    tic; fft(rand(500)); disp( [’it takes ’ num2str(toc) ’s.’] );
  2. Locate the indice of minimum value in a matrice

    1
    2
    [M,I]         = min(objMatrice(:)); % 'objMatrice' is the objective matrix
    [Irow,Icol] = ind2sub(size(objMatrice),I);
read more...

Motor/Encoder Control Code

I developed a stepper motor controller using a Pololu board and Arduino, designed to manage a stepper motor up to 4 A and read a single-end encoder. The system uses serial communction for interaction between the motor, encoder, and PC. That means you can even use MATLAB (with the example code shown below) to operate the motor and capture encoder counts.

read more...

Latex Tips

Using braces to label parts of an equation

1
\[\Theta^+ = \underbrace{\int_0^{z_{crit}^+}\frac{dz^+}{1/Pr +\alpha_t/\nu}}_{\Romannum{1}} + \underbrace{\int_{z_{crit}^+}^{z^+}\frac{dz^+}{1/Pr +\alpha_t/\nu}}_{\Romannum{2}}\]
underbrace type
read more...

PowerPoint

Before presentation, slides have to be prepared to deliver your ideas more precisely. One of things in the process of making slides is to add pictures in your case.

It is annoying to do this work from your storage if have a large number of pictures added. Here, we introduce a good way to establish connection between PowerPoint and Matlab to help us import images quickly.

read more...
  • © 2020-2026 X.
  • Powered by Hexo Theme Ayer
    • PV:
    • UV:

Buy me a cup of coffee~

支付宝
微信