Show Posts
Pages: 1 ... 70 71 [72] 73 74 ... 88
1066  Forum 2005-2010 (read only) / Interfacing / Re: Arduino for 24V environment on: January 12, 2011, 04:21:55 am
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
1067  Forum 2005-2010 (read only) / Interfacing / Re: DC Current Sensor on: January 11, 2011, 02:07:59 pm
You can get hall effect sensors that are capable of measuring DC current and they are not overly expensive.  They generally give a DC voltage or current output.  Some give 0-5volts for the current range selected so are perfect for direct connection to the Arduino. If you conduct a search within this area of the forum you will find topics related.

I would avoid the use of a resistor measurement technique since you are tapping onto potentially high DC and if you get the reference connections wrong you'll be buying a new Arduino (as a minimum).  Grumpy Mike referred to the requirement by stating the connection had to be on the ground side but didn't emphasis why this should be so.

The hall device also gives electrical isolation from your PV voltage (including possible lightning strikes).

Jack
1068  Forum 2005-2010 (read only) / Interfacing / Re: Non-linear resistance in a digital potentiometer on: January 07, 2011, 06:06:06 pm
A rheostat is basically a 2-terminal variable resistor.  A potentiometer is a 3 terminal device composed of a length of resistance material with a pick-up (wiper) that can be slid along it.  

A rheostat can be made from a potentiometer by simply using one of the resistance ends and the wiper terminal.   For completeness the unused resistor terminal should also be connected to the wiper terminal.  This means that, should the wiper fail or disconnect from the resistance element, there will always be the total resistance left in circuit, rather than an open connection.

Daanii   can you please supply a sketch of your hook-up so that we can better understand your application.  

jack
1069  Forum 2005-2010 (read only) / Interfacing / Re: Non-linear resistance in a digital potentiometer on: January 07, 2011, 03:29:15 pm
The 2.5k to ground is your problem.  It loads the potentiometer (think of 2 resistors in parallel) such that non-linear output occurs.   When you have the pot set at 100% (10k) the output will be 5 volts since the load resistor is across the whole pot and has no effect.  When the pot is set at 50% (5k) the 2.5k in parallel creates a parallel pair which  measures 1.66k.  This is in series with the remaining 5k and the series voltage divider is now 5k +1.66k so the output will be 1.25volts rather than the 2.5volts expected.   The problem occurs at all settings of the pot, other than 0% and 100% and is extreme at higher percentages but has less effect the nearer you get to 0%

To minimise the effect the load resistor should be at least 10 times the value of the pot, say 100k

jack
1070  Forum 2005-2010 (read only) / Interfacing / Re: Non-linear resistance in a digital potentiometer on: January 07, 2011, 04:32:28 am
It sounds like you are "loading" the device with some other component or your coding is non-linear.  Can you provide a diagram of exactly how you have the device connected and a copy of your coding - no-one can critique either your circuit or code unless you supply a copy of them.

jack
1071  Forum 2005-2010 (read only) / Interfacing / Re: scaling and offset voltages. on: January 06, 2011, 06:33:45 am
MK3

Oh dear, you win on that one.  I was so busy looking to get a +5 volt signal I overlooked not being able to get down to zero volts with a single supply line.  However all is not yet lost.

Three choices are open :

a) Using a single power supply (>9 volts) offset the 0 amps output voltage to give an output of say +1.0 volts and the +80 amps to give an output of +5 volts.  This gives a linear range of 4 volts for 80 amps, or 0.05 volts/amp  -  an easy sum to work with and only requiring a simple circuit and one power supply.

b) Use two power supplies to give a +9 and a -9 volt power rail with the centre grounded such that the opamp can give a true 0 to 5 volts output.   This gives a linear output of 0.625volts/amp.  Not so clean maths and requires two sources of power.

c)  Use a single 18 volt power supply with a 9 volt regulator chip to provide a centre voltage (an artificial ground point) of +9 volts.  The +18 now becomes +9 and the true 0 now becomes -9.  All a bit messy but gives the same results as (b) above.

Personally, I'd go for option (a)

jack  
1072  Forum 2005-2010 (read only) / Interfacing / Re: scaling and offset voltages. on: January 05, 2011, 12:50:11 pm
MK3

That's exactly why I suggest powering the opamp from a 9 or 12 volt supply and why I suggested applying half of the 5 volt line (2.5 volts) to act as an offset

By adjusting the offset trimmer the 0volts output can be set and by adjusting the feedback trimmer the output signal (5 volts at 80 amps) can be set.

jack
1073  Forum 2005-2010 (read only) / Interfacing / Re: scaling and offset voltages. on: January 05, 2011, 06:00:57 am
Ok then, what you need is a single supply inverting opamp to run off say 9 to 12 volts.  You need a bias of 2.5 volts onto the +ve input and an overall gain of 2.0.  (If you want a 5 volt output you need a supply somewhat higher than the 5 volts )

Connect the 9 (12)  volt negative terminal to the arduino ground point.

Place a 25k multiturn trimmer between the arduino 5 volt supply (a stabilised 5 volt reference point) and ground.  With the trimmer set at around 50% (2.5 volts) feed this into the +ve terminal of the opamp.

To the output terminal of the opamp connect a 50k multiturn trimmer  and feed this back into the -ve input terminal.   Between the hall effect device output and the opamp -ve terminal connect a 12k resistor.  With the 50K trimmer set at around 24k you will get the 2.0 gain required.

I suggest mutltiturn trimmers so's you can get the calibration set correctly.

To calibrate your hall sensor + opamp setup you will need a variable power supply that can provide a couple of amps output and a suitable high wattage load resistor.

Wind 40 turns of small gauge insulated wire through the sensor core.  Now, if you pass 2 amps through the wire, the sensor will read this as 80 amps (2x40).  Use something like a 12 volt 40watt car headlight bulb as a suitable load resistor since at 2amps on the variable supply you will be dumping something in the order of 20+ watts into the load resistor.

Suggest you google for a suitable single supply opamp.

Happy playing

jack
1074  Forum 2005-2010 (read only) / Interfacing / Re: scaling and offset voltages. on: January 04, 2011, 05:42:47 pm
Firstly, do not use diodes.  These are non linear devices and cannot be used to accurately drop voltage.

Why do you need to scale via an opamp, other than adding complication to what could be an extremely simple circuit.  

With 1000:1 resolution (10bit) over the 5 volt span, an effective range of 2.5 to 5 volts will give you a 500:1 resolution of your 0-80 amps.  Isn't this not good enough for your purpose.   After all, if it was an analogue meter, could you really read 1/500 of scale.  

Added to the argument is the question of what will you use to calibrate your 1000:1 circuit (0.1%).   Most of us work with cheap DVMs which at best are +-1%.

You set your software to set 2.5 volts  as 0 amps  and 5 volts as +80 amps, with an effective resolution of around 160ma.  No calibration required !

jack

1075  Forum 2005-2010 (read only) / Interfacing / Re: Waterproof ultrasonics on: January 07, 2011, 01:19:25 pm
Who's thread is this ?  It seems to have been high-jacked
1076  Forum 2005-2010 (read only) / Interfacing / Re: Waterproof ultrasonics on: January 07, 2011, 12:57:34 pm
Transducers are usually fairly narrow beam so I doubt anything with more than 20 degrees of separation between a pair of transducers would give a reliable range and direction detection and even if you got a double echo the reliability of the calculation of direction might be questionable.

An option might be to build a system for rotating the transducer head assembly, rather like a radar scanner.  This would then rotate the transmission and echo beam through 360 degrees so you could "look" and "see" in all directions with only a single head.   By feeding your circuit with information of rotational position you get both distance and direction of any obstructions.

All the transmission and receiver electronics could be housed within the rotational member with only the necessary power supply running through slip rings.  The "coded" data generated by your electronics could be transmitted wirelessly via a low power RF system into the main control system so avoiding the necessity to transmit data via a slip-ring assembly.

jack
1077  Forum 2005-2010 (read only) / Interfacing / Re: Waterproof ultrasonics on: January 03, 2011, 10:03:16 am
Alternatively you could try bonding a piezo sounder module to a piece of glass or acrylic and seal the back surface with silicon or similar type agent

jack
1078  Forum 2005-2010 (read only) / Interfacing / Re: Waterproof ultrasonics on: January 03, 2011, 10:00:02 am
Try a marine supplier or yacht chandler, they should provide exactly what you are looking for - ie ultrasonic transducers that are guaranteed totally waterproof (they are used in echo location depth sounders).   I am unsure of the frequency, I think it is around 22kHz that they use which is not the "normal" 40kHz that air ultrasonic devices operate on; the lower frequency being required to achieve adequate transmission through water.

jack
1079  Forum 2005-2010 (read only) / Interfacing / Re: Outputting 12v and -12v capable of 5A on: January 06, 2011, 01:04:14 pm
Are you "simply" trying to superimpose an RS232 signal onto a motor control circuit - if so you might not really need to meet the power switching demands you are asking for; or do you really need to meet the power switching rates you specified

If you only want to superimpose a signal then this can be relatively easily accomplished using techniques that are typically used to transmit digital control signals over the AC mains power system

jack
1080  Forum 2005-2010 (read only) / Interfacing / Re: Building a stamping press - need urgent help on: January 04, 2011, 08:23:24 am
Without wishing to be guilty of submitting to pointless safety issues, have you considered how you will prevent someone accidentally putting their hand or fingers under the power driven press when they operate the foot pedal.   Industrial presses have many in-built safety features such as limit switches, photo or proximity sensors, including high integrity processors, to prevent such types of accidents.  They also generally require both hands to be activating separate switches to permit the foot pedal to operate.  (If the hands are busy doing something they cannot be under the press tool)  You might also need to consider how you prevent the arduino from accidentally activating the press without the foot pedal being operated (such can occur due to electrical "noise")

jack
Pages: 1 ... 70 71 [72] 73 74 ... 88