image frame

X. Blog

流动的水没有形状 漂流的风找不到踪迹

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...

Stepper Motor and Lead Screw Slides

Table for stepper motor and lead screw

Item Formula Example Values Calculation/Notes
Pitch of the Lead Screw N/A 2 mm The distance the nut moves per one screw revolution.
Steps Per Revolution (SPR) N/A 200 Full steps required for the motor to turn one revolution.
Full Step Advance Pitch / SPR 2 mm / 200 0.01 mm per full step.
Microstepping Factor (MfeS) Set on the motor driver 64 64 microsteps per full step.
Advance Per Microstep Full Step Advance / MfeS 0.01 mm / 64 Approximately 0.00015625 mm per microstep.
Pulses Per Revolution (PPR) SPR * MfeS 200 * 64 12800 pulses for 64x microstepping.
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-2025 Yu Xia
  • Powered by Hexo Theme Ayer
    • PV:
    • UV:

Buy me a cup of coffee~

支付宝
微信