Show Posts
Pages: 1 ... 118 119 [120] 121 122 ... 353
1786  Using Arduino / Sensors / Re: Arduino Ping))) Sensor suddenly stops after showing a few results on: June 25, 2013, 04:09:52 am
Power the Arduino by an external power supply. Probably this will solve your problems, your PC seems to have a standard compliant USB port which delivers only 100mA without a high power request. That seems to be not enough for your setup. With an external power supply you shouldn't run into an under-power state.
1787  Using Arduino / Sensors / Re: I2C Reed Contacts (Micro - Leonardo) on: June 25, 2013, 03:12:21 am
Quote
Initializing a variable with a function is not good: int val = Serial.read() - '0';

Excuse me but this is just an assertion and in my opinion, it's wrong. I see absolutely no problem in initializing a variable with the result of a function. In this special case you're right, but the problem is not the initialization with a function result but that there is no check for a correct return value.
1788  Using Arduino / Networking, Protocols, and Devices / Re: How to upload sketch using a bluetooth module? on: June 25, 2013, 03:04:16 am
Quote
Would you mind telling me, how to write the main sketch to reset the Arduino?

How to do it complete in software is explained on this page:
http://www.instructables.com/id/two-ways-to-reset-arduino-in-software/step2/using-just-software/

With some additional hardware you might get better results, just connecting a digital pin to reset and pulling it to GND is not reliable though (according to Atmel), you might need a bit more hardware that hold the reset to GND for a few ms even though the digital output goes to tri-state almost immediately.
1789  Using Arduino / Sensors / Re: Lilypad Erratic Temperature Sensor Output on: June 21, 2013, 02:26:14 pm
My guess is that you don't have a connection with the crocodile connectors. Solder wires and try again.
1790  Using Arduino / Sensors / Re: Noise on analog pins on arduino motor shield R3 on arduiono UNO on: June 21, 2013, 02:22:21 pm
Does that mean you're measuring the analog inputs without anything connected? In this case you're measuring a floating pin which gives you a quite random reading. If you want to have a zero reading connect the analog input to GND and read again.
1791  Using Arduino / Sensors / Re: I2C Reed Contacts (Micro - Leonardo) on: June 21, 2013, 02:20:22 pm
How far is the Micro from the Leonardo? I2C is a local bus and not usable for long distance transmissions (<~50cm).

In the request handler you can send 1 Byte, you cannot send multiple bytes in one run.

I guess for your project an RS485 connection is better suited or at least a UART connection (depends on the distance between the two Arduinos).
1792  Using Arduino / Sensors / Re: Arduino Ping))) Sensor suddenly stops after showing a few results on: June 21, 2013, 02:08:57 pm
Try measuring the voltage between the GND and the 5V pin on the Arduino using a multimeter while the Ping sensor is connected. What do you get?

How do you power your Arduino? Using the USB connector or using an external power supply?
1793  Using Arduino / Sensors / Re: Serial Camera C328 connect to Arduino on: June 21, 2013, 02:06:11 pm
Quote
i do want to use Arduino Uno, i dont want to spend any more money. If i upload this sketch how do i take a snapshot or picture?

The sketch is to disable the usage of the pins 0 and 1 of the main processor of the Arduino. This way you can use the integrated USB2Serial converter (the ATmega16U2 on the UNO board does exactly that) to access the camera by the PC.

Once you've done that you can control the camera with the PC, it's as if you connected it directly to a PC with an RS232 interface.
1794  International / Deutsch / Re: serielle Verbindung hängt sich auf on: June 21, 2013, 11:30:06 am
Quote
im moment verwende ich Arduino 1.0.1, für debian wheezy gibt es leider noch keine neue Version

Du musst ja nicht die Distributionsversion benutzen, Du kannst einfach die aktuelle Version downloaden, irgendwo in Deinem Home installieren und von dort aus verwenden. Auf diese Weise kannst Du zur Not auch mehrere Versionen gleichzeitig im Einsatz haben (z.B. wenn Du einen Due verwendest).

Quote
Plötzlich funktionieren String-Objekte dauerhaft fehlerfrei!

Der malloc-Bug scheint behoben zu sein. Die String-Klasse hat aber einen inhärenten Bug, der nicht so einfach korrigiert werden kann: Es wird ständig Speicher alloziert und wieder freigegeben. Dadurch wird der Speicher schnell fragmentiert und ist bald so zerstückelt, dass keine genügend grossen Stücke mehr alloziert werden können. Da Arduinos keine MMU (Memory Management Unit) haben, kann auf Hardware-Ebene nicht abgeholfen werden und in Software ist zumindest mit normalen C/C++-Mitteln keine Abhilfe möglich.

Also: schreibe Deinen Sketch um, damit er die String-Klasse nicht mehr benützt, dann hast Du das Problem gelöst und nicht nur verschoben.
1795  Using Arduino / Sensors / Re: fast "analogRead" for multiple flex-sensors. I'm Lost! on: June 20, 2013, 10:33:20 am
Quote
So can i connect analog sensors to both sets of pins and the switch between them by setting the MUX high or low?

MUX5 is used on the ATmega2560 to specify if A0-A7 or A8-A15 is used. Do you have an Arduino Mega2560?
1796  Using Arduino / Sensors / Re: CMPS03 (kompas sensor) for PID on: June 20, 2013, 10:23:09 am
The English is ok, but you didn't provide links to the hardware you used and the according datasheet. Also post a picture of how you wired it.
Did you read the sticky note at the top of the forum?
1797  Using Arduino / Sensors / Re: Arduino Ping))) Sensor suddenly stops after showing a few results on: June 20, 2013, 10:21:17 am
From your description I'd guess an incorrect wiring. Please post of picture of the wiring, showing all connections.
1798  Using Arduino / Sensors / Re: Serial Camera C328 connect to Arduino on: June 20, 2013, 10:17:29 am
Quote
how about just taking a picture then?

As I already wrote: Take a simple USB2Serial converter and attach it to the PC. If you want to use the Arduino UNO, use the following sketch (to deactivate the serial interface of the processor) and swap the pins 0 and 1 (so camera TX to pin 1 and camera RX to pin 0). This way you just use the ATmega16U2 coprocessor of the UNO as a USB2Serial converter. Upload the sketch before you connect the camera!

Code:
void setup() {
  pinMode(0, INPUT);
  pinMode(1, INPUT);
}

void loop() {
}
1799  Using Arduino / Project Guidance / Re: Straightforward burn custom bootloader on: June 20, 2013, 07:33:19 am
Quote
Reprogram the FTDI looks impossible...

The FTDI chip isn't reprogrammable.

Depending on what you exactly want to achieve, a Leonardo or Micro might be an alternative because both use the ATmega32U4 processor which integrates USB, which means you don't have to care about reprogramming a coprocessor and the protocols between the main and the communication processor but you can have everything in one sketch, controlling everything.
1800  Using Arduino / Sensors / Re: Serial Camera C328 connect to Arduino on: June 20, 2013, 07:25:53 am
Quote
I plan to use this as a camera for a quad-copter, for video recording.

You want to use an Arduino for video recording? Forget about that, it's massively underpowered for such a task, including processor power and memory size.

If you just want to transfer the picture to the PC, use a USB2Serial converter (Arduino has the USB2Serial Light and several other suppliers have FTDI cables). Even directly connected to a PC you won't get a video with this solution, you probably won't get to 1 frame per second with a serial camera. Use an embedded Linux platform based on some ARM computer and connect a cheap USB web cam to it, you'll probably get the best value for your bucks with that.
Pages: 1 ... 118 119 [120] 121 122 ... 353