12V Fan and bs2
computer guy
Posts: 1,113
Hi
I want to control the speed of a 12V fan from the BS2.
Any ideas on what i can do.
Thanks.
I want to control the speed of a 12V fan from the BS2.
Any ideas on what i can do.
Thanks.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thanks
Correct…R1 will depend somewhat on the transistor, but also on the voltage running the fan. At 12V I would use 470 ohms minimum and 1K nominal on a 2N2222 or 2N3904 transistor. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
What is that? Could you please post a link.
www.parallax.com/detail.asp?product_id=122-28176
-Martin
Not to be rude but this is urgent.
You can tie the /CS line low, it SHOULD keep it running OK I think (can't remember if it NEEDs to be cycled once or not), the P8 is not necessary either, it simply allows the user to see when the threshold was crossed. So, 2 I/O, P14 and P15 or whichever you wish to use.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
So i would say:
temp VAR Word
in14/15 .....?
Or some thing like that.
SHIFTIN etc
-Martin
LM35DZ www.radioparts.com.au/ProdView.aspx?popup=1&Category=SX091616&Product=LM35DZ
Thanks
Post Edited (computer guy) : 1/27/2007 12:42:28 AM GMT
As i said urgent.
Sorry need the fan controller part of my project urgently as my parts tend to overheat and the fans are really noisy at full power so i need to control them.
Thank you to everyone who has helped me so far.
Post Edited (computer guy) : 1/27/2007 1:47:19 AM GMT
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
Catsup? ·Ketchup?
Thanks, but you came accros as a bit rude.
Around page number 186 is a good place to look (pdf page 196)
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
Sorry.
I'm not sure what temperature range you're figuring on dealing with, but obviously you'll have a different range of voltages to deal with.· If you were to do a room temperature thermometer 65 - 85 degrees F, the LM34 would result in an output range of 650 - 850 mV (200mV difference.)· The equivalent range in Celsius would be 18 - 29 degrees C and an LM35 would result an output range of 180 - 290 mV (110mV difference.)
They made them this way so that you could read them directly·using a milli-voltmeter, not intending they should be interfaced with an ADC and all this.· It's cool to do that. ·I'm just trying to·shed some light on the subject, LM34/35-wise.
If so what pbasic function would read the mv reading.
Thanks
P.S If not looks like i will just need to get an ADC0831 chip.
Are you just going to turn a fan on/off?· Or are you trying to effect varying speed?
Stick with the Process Control example/s (Martin Hebel, etc.), knowing that you'll have to reckon with your data accordingly.· I guess it was written using a LM34 (Fahrenheit) and you want to go off the reservation and use a LM35.· One is not better than the other,·either is as usable as the other, but the resulting outputs aren't the same and therefore the ADC range and results between the two will be quite different.· To that end, I think you'll just have to be bold, daring and unafraid and experiment all that out.
Update -- The ADC0801 in the example·digitizes a span of 0 to 5V into 256 slices, because Vref = +5V.· So, that is approx. 20mV per step.· An LM35 in the range 18 to 29 degrees C will output 180 to 290mV and the ADC0801 should result counts, ideally,·between 0000 1001 ($09) and 0000 1110 ($0E), I suspect.· Not much resolution.
If you use a lower Vref, you'll have more resolution.· With 1V Vref, it's then 1V/256 = appx 4mV per step, yielding 0010 1101 ($2D) to 0100 0110 ($46), I think.
Post Edited (PJ Allen) : 1/28/2007 1:56:51 AM GMT
What resistor value would i need to turn 5V into 1V.
I have never been able to work out how you determin what resistor you need to use.
Thanks
So if i was to read the temperature every 10 seconds (10000 milli seconds) and convert the 9 bit data into a celcius reading and then set the fans speed using the pulse out command.
How would i pulse the fan output without using up all the BS2 processing time. My robot also needs to roam with a ping))) and drive 2 motors.
Thanks