I have a X-NUCLEO-IHM07M1 and a BLDC motor.
the question is, this motor have a encoder which use rs422 interface to feedback the angle, but MCK(stm32 motor control workbench) maybe only use quadrature encoder?
I can pass the angle to the IHM07M1.
if i want to use my encoder, how do I to do?
Related
I'm analyzing the bahaviour of a RLC circuit and I need to observe the voltage and current wave of the circuit but I cannot find a way to do this. I need something like an oscilloscope but the scope does not work with the elements i am working with. What can I do?
The link below is my circuit, I'm using Simscape/Foundation Library elements
This is my circuit
Simscape and Simulink has different domains. To be able to use each one in the other domain, you need to use Simulink-PS Converter or PS-Simulink converter.
In that example, you have voltage sensor in Simscape and Scope or display in Simulink. To be able to connect them use PS-Simulink Converter.
Good day everyone!
I tried to make a circuit in matlab simulink, with an AC voltage, Resistor and Voltage measurement. AV voltage and Resistor connect quite well but voltage measurement can't connect the resistor connection.
how may I connect the voltage measurement to the resistor? Please help me thanks!
this is the circuit i want to simulate
I used different types of resistor, and Ac voltage but same results
In my opinion, your diode is from a different library (Simscape\Foundation Library\Electrical) than the voltage source, the resistance and the voltage measurement block (Power Systems...). Try to use blocks from the same Library.
See following picture for when I only use blocks from Simscape\Foundation Library\Electrical
I´m trying to find a way to change the resistance in a resistor during simulation in simulink.
I have been using the fundamental blocks in the SimPowerSystem package from Simscape and I have a functional circuit for non-variable resistors.
What I want is a resistor block were instead of the parameter R (ohm) I could insert a vector with different resistance values. Is there such a block or is there a way to create a block of this kind?
I will be using this to model a thermal equivalent circuit for a loudspeaker and this variable shifting resistance is supposed to model the forced convection created by the membrane during operation.
Simscape has a variable resistor block. You should be able to use that instead. The instantaneous resistance value is provided as a physical signal input to the block.
I'm going to make few parts of plane cockpit.
I need to use about 20 encoders, about 10 character LCDs and a lot of switches/triggers/buttons.
I think it's not a problem with LCDs and buttons, because I can use shift-registers, but I don't know what should I do with encoders (PWM signal).
I'll appreciate for any suggestions about how to use a lot of PWM inputs in one board.
It depends on the signal speed and the resolution you want. But you can sample this inputs also using SPI or GPIOs. You can them regularly using a timer and then calculate the pulse width or the encoder steps in software.
For quadrature encoders there are chips you can read out over SPI or bus interface.
Another possibility would be to use an FPGA or CPLD to preprocess the inputs.
If it's safety relevant (plane cockpit), you should take care about hardware and software architecture/design, but you know that probably.
I have designed a BLDC motor model with Hall Sensors using simulink. It is working perfect with Trapezoidal commutation,with perfect trapezoidal back emf but when i go for sinusoidal commutation, the Hall sensors seem not to detect the electrical angle sequences. I want to know how to generate the three phase input voltages for driving the sinusoidally commutated bldc motor.Presently i am going with sensing the electrical angle using hall sensors and changing the hall state at every 60 degrees and switching the corresponding switches, but this somehow doesn't seem to work. I suppose i have to work on something like using a PWM signal or something. Please help me out.
BLDC motor applications have increased significantly in recent years as energy efficiency, durability, and maintenance-free operation have become increasingly valued. Motor control designers are using the performance characteristics inherent to BLDC motors, giving them a distinct advantage over common ac induction and brushed dc motors used in similar applications.
three phase power converter can be done as designers can simply choose the appropriate control algorithm and then concentrate on developing and evaluating their own target applications...