Pages: [1]   Go Down
Author Topic: Arduino for 24V environment  (Read 6310 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there!

Looking to use an arduino or similar board for some trial&error logic tests in a product we're working on. Problem is, it's an industrial product using 24V signal level, and not 5V. Question is, is there an Arduino or similar out there that work with 24V instead? Is there any ready made arduino shield for working with 24V signals?

I realize I can use voltage dividers or similar on inputs and 5V relays on outputs, but then it's not quite as quick and handy anymore. Any ideas?
Logged

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

Quote
is there an Arduino or similar out there that work with 24V instead?

No processes I have ever come across works on a 24V rail. You have to use signal conditioning to use 24V input signals. An opto isolator is a better bet than a potential divider in these cases.
Logged

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
No processes I have ever come across works on a 24V rail

Trucks?
Logged

Per Arduino ad Astra

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In this case, pneumatic valves and sensors...
Logged

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

Quote
Trucks?

Yes but the processor doesn't run at 24V does it?
Logged

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Fair point.
Logged

Per Arduino ad Astra

Bahrain
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Arduinos rock
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One way to tackle this is with a solid state relay board (relay rack), and a bunch of IDC5 relays (Gordos, Grayhill, Opto22, ...). These relays will convert the 24V signal into 5VDC, while keeping the circuits optically isolated (ie very little chance on the 24V frying your arduino). You can get deals on these boards on ebay from time to time. Some boards have an IDC connector, others have edge connectors (like PC-cards). I guess you could solder wires on the edge connector and pull them straight to your arduino. I have not tried input DC relays thsi way, but am running 4x24=96 output relays through a tiny 8x10cm board that carries 12 shift registers 74HC595 and 4 IDC50 connectors. Works well.
Logged

'round the world...
Online Online
Faraday Member
**
Karma: 42
Posts: 3267
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Look for opto-coupler chips. Using these you'll need a chip and a 24V power signal together with your output/input.
Logged

Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o.
Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum).
Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.

Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).

SW Scotland
Offline Offline
Edison Member
*
Karma: 17
Posts: 1391
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I believe you can feed your 24 volt logic levels (or any higher DC voltage for that matter) directly into the arduino provided you use input resistors to limit input current to less than 1ma.   So as a provisional value I'd suggest, for 24 volts inputs, using 33k minimum.

As to outputs, you can use 5 volt relays (250ohm coils minimum) as an interface to your external circuits.

jack
Logged

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry... but sounds wrong to me!!!

Quote
feed your 24 volt logic levels (or any higher DC voltage for that matter) directly into the arduino provided you use input resistors to limit input current to less than 1ma.   So as a provisional value I'd suggest, for 24 volts inputs, using 33k minimum.

As to outputs, you can use 5 volt relays...

I may be wrong about this being wrong (!)... but don't act on the suggestion without waiting a bit to see if anyone else responds to the post?

The second part might be okay if you add a few "buts". There is a limit to how much currend can safely flow through a single I/O pin, and another limit to how much current you can allow to flow through the whole chip. You might well be able to have one 5v coil relay driven by the Arduino... but probably not ten.
« Last Edit: January 12, 2011, 05:19:01 am by tkbyd » Logged

SW Scotland
Offline Offline
Edison Member
*
Karma: 17
Posts: 1391
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

But it ain't

And a 250ohm relay coil on 5 volts draws 20ma which is within the spec of a single I/O channel.  The writer's text seemed mainly to be concerned with inputs.

jack
Logged

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

Quote
But it ain't
Well I wouldn't recommended. The arduino (like most cmos circuitry) has internal clamping diodes for static protection but the current is very limited. Even at 1mA you are stressing the device. I prefer to use either external clamping diodes:-
http://www.thebox.myzen.co.uk/Tutorial/Protection.html
or much better feed the signal into the base of a transistor first.
Logged

Cumming, GA
Online Online
Edison Member
*
Karma: 20
Posts: 1656
Ultimate DIY: Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I believe you can feed your 24 volt logic levels (or any higher DC voltage for that matter) directly into the arduino provided you use input resistors to limit input current to less than 1ma.

I would never trust that conditions remain "ideal" enough on a truck (or any similar industrial environment)  to rely on just OHMS LAW to protect delicate input pins when the potential for error is so high  and in this case the solution is screaming for "isolation" in the form of opto-couplers or solid state relays/standard relays.

my analogy again: I would so rather lose a finger than blow my brains out if something goes amiss.
« Last Edit: January 12, 2011, 07:55:12 am by pwillard » Logged

Atlanta
Offline Offline
Sr. Member
****
Karma: 1
Posts: 254
Arduino still rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Howdy rydan

Quote
board for some trial&error logic tests in a product we're working on. Problem is, it's an industrial product using 24V signal level,

Not clear if Arduino is used by you to *test an industrial product* of if Arduino will become *part of an industrial product*.  If the latter, then its imperative that your solution be rugged and reliable and maintainable, in whihc case pubdc has the best answer.  Really the only answer appropriate for an industrial product.

If you re just using Arduino yourself for in-house testing then many of the fine ideas expressed above will work.  Took me a minute to find this but Grumpy_Mike provided this to another post, its relevant to you  too if you wanna "roll yer own" rather than use standard industrial I/O like opto-22.

http://www.thebox.myzen.co.uk/Tutorial/Protection.html

Logged

Pages: [1]   Go Up
Jump to: