Show Posts
Pages: 1 ... 121 122 [123] 124 125 ... 343
1831  Using Arduino / Networking, Protocols, and Devices / Re: Arduino UNO and RedFly not stabil on: May 29, 2013, 05:23:30 am
My webserver on the Arduino ist not stable. After a number of days the Arduino sends no udp broadcasts and the web server stops responding.

Eliminate the use of the String class in your sketch. It's implementation is improper for microcontrollers (without a MMU) and, additionally, the current IDE versions have a memory leak in the dynamic memory deallocation which the String class is using extensively.

Your usage of the server class is very strange by constantly stopping and starting the server socket. It might not be completely wrong but it make the code overly complex and it might cause other problems I haven't found yet.

The issue is, that I get the UDP-message from the Arduino sometimes with special characters. The number of characters is different. It looks like that the udp string is not terminated.

Can you post some examples?

What do you expect a line like this to do?

  ip_all_func_on[strlen(ip_all_func_on)] = '\0';
1832  Using Arduino / Project Guidance / Re: Help with LeoJoy code on: May 29, 2013, 03:40:06 am
Which file should I download from which website?

On this page you'll find a Windows-Installer. I don't have Windows but I'd guess it will setup your computer with all necessary modules.

I changed the board type to Leonardo.

After you installed the new modules you should be able to select LeoJoy as the new board type. When you've done that you should try compiling again.
1833  International / Deutsch / Re: Real Time Clock Module (DS1307) on: May 28, 2013, 12:22:59 pm
Woran kann es liegen dass die Uhrzeit nicht gespeichert wird?

Ich würde schätzen, dass Du gar keinen Zugriff auf den DS1307 hattest. Auf jeden Fall verwendest Du nicht die Bibliotheken, die auf der von Dir verlinkten Seite angeboten werden, denn bei denen kannst Du keine Pins angeben, die verwenden grundsätzlich die Hardware-Schnittstelle (A4/A5).

Wozu muss da an Pin2 verbunden werden und warum keine durchgehende linie?

Ich finde kein Schema für das Modul, aber ich würde vermuten, dass dort das Sekunden-Signal (ein Impuls jede Sekunde) verfügbar ist. Das könntest Du dann im Arduino verwenden, z.B. um ihn aus dem Schlaf zu wecken.

Verstehe ich das richtig, man kann das Module für 2 Arduinos verwenden, oder warum gibts da P1 und P2 (an 2 Seiten Anschlüsse)? Ich habe an P2 verbunden.

Nein, das verstehst Du wahrscheinlich falsch. Wenn das Foto stimmt, dann ist ausser dem DS1307 noch ein I2C-EEPROM mit auf dem Board. Entweder sind die beiden Anschlüsse einfach parallel ausgeführt (für welchen Zweck auch immer) oder einer ist für den DS1307, der ander für den EEPROM-Chip (was aber seltsam wäre). Es könnte sein, dass einfach der Bus wieder rausführt wird, damit weitere Geräte angeschlossen werden können.
1834  Using Arduino / Project Guidance / Re: Arduino Chronograph. General guidance with hardware capabilities. on: May 28, 2013, 12:02:16 pm
@OP: What accuracy/resolution do you expect from the device? The difference of a 15ns or 4ns raise/fall time is irrelevant if we're talking about an Arduino (even a Due) doing the measurement. You get an accuracy of up to about 1‰ of your speed range (with the 84MHz of a Due, about 1% with a Nano).
1835  Using Arduino / Project Guidance / Re: Help with LeoJoy code on: May 28, 2013, 04:53:56 am
You didn't change any of the three things you failed in the first post. Do you really expect us to help you if you continue to be uncooperative?
1836  Using Arduino / Project Guidance / Re: Arduino Chronograph. General guidance with hardware capabilities. on: May 24, 2013, 02:31:05 pm
I would start with links to your emitter/sensor pack. A short calculation shows that the fastest bullet needs about 40µs for the 2.5" of the measuring distance. If the accuracy doesn't have to be very high a Nano should be able to measure that, given the sensors are emitting a digital signal already and using the external interrupt input pins.
1837  Using Arduino / Project Guidance / Re: Arduino due usb cables are different? on: May 24, 2013, 02:19:52 pm
One Google search away:
1838  Using Arduino / Networking, Protocols, and Devices / Re: Streaming binary serial data to arduino on: May 24, 2013, 02:15:27 pm
I have it working, but am struggling with losing data.   If I put a delay of 50ms per byte in the phone sending side it works OK, but less than that the arduino starts loosing bytes.  i.e. if I send 1-255 (as binary), I get the first half or so back onto my PC, but then only about 50% of the rest. 

