Show Posts
Pages: 1 [2] 3 4 ... 251
16  Using Arduino / Project Guidance / Re: Geofencing on GPS for large sets of data - GUIDANCE NEEDED on: September 19, 2014, 06:27:51 am
You could build such a thing as a standalone app on the phone if you're prepared to give up the physical LEDs for something you see on the phone's screen - what's the driver for adding LEDs and an arduino?

17  Using Arduino / Programming Questions / Re: help with re writing a bit of code on: September 17, 2014, 09:09:42 am
Quote
Is annoying me because I've had servos doing the full 180, and I just can't think what's changed.

Have you had these servers doing 180? Different models/manufacturers vary. Widely.
18  Using Arduino / Programming Questions / Re: Define servo.attach( #, 1000, 2000); on: September 15, 2014, 11:33:37 am
It tells the servo how to interpret 0 and 180 degrees and thus the interpolation between them when using servo.write. It has no impact on write microseconds.
19  Using Arduino / Programming Questions / Re: question about 2 different water tank code! on: September 14, 2014, 08:19:23 am
Code:
  int scaledValue2 = map(constrain(distance2, highWater2, lowWater2), lowWater2, highWater2, 0, 15);
20  Using Arduino / Project Guidance / Re: Overloaded data-logger. on: September 14, 2014, 08:16:40 am
What I'm suggesting is that you can afford to give up a serial port if the second Arduino can take care of the function you were using it for and as a bonus a few others besides. For more speed & RAM, take a look at the Teensy 3.0 - cheap too  smiley
21  Using Arduino / Programming Questions / Re: question about 2 different water tank code! on: September 14, 2014, 07:23:32 am
You are most of the way there - you already have ECHO_PIN2 and TRIG_PIN2. Now you just need highWater2 and lowWater2 and use them in the code that calculates the reading for tank two.
22  Using Arduino / Project Guidance / Re: Overloaded data-logger. on: September 14, 2014, 06:46:17 am
If you really can't keep up, consider offloading some of the work to a second arduino - you can talk to it over serial (or software serial).

Alternatively, post your code.
23  Topics / Home Automation and Networked Objects / Re: Controlling Arduino connected RF transmitter from internet on: September 12, 2014, 07:32:33 am
The compiler is telling you that you have tried to declare one function inside the other here:

Code:
        char Comp(char* This) {

You either need to move the declaration outside CheckForClient and call it there or leave the body without the above line.
24  Topics / Home Automation and Networked Objects / Re: Controlling Arduino connected RF transmitter from internet on: September 11, 2014, 03:25:38 pm
I think you need to declare an array of char and accumulate what you're reading in it. Something like
Code:
char buf[VW_MAX_MESSAGE_LEN];

When your reading variable is set true, start putting the characters read into c into the array and null terminate it. When reading becomes false, send buf using

Code:
buf, strlen(buf));
25  Using Arduino / Project Guidance / Re: Multiple loops on: September 11, 2014, 07:09:14 am
Not only the switch; how is the servo connected and can you control it with a simpler (i.e. minimal) sketch?
26  Using Arduino / Sensors / Re: DS18B20 Temperature Sensor Interrupt on: September 11, 2014, 06:19:10 am
There is a function in the library that allows you to avoid the delay: setWaitForConversion. You have to manage the wait yourself using millis, but it lets you do other work while you're waiting.
27  Topics / Home Automation and Networked Objects / Re: Help needed with MySQL Connector/Arduino library for Home Automation project on: September 11, 2014, 06:13:19 am
This:
Code:
UPDATE iotautom_master.devices set status = '%d', pending_s = '0' where id = '%d'
is eighty one characters before you substitute the %d for ints so it will be a minimum of eighty including the terminating NULL. The buffer you're trying to put it in is only seventy five wide - you have an overflow which probably accounts for your strange serial output.
28  Topics / Home Automation and Networked Objects / Re: Controlling Arduino connected RF transmitter from internet on: September 11, 2014, 06:06:15 am
You're using a single char where a pointer to a char array is expected. Instead of this:

Code:
vw_send((uint8_t *)c, strlen(c));

try:

Code:
            vw_send(&c, 1);
29  Using Arduino / Project Guidance / Re: Multiple loops on: September 11, 2014, 05:53:05 am
How is your servo powered? Even one servo is marginal if it's powered by the arduino.

If you tell the servo to move to 180 (or zero) in setup after the attach followed by a suitable delay, does it move?
30  Using Arduino / Project Guidance / Re: Aquarium Controller, Guidance to start needed on: September 11, 2014, 05:47:48 am
Quote
I didn't do any data logging. For my opinion it is unneeded feature.

Once things are working you can certainly leave logging out - invaluable for debugging though. I'd leave the logging in the code though, disabled if desired, against the day that you discover that the system isn't working quite as you had hoped.
Pages: 1 [2] 3 4 ... 251