Show Posts
Pages: 1 2 [3] 4 5 ... 344
31  Using Arduino / Networking, Protocols, and Devices / Re: Speed (latency) of ENC28J60 module / ethernet on: June 13, 2014, 12:38:32 pm
Quote
Do UDP or serial reduces response times?

UDP will reduce response times but you cannot use it from a browser. What kind of serial are you thinking about? A network is also a serial connection.

Quote
I do not want to go the YUN or Pi way, but I think half a second is quite something!

Yes, half a second is more than I would expect. Please post the code that is producing this response time. And provide a link to the library you're using for that (there a several different libraries for the ENC28J60 chip).

Quote
Will the W5100 increase response times as well?

It might as most of the low level TCP/IP stuff is done in the chip directly without bothering the ATmega of the Arduino.
What is the Arduino doing to deliver the response? What kind of data is in these 16 bytes?
32  Using Arduino / Networking, Protocols, and Devices / Re: Speed (latency) of ENC28J60 module / ethernet on: June 13, 2014, 07:28:37 am
Post the sketch you're running as well as a link to the library you're using. What speed do you expect from the Arduino? Depending on these needs you may have to change the Arduino you're using and choose a Yun (or something similar) as there an embedded Linux system is handling network requests which enhances latency by factors.

BTW: the value you get in browser debuggers is not the network latency but the time need for a complete request/response cycle which usually means that multiple packets are transferred over the network.

Using an Arduino Ethernet Shield (with a WizNet5100 chip) will enhance the latency but not necessarily the response times of your Arduino application.

As I already wrote, a Yun may be your Arduino of choice if you need fast response times. If you need even more speed, change to an embedded Linux system (Raspberry Pi, CubieBoard, PCduino, etc.).
33  Using Arduino / Networking, Protocols, and Devices / Re: Please help arduino uno + wifly: turn a led remotely. on: June 13, 2014, 07:12:53 am
You forgot the code tags so we maybe don't see the complete code but it's obvious that the code doesn't compile because you're using variables (p.e. ssid, passphrase, etc.) that are nowhere defined in your sketch.

What hardware are you using? Please post a link to the hardware and to the used library (there is more than one library called WiFly).
34  Using Arduino / Networking, Protocols, and Devices / Re: help with wireless serial between 2 arduinos on: June 13, 2014, 07:06:33 am
Quote
when i said i disconnected ground i meant from the two arduinos in the test stage when i didn't use the wireless modules and connected them directly to each other and tested the simple sketch used above

If you connect two devices (being an Arduino or any other device) serially, you always have to connect at least the ground in addition to the RX/TX signals.

Quote
i then wanted to advance to the wireless stage so i connected everything like in this picture below:

In this picture there is also no ground connection and I also cannot see a power connection. A ground connection between the Arduino and the module is necessary (to have a common level basis) and you also need power for the modules from anywhere, the Arduino might be the power source, if you take some other source, don't forget to also connect the ground from that source to the common ground of all devices.
35  Using Arduino / Networking, Protocols, and Devices / Re: Problems with sim908 and coordinates on: June 13, 2014, 07:00:43 am
Quote
Hello pylon, we are testing outdoor with hardware inside a plastic box, we use this antenna http://www.cooking-hacks.com/internal-gps-antenna, most positions are on 10m radius from real position, but some positiong give the wrong position, we take 72 position and only 2 are bad.

You may be outdoors but inside a town and I guess that you have high buildings around you. Depending on the current satellite positions there may be smaller or bigger errors because of that (absorptions and reflections). Did you try under an open sky?

I don't know your specific GPS hardware but I have quite some experience with other GPS hardware under varying circumstances and if that hardware is not installed on a ocean ship or something similar, never trust a single measurement, always take several and build some meaningful average from them.
36  Using Arduino / Networking, Protocols, and Devices / Re: help with wireless serial between 2 arduinos on: June 13, 2014, 04:48:00 am
Quote
then i disconnected ground cable between them and everything became gibberish as i suspected so wondered if it will somehow still work wirelessly

Between what? The two wireless modules? Why would you do so?

On you picture you don't have a power and ground connection between the Arduino and the module? I guess for your tests you did connect them, didn't you?

