News:

Let's find out together what makes a PIC Tick!

Main Menu

is there any code for 3 phases sequence?

Started by hitronics, Nov 30, 2022, 12:22 PM

Previous topic - Next topic

Yasin

#20
Quote from: hitronics on Dec 04, 2022, 01:33 AMÜç fazın hangi konumları doğru olacaktır:

RST
RTS
TSR
TRS
SRT
STR


RST,TRS,STR (same rotation) eg reverse
RTS,TSR,SRT (same rotation) eg forward

In reality the situation is very simple. There are two possibilities. It either rotates in the forward direction or rotates in the opposite direction. In a balanced 3-phase system, there is only one law for the direction of rotation. If all phases are displaced as a result of any connection change, the direction of rotation of the motor does not change. No matter what you do in other combinations, only two connecting terminals can be swapped in the end. In this case, the motor will move in the opposite direction.

Best regards.

hitronics

I want to do testing is there any code to generate three phases square waves?

Pepe

demo proteus

hitronics

#23
@Pepe
Quote from: Pepe on Dec 04, 2022, 03:40 PMdemo proteus

R = GPIO.0
S = GPIO.2
T = GPIO.1

according to your code is it following order correct?
on the other hand, why you use Xtal = 8?

Pepe

#24
Modified for 4mhz
Are three square waves out of phase 120 degrees

hitronics

#25
@Pepe
by the way, I can not open your proteus file
I have proteus version 8
what is proteus version you have?
please check the picture
could you please tell order RST according to signals?

Pepe

#26
R = GPIO.0
S = GPIO.1
T = GPIO.2

hitronics

#27
@Pepe
please have a look at this picture
it is not same the signals that generated from mcu
which one is correct yours or this picture?


Pepe

It is the same as seen in the simulation with the oscilloscope

hitronics

#29
Quote from: Pepe on Dec 04, 2022, 11:09 PMIt is the same as seen in the simulation with the oscilloscope

ok, get it, thanks
so now according to code:
R = GPIO.1
S = GPIO.2
T = GPIO.0

Ivano

Inverting 2 phases twice always returns to the same RST sequence.
It is not interesting to know which is the R, the S and the T individually, what matters is the sequence of the phases.
If on a motor you invert 2 phases 2 times, the motor will turn in the same direction and without suffering any damage.

hitronics

@Ivano
Quote from: Ivano on Dec 05, 2022, 07:10 AMIf on a motor you invert 2 phases 2 times, the motor will turn in the same direction and without suffering any damage.
can you show me some examples to understand the theory?

keytapper

Quote from: Ivano on Dec 05, 2022, 07:10 AMIf on a motor you invert 2 phases 2 times, the motor will turn in the same direction
How fast can it be?
I think if the swap is longer than 2 wave cycle, there could be some affection.
Ignorance comes with a cost

Ivano

Quote from: hitronics on Dec 05, 2022, 08:16 AM@Ivano
Quote from: Ivano on Dec 05, 2022, 07:10 AMIf on a motor you invert 2 phases 2 times, the motor will turn in the same direction and without suffering any damage.
can you show me some examples to understand the theory?
The answer to your question can be found in previous posts by Pepe, Yasin, Keytapper.
At the electricity meter you have the 3 phases arranged in the right sequence by the electricity supplier, they are conventionally called R S T.
During the wiring of the electrical system, wires of 3 distinct colors are used and are connected to the various sockets respecting the sequence.
on the sockets, plugs there is stamped the sequence R S T or 1 2 3 so you can't go wrong.
If the sequence of the electricity meter is respected throughout the entire system, a motor plugged into any socket always turns in the same direction, even if you move it from America to Asia, to Europe.
If you invert 2 phases at random the motor turns in reverse, if at this point you invert 2 other phases at random it inverts the direction of rotation again and returns to the initial state.
My work has led me to create three-phase systems and to connect motors.
I am attaching a drawing for you to understand better.
20221205_111510.jpg   

See_Mos

QuoteI mean I want to use lcd then want to know the order of RYB connections

Have a look at this thread, post #9 for a simple two transistor solution

https://protoncompiler.com/index.php/topic,874.msg6548.html#msg6548

hitronics

Quote from: See_Mos on Dec 05, 2022, 11:22 AMHave a look at this thread, post #9 for a simple two transistor solution

https://protoncompiler.com/index.php/topic,874.msg6548.html#msg6548

can you post please optocoupler schematic?
thanks

John Lawton

Try this circuit of my design: Controller.png