- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
good morning evry one
Am working on a project with psoc 4, i want to pilot a motor brushless with a drive carte "BLHD30K", and i want to calculat the speed motor!!
this drive carte give a Pulse signals (pulse width: 0.3 ms) of 30 pulses per revolution of the motor output shaft are output in synchronism with the motor drive.
Motor speed can be calculated by measuring the SPEED output frequency.
Motor speed [tr/min] =(SPEED output frequency (hz)*60)/30
SPEED output frequency =1/T
like that i can also calculat the position of the motor by using an interruption every 30pulse -----> one revolution (tour),
but i dont khnow how to calculat that? any idea !!
thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We had checked the project. It seems the 'isr_1' is not configured. I believe isr_1 is supposed to be used to count.
And the cont variable will always have 1 or 0 since you are assigning the cont to zero in isr_speed().
Please let us know the intended algorithm used in this project.
Jobin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i forget to say that am using a psoc creator 4200L
thank u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will need an actual feed back from the motor shaft position. I would us a shaft encoder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i look for all the exemple her i didnt find any soft wich make us have the frequency or the speed motor o_o
thank u for your answear bobgoar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes the carte drive send an output speed, normally is a :
"output
Pulse signals (pulse width: 0.3 ms) of 30 pulses per revolution of the motor output
shaft are output in synchronism with the motor drive.
Motor speed can be calculated by measuring the SPEED output"
sow i should calculate the the SPEED output, for that i try with a simple counter, in my inputpin i already prepare an pwm 182hz juste for test, then i send it to this input and then i send the answer with hid usb Command, her my code u can see if u want
Intel now it doest working !!, i don't know why ^^ 😕
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The project you attached doesn't have the counting sections [TCPWMExample02.cydsn].
From the TopDesign snapshot, I am guessing interrupt is generated for the TC. Please attach the complete project.
Jobin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i think with that example we could not read the input pulse!!
we just need a soft make us read a pwm pulse to calculate frequency and speed ^^
that why i propose to use counter but we need to connect him with an input pin ;), after ill send it to an application by using usb device
her take a look for wath i propose but it dosnt work yet !!!
need some advice thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
for testing my soft i use a pwm that i send after in my counter juste for test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you provide your complete project .cydsn file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Still the attachment doesn't have the required project "TCPWMExample01.cyprj".
We are getting error: Could not find a part of the path 'C:\Users\JOBI\Desktop\Cases\Q217\forum\azbida\Nouveau dossier\TCPWMExample02\Backup\P_SCANCUBE_v1\code\TCPWMExample01.cydsn\TCPWMExample01.cyprj'.
And also the \P_SCANCUBE_v1\ folder is not available in the archive.
# open the project which have two TCPWM and USBFS
# Right click on Project 'TCPWM...' in workspace explorer
# Select archive
Jobin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We had checked the project. It seems the 'isr_1' is not configured. I believe isr_1 is supposed to be used to count.
And the cont variable will always have 1 or 0 since you are assigning the cont to zero in isr_speed().
Please let us know the intended algorithm used in this project.
Jobin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi ANKS, need a request plz :), wath do u think about the project ?