Show Posts
Pages: 1 ... 120 121 [122] 123 124 ... 351
1816  Using Arduino / Sensors / Re: Measure distance in this scenario on: June 13, 2013, 04:42:16 am
I would transfer the concept of a rotary encoder (quadrature) to this linear case. That way you have an optical reading and it's quite easy to make it weatherproof.
1817  Using Arduino / Sensors / Re: Serial reading on: June 13, 2013, 04:38:20 am
You confuse things. The DHT11 library from the playground doesn't use the serial interface but the example sketch does use it. Of course you're free to change that to your needs without any consequences to the library.
My guess is that the temperature sensor also doesn't use the serial interface (I see no reason for it to use it) but the example sketch prints the values to the serial interface to be able to make any output.

So: just ignore the values in the example sketches that are used as parameters to the Serial.begin() method, use one value that fits your needs (I suggest 57600).
1818  Using Arduino / Sensors / Re: Get distance from point? Ideas how? on: June 12, 2013, 07:31:28 pm
Quote
Triangulating position based on sound waves might work outdoors but not indoors. Too many echoes. Even outdoors you're going to get lost if the copter starts to yaw.

This is not correct, the students of the ZHAW in Winterthur, Switzerland demonstrated the contrary. https://tat.zhaw.ch/pada_archiv/arbeit_archiv.jsp?command=show&vers=411&lang=en&arbeitID=11557
The indoor localization with an accuracy of 10cm is possible although not easily achievable.
1819  Using Arduino / Project Guidance / Re: PWM Frequency Possible Issue on: June 12, 2013, 07:21:58 pm
Quote
I wanted to know if this increase in frequency would cause internal noise to appear on the analog pins.

Depends on what you mean by "internal noise". Increasing the ADC frequency does lower the accuracy of the conversion, so of the 10 bit you get returned only the upper 6-8 bits are usable. If that's noise for you, then you get noise.
You always get non-precise results if you read different analog pins in high frequency because the ATmega has only one ADC and an analog MUX that connects the different analog pins to the ADC. After switching to another pin the ADC needs some time till it provides an accurate result (the internal capacity needs to adapt to the new voltage).
1820  Using Arduino / Project Guidance / Re: EasyVR + motor shield on Leonardo/Romeo on: June 12, 2013, 07:13:43 pm
You need a PC to prepare the shield (uploading sound tables and maybe a new firmware) but you don't need it for the operation. So if you want to change the available commands you need the PC connected but once that is done the shield operates with the Arduino it's only companion.
1821  Using Arduino / Networking, Protocols, and Devices / Re: Transmitting an integer over I2C on: June 12, 2013, 06:59:39 pm
Quote
Perhaps I misunderstand how to declare a union, I appreciate any help you can give, thank you!

My example was an anonymous union. If you use your declaration you have to use output.intval or output.bytes[0] to access the union representations.

The trick of a union (http://en.wikipedia.org/wiki/Union_type) is to have multiple ways to access the same memory area. This way you can set the output by bytes and use the integer interpretation afterwards:

Code:
union {
  uint16_t intval;
  byte b[2];
}

b[0] = firstbyte;
b[1] = secondbyte;

uint16_t result = intval;

Quote
I have changed all of the relevant integers in the slave to be int16_t as suggested.

I did not only suggest to change the types but also to only submit the necessary two bytes. Your still sending 4 bytes, don't you?

Why are you calling requestEvent in loop()? You already declared it as the interrupt handler if an I2C request is received from the master.
1822  Using Arduino / Project Guidance / Re: Arduino uno with GSM sheild...SOAP web services on: June 12, 2013, 06:38:23 pm
In the examples directory of the GSM library you find the GsmWebServer and GsmWebClient examples. Usually it's much easier to use the later on a GSM network because in most countries you don't get an IP address without NATing. Appending the value to the GET request shouldn't be a big problem.
1823  International / Deutsch / Re: Usb Port bricht ab, bei Arduino Mega 2560 on: June 12, 2013, 06:31:14 pm
Ich verstehe nur Bahnhof. Ein Mega2560 hat keinen DC/DC-Wandler, sondern einen linearen Spannungsregler. Was heisst das, dass die Spannung auf die externe Versorgung "├╝berspringt"? Gibt's da Funken?
1824  Using Arduino / Sensors / Re: Get distance from point? Ideas how? on: June 12, 2013, 06:25:05 pm
You can get positional data inside from ultrasonic sound but not with measuring the volume of a loud signal but by installing 4 ultrasonic receivers (microphones) and put an ultrasonic transmitter on the copter. By comparing the timings of the pulse receptions you can triangulate the position of the quadrocopter. Theoretically you can do the same with 4 transmitters and one receiver on the copter but then you have to use different ultrasonic frequencies and you have to prefilter it on the receiver to distinguish the different signals.

What do you mean by "long-distance" when you're talking about in-house signals?
1825  Using Arduino / Sensors / Re: Lilypad Erratic Temperature Sensor Output on: June 12, 2013, 06:16:46 pm
I don't know where you have the bandgap code from but it's wrong.
One of the first lines of analogRead() is

Code:
if (pin >= 14) pin -= 14; // allow for channel or pin numbers

so you're actually reading the value of A0. You probably wanted to set the analog MUX to the internal voltage source:

Code:
ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);

But that doesn't work with analogRead().

Please describe what you want to achieve and why you're not just reading the value from A2.
1826  Using Arduino / Sensors / Re: Distance sensor on: June 12, 2013, 06:01:02 pm
Quote
Proximity sensor

Which is more or less another name for distance sensor. Which technology did you have in mind? Ultrasonic, IR, laser, mechanical?

Depending on the type of pot you want to detect an inductive solution may have good chances to generate an elegant solution.

@bobafet67: Are you hijacking this thread? Open your own thread and start it with more information. If you're referring to something, post a link to it. Provide a description of what you want to achieve.
1827  International / Deutsch / Re: Solid State Relais Ausgang wie schalten? on: June 12, 2013, 12:49:37 pm
Wenn die Angaben auf der Ebay-Seite stimmen, kannst Du damit nur Wechselstrom (Steckdose) schalten und keinen Gleichstrom-Verbraucher.
1828  International / Deutsch / Re: Frage zum Arduino usb Android on: June 12, 2013, 12:46:49 pm
Definiere "ein Android"! Im Normalfall (Handy): Nein.
1829  Using Arduino / Sensors / Re: Serial reading on: June 12, 2013, 12:44:11 pm
DHT11 doesn't use the UART serial interface but a one wire signal which needs a special library and that library takes care of the timings, you don't need to set a "baud" rate.

What kind of tmp sensor do you use that uses a baud rate of 9600?
1830  Using Arduino / Sensors / Re: Distance sensor on: June 12, 2013, 12:40:11 pm
You care about the wiring having problems with the temperatures but not the sensor itself? I guess it's much easier to get wires that withstands the stove temperatures than to get a sensor that does the same.

What kind of distance sensor did you think about?
Pages: 1 ... 120 121 [122] 123 124 ... 351