Previous in Forum: Hydroelectric Generators and Mechanical Vibrations   Next in Forum: Query
Close
Close
Close
3 comments
Rate Comments: Nested
Participant

Join Date: May 2009
Posts: 1

Motor Speed Control with FPGA and Optical Sensor

05/29/2009 1:02 PM

hi need to control dc motor speed real time using fpga feed back by optical sensor.. anyone has got a clue of the code for the same??

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United States - Member - USA! Hobbies - Musician - Sound Man Engineering Fields - Mechanical Engineering - More than a Hobby Technical Fields - Technical Writing - New Member

Join Date: Oct 2008
Location: City of Roses.
Posts: 2056
Good Answers: 101
#1

Re: pwm

05/29/2009 1:17 PM

Welcome to CR4 harjasmeet_s.

That said, you might need to provide a bit more information to get a reasonable response. What hardware are you using? is this planned to be in a PLC? Do you have the PWM? do you plan to build from scratch? Are you simply looking for someone to write the code?

well, apparently I'm no help at all.

__________________
Don't believe everything you read on the Internet!
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#2

Re: Motor Speed Control with FPGA and Optical Sensor

05/29/2009 7:02 PM

Why an FPGA? Nothing happens in any 'ordinary' kind of motor* that needs that kind of speed. What rpm are you working with? A simple micro with built-in RAM & EPROM could do most motor control apps standing on its head - and it would be a lot more flexible. Are you familiar with PICs?

Can you program in BASIC or C (or, perchance, assembly language)? Is this a hobby or one-off on-the-cheap/in-house use/educational project?**

What provides your setpoint for the speed? What kind of optical sensor are you using? Please give some more information.

* This is perhaps excluding 100,000+ rpm ultra-high-speed motors.

** If you've answered 'no' to both of these, you're probably in the wrong job.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Oct 2007
Location: Sour Lake, TX 30°08'59.68"N 94°19'42.81"W
Posts: 675
Good Answers: 13
#3

Re: Motor Speed Control with FPGA and Optical Sensor

06/01/2009 1:46 PM

I feel that you don't know exactly what a FPGA is. It is a large scale integration of logic circuits that can be programmed once or more times, according to a schematic diagram or a language (VHDL) that puts in words the above mentioned schematic. It is used for situations in which you have a lot of logic inputs and outputs. The FPGA itself doesn't have the possibility to run a program as a microprocessor or a microcontroller do. There is possible to have a microcontroller embedded, which would rise the price of an FPGA.

Unless you have to control an Airbus A330-200, you better use a microcontroller, as JohnDG advised you.

__________________
Bridge rule #1: Nobody is as good as he thinks about himself nor as dumb, as his partner thinks...
Register to Reply
Register to Reply 3 comments
Copy to Clipboard

Users who posted comments:

indel (1); JohnDG (1); RVZ717 (1)

Previous in Forum: Hydroelectric Generators and Mechanical Vibrations   Next in Forum: Query

Advertisement