CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

I can not move the brushless motor with 50 Hz

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Zek_De



Joined: 13 Aug 2016
Posts: 100

View user's profile Send private message

I can not move the brushless motor with 50 Hz
PostPosted: Mon Apr 10, 2017 10:27 am     Reply with quote

Hey friends,
I'm giving 50 Hz Pwm on ESC and no move. I just get periodic bip sound.
If I change PWM first bip stop and then again return bip.
What is wrong? PWM frequency ? My ESC is from Aliexpress.

https://tr.aliexpress.com/item/4x-2212-1000KV-Outrunner-Motor-4x-HP-30A-ESC-4x-1045-propeller-Black-Quad-Rotor/1983175325.html?spm=2114.13010608.0.0.oOAPJM
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Mon Apr 10, 2017 10:46 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Apr 10, 2017 10:48 am     Reply with quote

Are you using a PIC ? Or are you using Arduino ARM Cortex ?
I suspect the ARM. In that case, you should look at Arduino forums, etc.:
https://dronesandrovs.wordpress.com/2012/11/24/how-to-control-a-brushless-motor-esc-with-arduino/

https://forum.arduino.cc/index.php?topic=270309.0
Zek_De



Joined: 13 Aug 2016
Posts: 100

View user's profile Send private message

PostPosted: Mon Apr 10, 2017 10:53 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Apr 10, 2017 11:08 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Apr 10, 2017 11:51 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Apr 10, 2017 12:02 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed May 17, 2023 2:13 pm     Reply with quote

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: 288

View user's profile Send private message

PostPosted: Wed May 17, 2023 2:29 pm     Reply with quote

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: 19215

View user's profile Send private message

PostPosted: Thu May 18, 2023 4:08 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group