View previous topic :: View next topic |
Author |
Message |
Zek_De
Joined: 13 Aug 2016 Posts: 100
|
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Mon Apr 10, 2017 10:46 am |
|
|
We need a little bit more information.
For starters:-
What sort of drive does the motor require?
Which PIC/compiler are you using?
Can you show us your code?
What does your power drive look like?
I've had quick look at your link, tells me nothing.
Mike |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Zek_De
Joined: 13 Aug 2016 Posts: 100
|
|
Posted: Mon Apr 10, 2017 10:53 am |
|
|
I'm using ARM stm32f4.
this is github
https://github.com/ZekDe/STM32F4xx
I m trying with PID output ,50 Hz .I didnt send codes because so long but if you want I will ... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Apr 10, 2017 11:08 am |
|
|
Quote: | I'm using ARM stm32f4. |
That's what I thought. This is not an ARM forum. It's CCS only. |
|
|
Zek_De
Joined: 13 Aug 2016 Posts: 100
|
|
Posted: Mon Apr 10, 2017 11:51 am |
|
|
Yes but this is general question ,but I got it ,my mistake is 50 Hz (20 ms) but ESC works 1ms and 2ms okay thanks again |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Apr 10, 2017 12:02 pm |
|
|
It's not a general electronics forum. General electronic questions are
normally off-topic, but are OK if they are related to a CCS compiler
project, using a Microchip PIC microcontroller. ARM is off topic. |
|
|
nailuy
Joined: 21 Sep 2010 Posts: 159
|
|
Posted: Wed May 17, 2023 2:13 pm |
|
|
mabe is to late now, but mabe it help somewone.
you cannot make and electric engine (asincroic engine) to work in simple square wave at 50Hz. You must generate alternating sinusoid, by PWM of one microcontroller... to be apropiate to ideal sinusoid to alternate magnetic flux to create rotating copule to turn the rotor. If you heave simple square wave you will have simple magnetic change, without or less changing magnetic flux, In fast way without power to push the rotor.
This is simple to understand difference of square wave (simple digital) or sinusoid wave (PWM).
Last edited by nailuy on Wed May 17, 2023 2:41 pm; edited 1 time in total |
|
|
gaugeguy
Joined: 05 Apr 2011 Posts: 303
|
|
Posted: Wed May 17, 2023 2:29 pm |
|
|
You must have missed in all of these very old postings that the OP was using an ESC (Electronic Speed Control) and not direct driving a motor. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19496
|
|
Posted: Thu May 18, 2023 4:08 am |
|
|
Problem is of course that if this ESC takes a RC servo type signal he want's
a much finer resolution than a PWM will normally give. On the PIC better
to use a CCP to do this. Otherwise the resolution will be awful. |
|
|
|