First: you should post complete code, with just snippets were condemned to make some assumptions which might be correct but often are not.

The first half does mean the first two bytes? The problem with the SoftwareSerial class is that is uses a lot of resources of the processor and is not very reliable with speeds above 4800 baud, especially if other interrupt sources are active (such as the serial interface in your case).
1839  Using Arduino / Networking, Protocols, and Devices / Re: GPRS Shield receive data from website on: May 24, 2013, 02:07:05 pm
I'm sorry, I don't understand what you want to achieve. In your code you're sending some info to a PHP script on a web server. I did understand that you want to send different content to that script in every call. If that's not your intention please specify what you want to do. And don't assume that I know what you PHP script is doing.
1840  Using Arduino / Networking, Protocols, and Devices / Re: problem interfacing multiplexer pca9540b with arduino on: May 24, 2013, 11:22:23 am
You cannot configure the multiplexer and send a command to the switched device in one I2C message. You have to split it up. Example for the write operation:

void writeVCNLByte(byte address, byte data){
  // writeVCNLByte(address, data) writes a single byte of data to address
1841  Using Arduino / Networking, Protocols, and Devices / Re: I2C, robots and continuous tasks on: May 24, 2013, 08:47:30 am
However does the same goes for sending the bits back to the master?

You don't have to count in bits, you can send or receive several bytes without getting any problems. If you control the motors with PWM (I would expect that) one PWM cycle (on and off time) is about 1ms. Within this time the processor executes up to 16'000 commands. And don't forget: PWM is usually done in hardware so once you set the PWM value the hardware will keep sending the PWM signal no matter what the processor is doing else.
1842  International / Deutsch / Re: I2C Wire , Arduino mit Adresse 1 fühlt sich IMMER angesprochen on: May 24, 2013, 08:18:45 am
Das merk ich mir gerne, aber die Schuld reiche ich weiter an

Absolut richtig, es ist dort schon falsch im Code.

Also ich kann problemlos einen Master an Slaves Nachrichten senden und auch von ihnen requesten lassen?

Ja, sollte prinzipiell kein Problem sein. Probleme kriegst Du, wenn der Bus eine gewissen Länge überschreitet, aber die sind elektrischer Natur (Bus-Kapazität) und nicht logischer.
1843  International / Deutsch / Re: Bewegungsschranke on: May 24, 2013, 08:14:53 am
Genau für solche Sachen eignet sich die Laser-Schranke sehr gut. Auch das "genaue" Fallenlassen sollte eigentlich kein Problem darstellen. Oder übesehe ich etwas?
1844  Using Arduino / Project Guidance / Re: Help with LeoJoy code on: May 24, 2013, 07:27:04 am
First: you didn't provide a link to the external code you're using.

Second: you didn't post the complete error message.

Third: Did you install the LeoJoy IDE extension as instructed? Did you change the board type?
1845  Using Arduino / Networking, Protocols, and Devices / Re: GPRS Shield receive data from website on: May 24, 2013, 07:21:32 am
Have you tried splitting up?

char *mytext = "world";

Maybe I didn't understand what your problem is, though.
Pages: 1 ... 121 122 [123] 124 125 ... 343