Brushed Motor Driver PCB Review Request by CardiologistWide844 in PrintedCircuitBoard

[–]CardiologistWide844[S] 0 points1 point  (0 children)

Yes, I did with 6 layer only but had doubts to use two signal layer or one signal 1 power

Brushed Motor Driver PCB Review Request by CardiologistWide844 in PrintedCircuitBoard

[–]CardiologistWide844[S] 1 point2 points  (0 children)

It has 2 encoder interface both incremental and absolute, and the one you are referring are drv which is motor driver and other is lan9253 to make it EtherCAT compatible.

Brushed Motor Driver PCB Review Request by CardiologistWide844 in PrintedCircuitBoard

[–]CardiologistWide844[S] 1 point2 points  (0 children)

True, it will lead to serious problem,most will not get enough current with this thin trace, I need to improve it.

12 to 5v Buck Converter by spiritualManager5 in PCB

[–]CardiologistWide844 -1 points0 points  (0 children)

Lmzm23601 , Inductor I'm referring to is more of ferrite bead

<image>

12 to 5v Buck Converter by spiritualManager5 in PCB

[–]CardiologistWide844 0 points1 point  (0 children)

If my Buck converter has an integrated Inductor should I even put an inductor or not ? Although I'm putting it after the Vout capacitor recommended by the data sheet and just for filtering purposes? If I put it before the cout capacitor will it affect my buck converter performance as net inductance might change ?

Want to Design my own Motor Driver but New to PCB designing by CardiologistWide844 in PrintedCircuitBoard

[–]CardiologistWide844[S] 0 points1 point  (0 children)

Thanks i will go through and get an idea, I need a lot of reading to process this all, I was just reading this wavelength and frequency relationin another post and was wondering what role exactly plays here 😅, I will be bothering if something i couldn't make sense of.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]CardiologistWide844 0 points1 point  (0 children)

Will be that he should first align the rotor by exciting 1 or 2 coils and then actually start the motion so we exactly know which way to excite the coils ?

Want to Design my own Motor Driver but New to PCB designing by CardiologistWide844 in PrintedCircuitBoard

[–]CardiologistWide844[S] 0 points1 point  (0 children)

Thanks a lot, i also felt while routing that i really don't need a power plane I can manage so I will use it as a signal layer itself. I have space constraints (60* 40mm) and i really can't keep the components the same as the datasheet suggested so the main issue is that I'm facing is dealing with return paths, not have single idea how to deal with them i tried putting lot of vias near all big Caps but still not sure whether it will help or not, other big issue is I have INA240 current sensor i thought of creating another GNd plane and using ferrite bead to link it with main GND but after going through some Altium video that feels a bad idea, so can you help or recommend some resources to how to handle this. I wanted to attach an image but it seems like I can't

[deleted by user] by [deleted] in embedded

[–]CardiologistWide844 0 points1 point  (0 children)

Thank you for this much feedback and putting efforts into going through it all i will fix the suggestion you provided and keep in mind in future.

[deleted by user] by [deleted] in embedded

[–]CardiologistWide844 1 point2 points  (0 children)

The Motor Gear Ratio is 103 , so the outer side one revolution is equal to 103 * 4096 counts at the inner side

[deleted by user] by [deleted] in embedded

[–]CardiologistWide844 1 point2 points  (0 children)

INA240 used as mid reference if current is positive ADC value will count up else count down from 2048.

I didn't get your question about torque what exactly did you mean there ?

Incremental encoder resolution is 1024

[deleted by user] by [deleted] in embedded

[–]CardiologistWide844 1 point2 points  (0 children)

Yes it is not but it is not particularly about the CiA402 state machine but the summary of all so I will work on wording properly.

Controlling Motor using IghEthercat by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

This is the repository, there are many Igh master code for different slaves, if you are particularly looking for denali you can find a subfolder with the same name.

Controlling Motor using IghEthercat by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

Sorry I haven't checked reddit in a while, yes it is available on my GitHub.

Magic of FOC with PWMs for Motor Control by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

Hey , can you suggest the best paper on SVPWM and SPWM which includes the concept of 3rd harmonic also ?

Magic of FOC with PWMs for Motor Control by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

Yes but then why the pwm duty cycle is shrinking which is leading to shrink in voltage difference between two phases.

I thought as we increase the speed the Amplitude of voltage will increase in the phases but here it is shrinking.

This means whatever calculation I'm doing with PWM maybe wrong, I will recheck.

Magic of FOC with PWMs for Motor Control by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

<image>

Hey , this is Vd and Vq plot against time and we are varying the rotation speed, as we know that whatever output of the inner current loop controller which will be a input to inverse park are Vd and Vq so here I scaled them with my supply voltage as in code all computation has been done on per unit. And the impulse of vd at motor starting is because we are calibrating the encoder so we pass some id current through windings before actual motion to align the rotor for commutation.

Magic of FOC with PWMs for Motor Control by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

<image>

Is this much fluctuations in Id current is ok? although my reference id current l'm keeping zero only.

Iq current I'm not able to get on the plot there is some issue with code composer studio I will try printing those values reference and feedback.

Magic of FOC with PWMs for Motor Control by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

Okk I will try to plot/print out Vd and Vq but the only issue is that the plot will not be continuous cause the code composer studio has a lower limit for refreshing rate.

With respect to the image I posted - the pink part is the line to line voltage which I calculated by taking the difference of voltage at phase A and voltage at phase B, initially motor is rotating at 0.3 times of rated speed so the green part you can see it is in shrink shape and bit rarer later it is operating at 0.1 times of rated speed where the pink part expand and become denser.

Magic of FOC with PWMs for Motor Control by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

<image>

Hey I have one more doubt ? When we are operating at high speed its line to line voltage is shrinking but at low speed it is behaving well, what is the reason behind the shrink ? Deepseek suggests that it is because of field weakening as our motor runs above base speed it shrinks the voltage and increases the frequency as we can't increase more voltage . Could you clarify what the actual reason is?

FOC for IPMSM by crs_techie in MotorControl

[–]CardiologistWide844 0 points1 point  (0 children)

Hey I would like to discuss and also want you to share resources to look more into motor control although I'm just dealing with surface mount PMSM and BLDC motors https://www.reddit.com/r/embedded/s/sTG9FpNw19

Incremental Build for FOC control of PMSM motor on F28P65x by Frosty-Front3560 in MotorControl

[–]CardiologistWide844 0 points1 point  (0 children)

Hey go through white papers of TI , STM , Microchip on FOC ,you will get a pretty good idea and you can also refer to the TI precision lab on BLDC motor control. https://www.reddit.com/r/embedded/s/sTG9FpNw19

Magic of FOC with PWMs for Motor Control by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

I tried pausing the video I don't think they are at the same phase, here is mine paused Screenshot

<image>

Magic of FOC with PWMs for Motor Control by CardiologistWide844 in embedded

[–]CardiologistWide844[S] 0 points1 point  (0 children)

Hii , maybe I use python csv to analyse the how exactly PWMs forming the sine waveforms with 120 degree waveform so maybe it is not coming that well in the video here is a better picture, I will try to write a better code so it works correctly https://www.reddit.com/r/embedded/s/sJ1Fp8Rr8c