12-21-2011 05:43 AM
hello all
I want to buy the spartan 3e starter kit, but before that I want to make sure that I can control motors using the Kit, can I ?
thnx
12-21-2011 05:49 AM - edited 12-26-2011 07:25 AM
If you can read and understand the Spartan-3e datasheet, and you can read and understand the datasheet for the motors you wish to control, you should have no trouble answering your question. Do you know where to find the datasheets you need?
-- Bob Elkind
12-21-2011 08:49 AM
I understand from your answer that you don't know if I can or cannot connect a motor to the starter kit???!
12-21-2011 08:51 AM
@michaelfpga wrote:
I understand from your answer that you don't know if I can or cannot connect a motor to the starter kit???!
You haven't told us anything about the motor you want to connect to the kit. I mean, there's a several-horsepower electric motor sitting in the warehouse, and I'm sure I can control it with an S3, assuming also that I bodge together the proper drive electronics.
12-21-2011 08:58 AM
I have the datasheet for the spartan 3e family, should I look within this datasheet or there is a seperate datasheet for the starter kit?
12-21-2011 09:02 AM
@michaelfpga wrote:
I have the datasheet for the spartan 3e family, should I look within this datasheet or there is a seperate datasheet for the starter kit?
You still haven't told us what kind of motor you're using.
Some motors have built-in drivers which can accept signals from a micro or FPGA. Others require an amplifier/motor driver.
Some motors are smart and accept commands from a processor. Others have nothing other than coil inputs and need to have their steps generated and amplfied.
So before we can give you an answer, you have to help us to understand what you're doing.
12-21-2011 09:15 AM - edited 12-21-2011 09:17 AM
I want to buy the spartan 3e starter kit, but before that I want to make sure that I can control motors using the Kit, can I ?
If all you want to do is control some motors, you really shouldn't bother with any FPGA development kit. FPGA development boards are designed first and foremost as a platform and experimentation device for learning about specific FPGAs and learning the use of FPGAs in general. It takes a considerable amount of time and effort to become proficient in the use of FPGA tools and technology, and it would largely be wasted effort for you.
It would be far simpler to hire some experienced design engineer or someone familiar with motor control to help set you up with a rig for your motor control application. If this is a one-off project, hire someone knowledgeable who already knows how to do this.
-- Bob Elkind
12-21-2011 11:10 AM
I want to use DC motors( 12v, 0.5 A) and control them through H bridge
12-21-2011 11:14 AM
I will use the FPGA kit to control the dc motors beside other tasks. So I just want to make sure that I can connect the Kit to H bridge?
12-21-2011 11:27 AM - edited 12-21-2011 12:22 PM
What H bridge circuit are you using? Something like this, for example? And how many of them?
-- Bob Elkind
12-21-2011 03:21 PM
You're in luck - Digilent produce something called the PmodHB5, an H-bridge with feedback inputs:
"The Digilent PmodHB5 2A H-bridge module is an ideal solution for robotics and other applications where logic signals are used to drive small to medium-sized DC motors such as the Digilent motor/gearbox"
You can connect up to three of these to one Spartan-3E Starter Board, or more if you use the Digilent board that breaks out the expansion connector to additional Pmod ports. If you're not proficient in designing power electronics for motor control applications, this will probably be the cheapest and easiest way to control your DC motors.
12-22-2011 02:31 AM
I will use L293N
12-22-2011 02:37 AM
I want to totally isolate the motors from the fpga, if I used the PmodHB5 can I still use opto couplers to isolate the motors?
12-22-2011 04:46 AM
Hi Michael,
in either case (using the PMOD vs. L293) you can use a breadboard like this
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,401,471&Prod=PMOD-BB
for a small circuit with less IOs. (I wouldn't buy it from Digilent but make it from cheap original parts)
Or if you have need for more IOs and a larger circuit this board will be useful:
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,648,559&Prod=FX2WW
I think that's the right one for the S3E Starter kit. Please check the connector.
If you don't want to waste this board on your first tries, you may put some pinheaders on it and put another circuit board on that, piggy back style.
This way you can develop your motor driver circuit with opto isolation and keep the stress for the FX2Ww at a minimum.
Have a nice synthesis
Eilert
12-22-2011 10:01 AM
thnx alot 4 u all
I have another question If I want to connect a camera to the kit , I have searched and found that the best is to use CMOS cameras but to control the camera I need to use I2C, can I do something like this or not?
12-22-2011 10:26 AM
@michaelfpga wrote:
thnx alot 4 u all
I have another question If I want to connect a camera to the kit , I have searched and found that the best is to use CMOS cameras but to control the camera I need to use I2C, can I do something like this or not?
WHICH CAMERA?
Not all CMOS cameras use I2C for control, and not all cameras share a common interface!
12-22-2011 12:09 PM
Avnet has just announced a new Spartan-6 Motor Control Development Kit that might be just what you're looking for to prototype your design.
The kit includes a Spartan-6 LX75T baseboard, an FMC daughtercard for the motor drive, plus a BLDC and Stepper motor.
The FMC card uses low-cost Texas Instruments DRV8312 integrated drivers that include 3 half-bridges, FET drivers and protection circuitry. The FMC can drive two DC motors up to 24V at 2A.
Lead time is ~10 weeks (February timeframe), but if your schedule allows, it might be a good option.
For your camera, have a look at the Avnet S6 Industrial Video Kit. It includes an FMC module and OmniVision camera, and comes with reference designs that implement the full video pipeline for capturing high resolution video up to 1280x800 @ 30fps. The S6 LX150T baseboard has two FMC slots, so you could use both the Motor Control FMC module *and* the FMC camera module at the same time.
Note that the Motor Control FMC module and FMC OmniVision Camera module can be purchased separately.
12-22-2011 11:34 PM
Hi Michael,
we do not know what you can do.
We don't know either what the requirements of your project are.
And we also don't know is what the camera of your choice is capable of, or its interface requirements.
But you can be fairly sure that FPGAs are capable to be connected to most any digital device available.
There are some limits, like max clock frequency and I/O standards and driving capabilities, however.
The first one can almost be neglected, since actual FPGAs are close to the leading edge of high speed devices.
(They can controll DDR-RAMs and have special high speed serial transceivers up to the multi GB range).
The second one is merely a question of level converters and driver circuits connected between FPGA and other circuits.
The most limiting factor is the designer.
So ask yourself. Can you do it, or not? ;-)
Have a nice synthesis and Merry Christmas
Eilert
12-25-2011 05:16 AM
Thanks all
Any suggestions of what type of camera can I use? I need the size of the image to be small, and I don't want to use ADC to get the image
12-25-2011 05:51 AM
@eilert
the fx2 bread board you told me about can be connected directly to the kit through the fx2 connector or should I use a cable or wires ?
12-25-2011 08:02 PM
12-25-2011 10:48 PM
where can I find such assembly cables? I searched digilent site and couldn't find any :smileysad:
12-25-2011 11:01 PM
I've no idea. If you can't find one, you might have to make one.
It's probably going to be easier to run a camera on the end of a long composite cable than extending the 100-way FX2 connector, if that's what you're angling at.
12-26-2011 07:40 AM
Michael,
You want to build a robot. We want you to succeed in this endeavour, but you will need to invest your own time and energy and talents. We cannot do the work, we can only make vague suggestions.
It's clear that you do not yet know enough about hardware design, FPGAs, FPGA design, HDL, or the FPGA design toolkit to accomplish your goal. You will need to learn these things in order to design, implement, debug, and test your FPGA-based robot controller. Learning these things should be your short-term goal.
It would be useful for you to compose a plan for learning how to design, implement, debug, and test an FPGA-based design. Let us review your plan, and possibly make suggestions. Then set about completing this plan, step by step.
Does this make sense?
-- Bob Elkind
01-02-2012 11:39 PM
Hi Michael,
wether you are using some extra cable between the two FX2 connectors depends on the signal speed and integrity requirements.
For slow signals this may be an option, but since you are about to grab some video data you should minimize the sources for data transmission problems. Each extra connector and wire is a potential source of disturbance (if not failure, e.g. open circuits).
so maybe you first get your design running with the boards connected directly, and then you might add some cables in between for better mounting or whatever you need it for. If you proved that the design did work without the cable, then the only source of possible errors can be the cable (either lenght or quality).
Have a nice synthesis and a happy new year
Eilert