Please provide a wiring diagram of your current setup and the sketch you're doing your tests with.
37  Using Arduino / Networking, Protocols, and Devices / Re: Arduino and the adf7012 on: June 13, 2014, 04:42:02 am
This project https://github.com/tkrahn/PecanPico seems to have used it. If that's not a sufficient answer, provide more information and ask more detailed.
38  Using Arduino / Networking, Protocols, and Devices / Re: Problems with sim908 and coordinates on: June 13, 2014, 04:38:54 am
The coordinates look like you're inside a building and the GPS reading is about 300m off your real position. That's an acceptable offset for your situation in my opinion given that you're using a GPS module with only a small integrated antenna. Go to an outdoor place where you have at least a 90° clear sky (no obstacles like trees or buildings) and measure again. You'll probably get readings that are accurate to about 5-10m.
39  Using Arduino / Networking, Protocols, and Devices / Re: BC127 Software Serial not reading on: June 13, 2014, 04:31:47 am
Quote
I have my RX and TX pins on the arduino crossed to the RX and TX pins on the BC127.

According to the schematics of the breakout board RX from the board should be connected to RX on the Arduino and the TX pins identically.

Quote
However when I call btSerial.available() I can't get the serial connection to be available.

The available() method returns the number of bytes waiting in the receive buffer for you to be read. It says nothing about the availability of the connection itself (that's not possible with a asynchronous serial connection).

Quote
My final goal is to get the music metadata from the bluetooth connection, but I can't get any data from the serial connection first.

What do you intend to do with that information? Is using the hardware serial interface an option (SoftwareSerial is a last resort solution not intended to be a drop-in replacement for the hardware)?
40  Using Arduino / Sensors / Re: Pressure Sensor - MS5611 Barometer problem on: June 12, 2014, 11:05:42 am
No link to the used libraries, no link to the used hardware. Did you read the sticky note at the top of the forum?
41  Using Arduino / Networking, Protocols, and Devices / Re: Remote Control - Semi-Autonomous on: June 12, 2014, 11:03:44 am
Code:
   >> Motor Shield - (digital: 3,5,6,11)  // defined in library source code, 'AFMotor.cpp'

If you're using the AFMotor library from AdaFruit (you forgot the link to the used hardware!), the pins used are 4, 7, 8 and 12, so I would expect pin 4 (motor latch) to be activated from time to time during operation.

Provide schematics of your setup and links to all used hardware.
42  Topics / Device Hacking / Re: Controlling Automower on: June 12, 2014, 10:56:02 am
Quote
I can read the Sensors so the issue might be in the Automower side.

Why do you want to restart the Arduino then? What do you expect that this should fix?
43  International / Deutsch / Re: Ardino DUE Pin-Change Interrupts on: June 12, 2014, 10:53:46 am
Quote
Mit der PINCHANGE Library hier:
https://code.google.com/p/arduino-pinchangeint/downloads/list
Müsste es eigentlich auch funktionieren jedoch bekomm ich die examples nicht zum laufen....kommt immer new.h wurde nicht gefunden..

Die ist nur für ATmega-Arduinos, für den Due kannst Du die nicht gebrauchen.

Quote
Hatte ich mir auch überlegt...das Problem ist aber das je nachdem was für ein Config-File per USB Stick geladen wird die PINS unterschiedliche Funktionen haben. Zudem wenn ich 100 Inputs 1 Funktion pro Pin?

Der Due hat 54 Eingänge und die Definition der Funktionen kannst Du ja per Makro machen, dann dürfte das halbwegs übersichtlich sein. Die Funktionsverteilung per Jump-Table geht dann auch gleich im selben Aufwasch und Du kannst bequem die Einträge der Jump-Table (Funktionspointer) aus Deiner Konfigurationsdatei machen.
44  Topics / Device Hacking / Re: Controlling Automower on: June 12, 2014, 08:06:10 am
Change

Code:
if (strcmp (buffer, "digital") == 0)

to

Code:
if (strcmp ((char *)buffer, "digital") == 0)

and it compiles for me.

Quote
Problem happens if Automower has low battery. So I have to restart Arduino because it is probably not an issue of the code. How can I do this?

What happens if the mower is low on battery? Does the voltage that powers the Arduino drop? How much voltage do you have with a full battery? How much if it's getting empty? Where do you feed the Arduino with this voltage (Vin, 5V, power connector)?

You can restart the Arduino by pushing the reset button. You probably meant how to do it in software: that doesn't make sense because your software is already not running correctly, so don't expect it to reset itself.
45  International / Deutsch / Re: Ardino DUE Pin-Change Interrupts on: June 11, 2014, 09:20:20 am
Eine separate Funktion per Pin, die danach den eigentlichen Handler mit der Pin-Nummer aufruft?
Pages: 1 2 [3] 4 5 ... 344