Loading...
  Show Posts
Pages: 1 [2] 3 4 ... 157
16  Using Arduino / Project Guidance / Re: timelapse for grow plant on: May 10, 2013, 05:43:34 am
I'd suggest you just get the camera hooked up and taking pictures on an hourly basis. The instructable you linked to should help you get that working. For an initial version, the sketch can be very simple, using the delay function to control the time interval. Later you'll want to get rid of delay and use millis instead. See the blink without delay example for inspiration.

Look for projects that use LED and keypad to drive menus and play with that separately. Adapt it to let you enter the time period or other parameters you want to set. Then look on the forums for help about combining sketches to get them working together.
17  Using Arduino / Project Guidance / Re: NMEA 0183 logger for GPS and Fisfinder on: May 10, 2013, 05:29:17 am
Looking at the datasheet, it does appear that you could hook a TTL GPS to the openlog directly. It's not clear what the filename generated would be but I guess you'd find that out by experiment. You might also have to use some other device to set the baud rate appropriately.
18  Using Arduino / Project Guidance / Re: new here on: May 08, 2013, 12:43:30 pm
What are you trying to achieve? A bit of cursory googling shows that DCC systems can command points and other accessories. What benefit are you hoping to realize by having the arduino do it? I expect a do it yourself rig will be considerably cheaper.
19  Using Arduino / Project Guidance / Re: Is this project possible? on: May 08, 2013, 10:01:56 am
Certainly not especially difficult once you've done an arduino project or two. Be very cautious about hooking the SMS piece up though. It would be very easy for a bug or simple oversight to have your arduino sending thousands of messages - might get expensive. Test thoroughly!
20  Using Arduino / Programming Questions / Re: problem with fill a String on: May 07, 2013, 03:42:45 pm
If you have a lot of String usage in your sketch, the memory allocation that occurs behind the scenes may exhaust or fragment your available RAM. When that happens, unpredictable behaviour results. It's hard to tell from just that fragment, but you're doing a lot of what appear to be unnecessary casts to String, which will be contributing to the problem. Better to use plain old C arrays of char when you have so little RAM available.
21  Using Arduino / Programming Questions / Re: Can't send a file through sd card to serial port. on: May 07, 2013, 03:12:06 pm
That's usually caused by unconditionally reading the serial port when you don't know that there is data to receive. q.v. serial.available.
22  Using Arduino / Programming Questions / Re: writing into pin - it takes effect after several attempts? on: May 07, 2013, 12:57:02 pm
Quote
In order to play with it, because I don't have here something which could generate me this voltage

Really? All you need is a wire to connect pin 2 to 5V or gnd on the arduino's pins.
23  Using Arduino / Motors, Mechanics, and Power / Re: I am trying to control direction of 2 motors with a push button on: May 07, 2013, 12:35:07 pm
Quote
the motors are getting really hot when i am running them

Have you tried adjusting the little current limiting pot on the driver board? With the power off of course.
24  Using Arduino / Programming Questions / Re: Problem reading SMS and compare on: May 07, 2013, 07:53:00 am
You're adding the newline character you receive to the end of the string, so your comparison fails. try checking against "xxx\n" instead, or don't concatenate the newline.
25  Using Arduino / Programming Questions / Re: How do I make a case statement run constantly until another one is called? on: May 07, 2013, 07:48:24 am
You're currently only executing your switch statement when something is detected from the remote. Run it unconditionally; you may need to save the response from the remote when you do get it in another variable that drives the switch.
26  Using Arduino / Project Guidance / Re: Strategy for long duration subroutine on: May 06, 2013, 10:40:10 am
Blink without delay will serve you well in this scenario. Keep a variable with your desired servo position and another one with the current position. Check every time around loop whether it's time to move the servo and if so, whether there is any movement needed.

Psuedo threading is going to bring a whole bunch of new problems - I'd suggest that it really isn't necessary or desirable in this case.
27  Using Arduino / Project Guidance / Re: PIR sensor with timer, first time and need help on: May 06, 2013, 09:42:49 am
You'll need to get rid of the delays and use millis instead. Take a look at the blink without delay example to see millis in use. For your code, whenever the PIR is high, store millis in a variable and turn the LED on. Independently, check that variable against millis to see whether five seconds have passed and if so, turn the LED off.
28  Using Arduino / Programming Questions / Re: Can Arduino recive a bitmap via xbee and store in external memory? on: May 01, 2013, 04:27:06 pm
A cursory look suggests that under the hood, that library sends images line by line. You could probably build something around the EPD_Class::line function that does away with the need to hold all the image data - just send each line as you get it from the xBee.
29  Using Arduino / Project Guidance / Re: NMEA 0183 logger for GPS and Fisfinder on: May 01, 2013, 12:25:56 pm
Get yourself an arduino that can write on SD cards, e.g. the Arduino ethernet. Use the softwareserial library to allow you to communicate with the GPS while leaving the hardware serial port available for debugging.

Read NMEA input into a buffer a sentence at a time, write it to the SD card. Actually, you probably want to just send it to the serial port to start with so you can be see it's working and then add the SD bits.
30  Using Arduino / Programming Questions / Re: Program Halting after 24 hours on: May 01, 2013, 09:55:47 am
Nothing sticks out as an obvious issue. Here's a possible hazard though:
Code:
     deg = 360.0 * position / total;

Can total ever be zero? I'm not sure what the arduino does on a divide by zero condition, but you might want to test for it.

Other than that, it's time to pepper your sketch with serial print. Since you're resetting nightly, do you have another arduino with the ability to write to an SD card - might make it easier to gather and save telemetry.
Pages: 1 [2] 3 4 ... 157