Pages: 1 2 [3] 4   Go Down
Author Topic: generating a -10v...+10v control signal from an arduino  (Read 4534 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 7
Posts: 476
what?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Max232 makes a nice negative voltage source
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34547
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

We have already established that a negitave voltage is not needed for this.
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
We have already established that a negitave voltage is not needed for this.

Ditto-ed.

However, for reference, the 7662 chip is a nice 8-pin negative-voltage generator, and has
a wider voltage range than the older 7660 chips,

http://www.google.com/webhp?source=search_app#hl=en&tbo=d&sclient=psy-ab&q=7662+converter
Logged

UK
Offline Offline
Sr. Member
****
Karma: 4
Posts: 331
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i was trying to do something similar a while back

http://arduino.cc/forum/index.php/topic,76821.0.html
Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 74
...blowing up boards one connection at a time
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

does this one look better??



* sketch3.jpg (41.7 KB, 578x258 - viewed 31 times.)
« Last Edit: November 24, 2012, 06:55:53 pm by Jonnym » Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34547
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
does this one look better?
Yes.

Why don't you use proper symbols for transistors?
Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 74
...blowing up boards one connection at a time
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

.. :-)



* sketch3a.jpg (62.47 KB, 757x372 - viewed 32 times.)
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34547
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley smiley smiley
Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 74
...blowing up boards one connection at a time
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

alright...

next set of questions... resistor sizes.

I am using a  2N3904 transistor, which may not bethe correct thing to use, but maybe it is. i don't know for sure...

the way i understand this, R1 would be the current limiting resistor for Arduino. but i can seem to find what the current needs to be to operate the get the transistor to 'turn on' (yes, i sure there is a very technical term for this smiley  )

i bet i would plug the need current and something like 5v's into Ohm's law and i would get something helpful???

here's the data sheet
http://www.fairchildsemi.com/ds/2N/2N3904.pdf

i'm going to guess 10k and 5v for ohm's law values... maybe? 

thanks ya'll


Logged

Offline Offline
Sr. Member
****
Karma: 3
Posts: 259
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you want to guess a 1k to 2.2k would be better if you want the right one. Read these
http://www.physics.unlv.edu/~bill/PHYS483/transbas.pdf
 http://www.rason.org/Projects/transwit/transwit.htm
« Last Edit: November 24, 2012, 08:34:34 pm by be80be » Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 74
...blowing up boards one connection at a time
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

great links...

working through the numbers, i am going to assume a 200ma collector current, which would give me something different than an HFE of 30. but i'll use 30, since this looks to be rough numbers anyways.

200/30 = 6.67ma

so there's a bit of "double it for safety margin" to make sure the base is saturated.

6.67 *2 = ~14ma

reading the unlv.edu pdf

R1 =V/Ib = (5V – 0.75V)/0.014A = ~305Ω

and choose the closest standard... nice.. thanks

_J

« Last Edit: November 25, 2012, 02:35:07 pm by Jonnym » Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
assume a 200ma collector current

That's a lot of current for what you are trying to do.

The general design process will be around how fast you need the valve to read / its input impedance. From there, you decide your pwm's period/frequency and you get the desired rc values.

I would use 10k for R2/R3, 4.7uf for the cap and 1k for the base.
Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 74
...blowing up boards one connection at a time
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

fantastic...

so R3 = 10k, this value comes from R/C calculator. same with C1

how about R2, where does this value come from?

thanks
_J
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I was guessing that your pwm is likely 500hz, and your valve has minimum speed requirement (near dc control signal). So I wanted to achieve a time constant of 50ms. That provides me with 10k/4.7u on the r/c filter.

I used 10k for the pull-up for convenience: the charge up time constant is now 100ms and the discharge time constant is 50ms. Not a big deal.
Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 74
...blowing up boards one connection at a time
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for the explanation, i am really trying to work through all the steps in this project to remove some of the mystery surrounding this stuff. but it seems, the more i learn, the more mystery presents itself. so yea - i guess it's all just magic smiley

_J

Logged

Pages: 1 2 [3] 4   Go Up
Jump to: