Show Posts
Pages: 1 ... 382 383 [384] 385 386 ... 695
5746  Using Arduino / General Electronics / Re: Transistor Darlington PNP on: October 13, 2012, 06:49:19 am
That puts 12V the wrong way round between collector and base, short-circuiting the power supply.

_emitter_ to +12V, collector to load, base via a 10k resistor to 0V might fare a lot better smiley-wink
5747  Using Arduino / General Electronics / Re: General question about transistors on: October 13, 2012, 06:46:33 am
Where did you get that circuit, the layout's a mess, makes it hard to follow.

Please don't use sites that put up pop-up windows, its plain anti-social.
5748  Using Arduino / Programming Questions / Re: Theory of why this doesn't really work? on: October 13, 2012, 06:41:38 am
No that's fine - so long as 13 is big enough for the string plus its null terminator.

You could also pass in the address like this:

void test1(char * res, unsigned long a)
  sprintf(res,"<%lu>", a);

void loop ()
  char s[13];
  test1 (s, pow(2,32)) ;
  Serial.print (s) ;

Here s is local to loop(), but not to test1.  loop() finishes using s before returning so it doesn't matter that its local to loop().
5749  Using Arduino / Programming Questions / Re: Help me about these codes on: October 13, 2012, 06:34:23 am
So the way to enable people to help you is to explain your problem.  This means saying

1) What you want to accomplish - we are lacking this
2) What is actually happening (and why this is wrong)  - we are lacking this
3) Show all relevant information - you seem to have done this (apart from lack of code tags).

Usually people fail on 2) and 3), not on 1)!!
5750  Using Arduino / Project Guidance / Re: Quadcopter on: October 13, 2012, 06:29:35 am
In fact mount accelerometer as close as possible to the centre-of-mass - this is the point the craft will turn around naturally - so you have to compromise if you have a variable payload (such as a camera mount).

Gyros aren't nearly so sensitive to being off-axis.
5751  Using Arduino / Programming Questions / Re: Inline Assembler; "Impossible constraint" for byte value > 127 on: October 12, 2012, 05:09:58 pm
That suggests that instruction takes a _signed_ byte offset, so the value cannot be more than 127.  Replace "byte" by "char" and 128 by -128 (unless you want +128 in which case perhaps a different instruction sequence is needed?)
5752  Using Arduino / General Electronics / Re: timing and decoupling on: October 12, 2012, 04:45:27 pm
The timing change suggests something different is happening at power-up-reset - the bootloader looks at the serial to check for an upload, potentially this could be affected by noise on that line, which in turn might be affected by capacitance, ground-plane, etc.

If you are using the 328p standalone it won't have anything connected to the RX pin (pin 0), so it will be floating and sensitive to the environment - try a 10k pull-up resistor from pin 0 to +5V maybe ?
5753  Using Arduino / General Electronics / Re: rc snubber networks/ac filter caps on: October 12, 2012, 04:36:06 pm
You ideally need to know the inductance of the load before choosing RC component values - the idea is that the RLC circuit formed when the contacts open absorbs the stored energy without going too high in voltage, and doesn't conduct significant current at mains frequency (the load is supposed to be off...).  The voltage will still go quite high, but much less rapidly, allowing the contacts to separate before an arc can establish itself.

The resistance of the load is in series with any extra R you provide so that you take the sum of those resistances into the calculations.
5754  Using Arduino / Project Guidance / Re: SICK sensor and AD wobble on: October 12, 2012, 03:57:09 pm
If your requirements are so close to the resolution of the ADC that a variation of one or two is important to you, you probably need to use a more precise ADC.

Under battery power the ADC is pretty well behaved (certainly noise below 1 lsb) - I suspect this is power supply noise - is the PSU a switching one?  Extra decoupling can help.
5755  Using Arduino / Project Guidance / Re: Which Arduino Board(s) is/are right for me? on: October 12, 2012, 03:52:21 pm
Well a lot of those motors are just switched on and off, so remote relays or MOSFET switches would probably be the simplest way to drive those (keeping all the high current switching away from the Arduino).  Signal cable runs should be shielded or twisted pairs or both.

Are the LED strips to be PWM'd or just switched on/off?

You might benefit from extra input/outputs, suggesting a Mega perhaps.

You'll need to be careful to how everything's powered - separate power for Arduino - and how everything is grounded.  Are the motors large?
5756  Using Arduino / Project Guidance / Re: Which boards to use for multy drop sensor network? on: October 12, 2012, 02:56:08 pm
Sounds like you are wanting a lightweight networking protocol, using the physical layer as an ether (in the original sense of ethernet!).  So some sort of collision-detection or retry mechanism is needed.  Just make sure the physical layer can handle collisions without damage.

You might want to look at some of the simple packet schemes used in RF transceiver modules such as the nRF24L01+  - you then have a framework that could be easily switched from wired to wireless.  There are no doubt a handful of relevant open-source networking protocols to look at that could be suitable.  Have a look through the forum archives esp. the networking/protocol/devices forum I guess.
5757  Using Arduino / Programming Questions / Re: Why are Float points not working? Short Servo Example on: October 11, 2012, 07:48:32 pm
If it was working and the code hasn't changed then it must be the hardware.  If the code has changed then look at what was changed.
5758  Using Arduino / General Electronics / Re: 16 Channels of 15V Analog Inputs... Any Suggestions? on: October 11, 2012, 07:44:23 pm
Where did I explicitly or implicitly suggest that the divider was significant source of noise, or for that matter even address it?  My concern was always about how reducing the voltage range makes the analog signal more susceptible to externally generated noise (e.g. from EMI), not the amount of noise generated internally by the circuit.

But the divider might reduce the impedance by a factor of three - thus 3 times less susceptible to capacitive pickup...

EMI will be picked up externally from long cables and the environment principally - assuming you've got good ground-plane in the multiplexer circuit you've got control of the pickup there, so a divider isn't going to be the place noise enters the system, except of course if the thermal voltage noise becomes an issue (if you were amplifying microvolt AC signals rather than measuring 15V DC then I would be much more worried about noise).

Without know the input and output impedances and noise sources your original paragraph seemed a very specious argument for avoiding a divider circuit - certainly there's no automatic factor of three involved in precision.
5759  Using Arduino / Sensors / Re: Strain Gauge to INA125 Troubles on: October 11, 2012, 07:34:57 pm
No, its just that the zero-point isn't within the output voltage range of the amp - you need to trim the bridge offset to get it within the active range - various trim circuits are out there on the web, might be as simple as one potentiometer.
5760  Using Arduino / Project Guidance / Re: Which boards to use for multy drop sensor network? on: October 11, 2012, 07:31:42 pm
485 is just a physical layer - protocol is up to you - also lots of driver chips available, dual and quad packages too.  Its fairly power hungry though using full-swing differential signals into 100 ohm loads, a LVDS chipset would improve on that markedly.

For low signalling speeds serial is still attractive, but long runs could introduce problems with mismatched grounds.  If you low-pass filter and then schmitt-trigger you can clean up a lot of noise pick up if only needing low baud rates.
Pages: 1 ... 382 383 [384] 385 386 ... 695