Show Posts
Pages: [1] 2 3 ... 8
1  Using Arduino / Networking, Protocols, and Devices / Re: Get address from incoming Xbee packet using Xbee library on: June 13, 2011, 04:55:56 am
Well, according to the API it should be there.

So this doesn't work for you?
Code:
String radioID = ioSample.getRemoteAddress64().toString();
2  Using Arduino / Networking, Protocols, and Devices / Re: Get address from incoming Xbee packet using Xbee library on: June 12, 2011, 10:05:51 am
The class XBeeAddress has a toString() method which might give you exactly what you need?
3  Using Arduino / LEDs and Multiplexing / Re: SPI script for shift register 74HC4094 (arduino UNO) on: June 12, 2011, 09:57:53 am
madworm, I am not sure if this is going to help him if he doesn't understand the SPI library in the first place smiley-wink

DasQuadrom:
There is a german subforum right here, just scroll down a bit further.
When posting code use the code tag (# button in editing window).

I don't think your last line of code is really what you meant it to be:
Code:
pinMode(freigabeOE, LOW); //Freigabe Ausgangsregister
Didn't you rather mean
Code:
digitalWrite(freigabeOE, LOW); //Freigabe Ausgangsregister


Check the playground for SPI examples and come back if you have any more questions after that.

Hope that helps.
Tom
4  Using Arduino / Programming Questions / Re: Fade led with Infrared input on: June 12, 2011, 07:23:09 am
If you need more distance you will either have to improve sensitivity on the detector side or light intensity on the emitter side.

I assume you were referring to a phototransistor although this will only help if it is more sensitive than your photodiode.

Easiest and most direct way would be to increase light output of your emitter. Get one with more power or a smaller beam angle, this will immediately improve maximum distance.

For more detailed recommendations you will have to provide more information on your current setup and parts...
5  Using Arduino / Sensors / Re: I would like to use an Arduino Mega for data aquisition on: June 12, 2011, 07:12:32 am
Just to be clear here, you do not need any additional hardware to send data from an Arduino to a PC over a USB cable.

But if that wasn't your question I am afraid you will have to clarify smiley-wink
6  Using Arduino / Sensors / Re: Flexible light sensor on: June 11, 2011, 04:24:53 pm
Depending on what the application, the size of the sensor array and the needed flexibility is, a possible solution could be to use fibre optics on the flexible input side and have them transfer the light to a static sensor.

But to give you any truly viable input we would need to know a little more on what it is you intend to do...
7  Using Arduino / Sensors / Re: IR beam break counter on: June 11, 2011, 04:15:23 pm
I am not sure the exact model, but they are something like the PNA4602.

Are you sure it is 38kHz and not 36 or 40 for example?
Depending on how precise the Arduino output and the filter on the input is this could possibly explain the problems you are describing.

Just a thought...
8  Using Arduino / Programming Questions / Re: Arduino crashes after 15-20 hours or running on: June 11, 2011, 04:00:40 pm
Well, personally I would first try to figure out where exactly the problem occurs and how to fix it directly instead of adding a watchdog.

But then, if you just need a quick & dirty fix a WDT might be an idea.
9  Using Arduino / Programming Questions / Re: Arduino crashes after 15-20 hours or running on: June 11, 2011, 09:54:44 am
Do would I go about detecting where the memory is running out?

Greg, I'd suggest you post the most current code again, so we all know what you are working with.

At first glance I can't see a memory problem with your code though it could possibly be in the library you are using.

Why don't you try to output the amount of free memory every 10.000th cycle or so (see http://www.arduino.cc/playground/Code/AvailableMemory for details).
10  Using Arduino / Programming Questions / Re: Arduino crashes after 15-20 hours or running on: June 11, 2011, 05:23:34 am
Maybe you are running out of memory somewhere?
That could explain the symptoms you described.

Why do you have an int array with only one member?
Why do you have a for loop that will only do one iteration?

It seems you never reset 'count' - although this should just overflow eventually and not mess up your memory.

11  Using Arduino / Sensors / Re: How to make a swimming pool sensor to detect water movement? on: June 11, 2011, 05:16:15 am
It seems you already found a solution, just one more idea:

If you only want to detect larger waves you could take a vertical tube with a floating ball inside and then either have the ball connect or disconnect a circuit which would trigger an interrupt on the arduino for example.
This might not be the most precise setup but it could be very cheap to implement, easy to setup and maintain and is possibly more than enough for what you want it to do.

Just a thought... smiley-wink
12  Using Arduino / Sensors / Re: IR sensor help on: June 09, 2011, 11:35:56 am
You are right, that is not the best mode to get most accurate readings, but it is by far the most easy to set up and you can hardly connect anything wrong.
So to get things going and get an analogRead from the photodiode up and running it might be worth a try.
13  Using Arduino / Sensors / Re: IR sensor help on: June 09, 2011, 10:33:33 am
I think you misunderstood me Mike, by simplest possible setup I was referring again to driving the photodiode in short circuit mode (i.e. cathode - resistor - anode) and reading the voltage across the resistor.
14  Using Arduino / Sensors / Re: IR sensor help on: June 09, 2011, 09:01:59 am
What do you mean by "cathode - A5 - anode" ?!?

You have to measure between the photodiode and the resistor (identified by "Vout" in the paper I linked).

And why don't you try the simplest possible setup (i.e. no reverse voltage) if you are having troubles?
You can always change it later if you do need the reverse voltage.
15  Using Arduino / Sensors / Re: IR sensor help on: June 09, 2011, 05:03:30 am
Check out Figure 10 in this document on how to wire up a photodiode with a resistor:
http://saaubi.people.wm.edu/TeachingWebPages/Physics252_Spring2007/Week10/Chapter10_OpAmpCircuits.pdf

You won't even have to apply a reverse voltage to the photodiode unless you want/need it to react faster to light changes. But since in your case the limiting factor will probably be the analogRead or the upcoming multiplexing you should be fine without it.

If that doesn't help then show us a complete diagram on what and how you wired things up.

Good luck!
Tom
Pages: [1] 2 3 ... 8