Show Posts
Pages: 1 ... 121 122 [123] 124 125 ... 343
1831  Using Arduino / Project Guidance / Re: Help with LeoJoy code on: May 29, 2013, 03:40:06 am
Quote
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.

Quote
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.
1832  International / Deutsch / Re: Real Time Clock Module (DS1307) on: May 28, 2013, 12:22:59 pm
Quote
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).

Quote
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.

Quote
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.
1833  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).
1834  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?
1835  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.
1836  Using Arduino / Project Guidance / Re: Arduino due usb cables are different? on: May 24, 2013, 02:19:52 pm
One Google search away:

http://www.bestofferbuy.com/USB-30-SuperSpeed-A-Male-to-B-Micro-USB-30-Male-Data-Cable-100CMLe-p-63383.html
1837  Using Arduino / Networking, Protocols, and Devices / Re: Streaming binary serial data to arduino on: May 24, 2013, 02:15:27 pm
Quote
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).
1838  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.
1839  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:

Code:
void writeVCNLByte(byte address, byte data){
  // writeVCNLByte(address, data) writes a single byte of data to address
  Wire.beginTransmission(mux_address);
  Wire.write(channel_0);
  Wire.endTransmission();
  Wire.beginTransmission(VCNL4000_ADDRESS);
  Wire.write(address);
  Wire.write(data);
  Wire.endTransmission();
}
1840  Using Arduino / Networking, Protocols, and Devices / Re: I2C, robots and continuous tasks on: May 24, 2013, 08:47:30 am
Quote
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.
1841  International / Deutsch / Re: I2C Wire , Arduino mit Adresse 1 fühlt sich IMMER angesprochen on: May 24, 2013, 08:18:45 am
Quote
Das merk ich mir gerne, aber die Schuld reiche ich weiter an http://arduino.cc/en/Tutorial/MasterWriter

Absolut richtig, es ist dort schon falsch im Code.

Quote
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.
1842  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?
1843  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?
1844  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?

Code:
char *mytext = "world";
mySerial.print("AT+HTTPPARA=\"URL\",\"http://kitaselamanya-d3tt3402.netne.net/runningtext/proses.php?infonya=\"");
mySerial.print(mytext);
mySerial.println("\"");

Maybe I didn't understand what your problem is, though.
1845  Using Arduino / Networking, Protocols, and Devices / Re: I2C, robots and continuous tasks on: May 24, 2013, 07:14:37 am
Quote
I use I2C to send commands from my master to my 2 slaves who run the actual actuators, since I2C is interrupt based, is it possible to keep a signal on a pin (say a PWM on pin 10) while the master updates the commands to the slave?

PWM is done by hardware so you don't need the interrupt feature of I2C for this but yes, it's possible.

Quote
and is there a way to avoid this, while not leaving the slave in the interrupt function

Interrupt handlers should be kept as short as possible and you may be limited in the options you have inside the handler (no serial communication for example). So the time you (or better your Arduino) spend in the interrupt handler should be very short (a few microseconds to perhaps about 0.1ms). I doubt your motor will react in this time even if the relevant pin would be controlled by software and not hardware.
Pages: 1 ... 121 122 [123] 124 125 ... 343