Do I want a motor shiled?

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Do I want a motor shiled?

Postby Jarguess » Tue May 01, 2012 5:31 pm

I need to read in a pwm signal and map it to a different pwm value to control two solenoids. I want it controlled by a switch so regarless of the pwm input, the solenoids will only be activated if the switch is activated. Additionally I need a third solenoid activated at 100% any time the other two are activated. Is the motor shield what I want?

Could I use a relay to activate more selonoids or would that cause to much delay for the fast switching?

Output needs to be in the 10-14 volt range and the input will either be 5 volts or in the 10-14 volt range (haven't decided on a sensor yet :) )

It seems to me that any of the product will do this simple task, but which will be the most efficent and cause the least amuont of delay?
Jarguess
 
Posts: 14
Joined: Tue May 01, 2012 5:00 pm

Re: Do I want a motor shiled?

Postby adafruit_support_bill » Tue May 01, 2012 6:17 pm

The motor shield could control up to 4 solenoids - so long as they need less than 600mA. But I would use a MOSFET. One per solenoid plus a snubber diode will do it. MOSFETS are very fast and will switch up to 60A @ 30V.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: Do I want a motor shiled?

Postby Jarguess » Tue May 01, 2012 9:28 pm

If I wanted to use a schottky diode for a flyback what specs would you recommend? With the mosfet do I need to include a resister with the fly back to dissipate the current?
Jarguess
 
Posts: 14
Joined: Tue May 01, 2012 5:00 pm

Re: Do I want a motor shiled?

Postby adafruit_support_bill » Wed May 02, 2012 4:49 am

Diode specs would depend on the coil & the switching rate. In general, it doesn't hurt to overspec.
A diode in parallel with the coil should be sufficient.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: Do I want a motor shiled?

Postby Jarguess » Wed May 02, 2012 6:23 am

I was thinking the flyback went between the mosfet and the controller, but you're saying it should go between my solenoid and the mosfet? I dont know much about the solenoid except that its 12volts and has a 9amp current draw. This will be used in a car so fugure ill be working with 14 or 14.5 volts. As for switching rate I was hoping every 10 milliseconds. Is that possible? If not what kind of resolution can I expect, 20 milliseconds?
Jarguess
 
Posts: 14
Joined: Tue May 01, 2012 5:00 pm

Re: Do I want a motor shiled?

Postby adafruit_support_bill » Wed May 02, 2012 6:40 am

but you're saying it should go between my solenoid and the mosfet?

No, The flyback is in parallel with the coil. The following diagram is for a relay, but driving a solenoid is the same:
http://www.arduino.cc/playground/uploads/Main/relays.pdf

9A is a fairly hefty coil. When you say switching every 10 ms, do you mean a 10 ms PWM period (100 Hz) to maintain the solenoid position or are you actually trying to actuate the solenoid at that rate?

The MOSFET is capable of switching much faster than that. But your solenoid actuation rate will be limited by the inductance of the coil.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: Do I want a motor shiled?

Postby Jarguess » Wed May 02, 2012 10:53 am

OK sorry, I'm a seasoned professional programmer but the electronics is new to me.

In the diagram TI102 is the mosfet and 1N4004 is the power diode being used as a flyback in parallel with the relay coil or in my case the solenoid. If I'm using the Arduino with the motor shield and usign the T0-220 mosfet, what vlaue do I need for R1

Drawing1.png
Drawing1.png (7.87 KiB) Viewed 1085 times
is this correct then?

When you say switching every 10 ms, do you mean a 10 ms PWM period (100 Hz) to maintain the solenoid position or are you actually trying to actuate the solenoid at that rate?


Actually trying to actuate the solenoid at this rate. The solenoid manufacturer at one time sold a progressive controller for the solenoid. The factory controller could start the solenoid at 10% rate and ramp to any percentage desired in 1% steps so I'm assuming the solenoid can do it. What I'm thinking is at 1% you have 10ms on and 990ms off, at 50% 500ms on and 500ms off, or 31% 310ms on and 690ms off.

Does what I'm trying to do make sense or am I doing this all wrong?
Jarguess
 
Posts: 14
Joined: Tue May 01, 2012 5:00 pm

Re: Do I want a motor shiled?

Postby adafruit_support_bill » Wed May 02, 2012 11:57 am

If I'm using the Arduino with the motor shield and usign the T0-220 mosfet, what vlaue do I need for R1


You don't need the motor shield or the resistor. You can drive these MOSFETs directly from a digital pin on the Arduino.

Actually trying to actuate the solenoid at this rate. The solenoid manufacturer at one time sold a progressive controller for the solenoid. The factory controller could start the solenoid at 10% rate and ramp to any percentage desired in 1% steps so I'm assuming the solenoid can do it. What I'm thinking is at 1% you have 10ms on and 990ms off, at 50% 500ms on and 500ms off, or 31% 310ms on and 690ms off.

What exactly are you trying to do with this solenoid? Do you have a link to a spec for it?

From your description, it sounds like the factory controller is designed to control the force on the solenoid via PWM, not to have it go back & forth at 100 Hz. Solenoids are power-hungry devices that require a lot of energy to actuate, but less to maintain their position. It is common to apply 100% at the start to actuate, then back off to whatever level is needed to maintain the position.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: Do I want a motor shiled?

Postby Jarguess » Wed May 02, 2012 1:19 pm

Haha

What I'm trying to do is build a nitrous controller. The programmable controllers available are extremely expensive. Most of the controllers on the market bring the nitrous gas flow on at around 10-20% flow and then over a pre designated time progressively increase the gas flow up to 100%

I want to be able to control the gas flow based on my own map related to rpm. This way I can bring up the gas flow on a curve instead of linearly. I also want to control the gas and nitrous solenoids individually so I can control the fuel mixture. My goal is to control the gas flow relative to the power band and/or timing curve of my engine.

I was using the motor shield because I want to control 4 different solenoids independently (two stages of nitrous), plus another one or two additional saftey solenoids (always 100% flow).

I don’t have any specs, however I just looked at the instruction sheet for their programmable controller (http://holley.com/data/Products/Technical/A5164-SNOSrev.pdf) and it says

Setting the NOS Pulse Frequency
Place the Select Switch at the NOS Pulse Frequency position. Using the .001 Data Switch, select the desired frequency.
Example: [0 = 20, 1 = 25, 2 = 30, 3 = 35, 4 = 40]
Press the Programming Switch to enter your selection.
NOTE: The Pulse Frequency = how many times per second the solenoids operate. The higher the frequency, the more pulses per second. All production NOS solenoids operate best at 25 – 30 Hz.


I guess you’re right; I need control the force on the solenoid via PWM. How do I do that?
Jarguess
 
Posts: 14
Joined: Tue May 01, 2012 5:00 pm

Re: Do I want a motor shiled?

Postby Jarguess » Wed May 02, 2012 1:34 pm

NOS solenoid http://holley.com/16020NOS.asp
Fuel solenoid http://holley.com/16080NOS.asp

This is basicly what I want, but I want to use the Arduino so I can program a map for each solenoid based on a single pwm input and activation switch. http://www.ti.com/lit/ds/symlink/drv101.pdf
Jarguess
 
Posts: 14
Joined: Tue May 01, 2012 5:00 pm

Re: Do I want a motor shiled?

Postby adafruit_support_bill » Wed May 02, 2012 4:39 pm

All production NOS solenoids operate best at 25 – 30 Hz.

The specs don't give any detail about the electrical characteristics of the solenoid coil, but you probably should stick close to that recommendation. Solenoid coils are inductors and their response changes with frequency.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: Do I want a motor shiled?

Postby Jarguess » Thu May 03, 2012 11:13 am

So how do I control the flow without changing the frequency?
Jarguess
 
Posts: 14
Joined: Tue May 01, 2012 5:00 pm

Re: Do I want a motor shiled?

Postby adafruit_support_bill » Thu May 03, 2012 11:23 am

Generally it is done by controlling the duty cycle. Your basic frequency is 25-20Hz, but the coil is energized for somewhere between 0% & 100% of that time.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: Do I want a motor shiled?

Postby Jarguess » Thu May 03, 2012 12:03 pm

So lets assume im running someplace between 29-30 hertz. If my duty cycle is 3% then my signal is on for 1 millisecond and off for 33. If I want a 60% duty cycle my signal will be on for 20 milliseconds and off for 14. And my best resolution is basicly 34 steps or 3% blocks. Is that right? So the electronics are the same, just my programming is different, correct?
Jarguess
 
Posts: 14
Joined: Tue May 01, 2012 5:00 pm

Re: Do I want a motor shiled?

Postby adafruit_support_bill » Thu May 03, 2012 12:29 pm

And my best resolution is basicly 34 steps or 3% blocks.

Only if you restrict your timing to 1ms units. You can get much finer than that. This page is a good resource for PWM information: http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Next

Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: No registered users and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]