Show Posts
Pages: 1 2 [3] 4 5 ... 229
31  Using Arduino / Programming Questions / Re: Boat autopilot - PID not centralizing rudder. on: April 17, 2014, 07:21:55 am
Quote
Hopefully, I will get the wind vane a fair bit in front of the sail to make it undisturbed.

I've never seen such a thing on a sailboat, which makes me think that there's a good reason everyone puts their wind vane at the masthead. Your method is going to see slower wind speeds due to friction on the surface and will be subject to interference from spray.

On the other hand, it is true that traditional autohelms had a vane near deck level, but I suspect that that was a necessary compromise rather than a desired feature.

Edit: typo.
32  Using Arduino / Programming Questions / Re: Understanding state machine example on: April 17, 2014, 06:46:55 am
For some reason, I didn't bother making that code deal with rollover so if you're planning on running this for a long time (i.e. more than 49 days) it'll need a little restructuring. Search for millis and subtraction and you'll likely find one of the many discussions on the topic.
33  Using Arduino / Programming Questions / Re: TinyGPS++ - Failed checksum on: April 16, 2014, 01:29:04 pm
Quote
if i should post my code

Yes, you should  smiley-wink
34  Using Arduino / Project Guidance / Re: Problem in Serial Communication. on: April 16, 2014, 10:37:18 am
I just compiled it and sent it to a Mega using a Mac. Not very helpful, but it perhaps suggests that you have an issue with your environment.
35  Using Arduino / Project Guidance / Re: Data storage on SD card - file organisation, library search. on: April 16, 2014, 07:25:21 am
Quote
Thanks for answers, but this is not good for me.

Why not? The file format is pleasantly regular and thus easy to parse. Either manually or using sscanf. I'm not sure what more a 'structured file library' would buy you. 
36  Using Arduino / Project Guidance / Re: need a way to check for memory errors. on: April 16, 2014, 06:29:21 am
Don't allocate memory - the arduino has very little ram. Decide how much you'll need up front and declare it statically.
37  Using Arduino / Programming Questions / Re: GPS with Arduino UNO - 2. on: April 15, 2014, 02:02:50 pm
It should work everywhere. Indoors it will emit legible NMEA sentences, even if it has no fix. The position data will be garbage, but you will see asterisk characters where they should be; nothing like the unintelligible mess you have now. Test without the shield and see if you get nicer data.

38  Using Arduino / Project Guidance / Re: State Machine - recomendattions / opinions ? on: April 15, 2014, 06:18:19 am
Quote
First, if you don't use it every day of the week there is a huge learning curve to overcome and, for a single project I don't believe it is cost effective (in terms of your time) compared with implementing the project without a library.

Worse than that, if you're looking for help on the forums, you're asking the people you need help from to climb that learning curve too. If you're getting help from the author or someone else who has used the library for a few projects, of course that doesn't matter, but you're reducing the potential amount of assistance you'll get.
39  Using Arduino / Sensors / Re: WEMAUSA Liquid Level Sensors - SSS/SSL on: April 15, 2014, 06:13:09 am
It looks like it provides a variable resistance that depends on the depth of the measured fluid. Test it with a multimeter. If that'a what it is, try using a voltage divider to read it.
40  Using Arduino / Programming Questions / Re: Library error: 'Some thing' was not declared in this scope drive me Nuts on: April 14, 2014, 04:06:20 pm
Quote
Just as a design hint. Do not use an initialize function. Initialize all the things in your constructor. Otherwise a user might forget to call initialize and the code does not run as expected.

The use of constructors for this purpose in an arduino context is not appropriate. There is initialization of the hardware which must be complete before code such as serial.begin will work correctly. You should expect that the constructors will be executed before this init code. This is why so many Arduino libraries have a begin method to do the job that you might use a constructor for in a different environment.
41  Using Arduino / Programming Questions / Re: GPS with Arduino UNO - 2. on: April 14, 2014, 03:38:02 pm
It looks to me as though ground and power are connected on the shield already, so you can keep it connected. I'd like to see a bit more of the data - I'd expect to see some repetition, even if it's repetition of apparent garbage.
42  Using Arduino / Project Guidance / Re: Automatic Pilot System for Sailboat Using Arduino on: April 14, 2014, 03:33:57 pm
Very viable; the Arduino is orders of magnitude more powerful than the controllers in the early electronic autohelms.
43  Using Arduino / Programming Questions / Re: GPS with Arduino UNO - 2. on: April 14, 2014, 01:48:25 pm
Keep the hardware serial port at 115200 and keep a message in setup so you can see that the IDE is set correctly too.

Then send sketches that try to talk to the GPS at different rates. You might want to put the baud rate in a (long) variable so you can print it out so you know that the sketch actually loaded to the arduino.
44  Using Arduino / Programming Questions / Re: GPS with Arduino UNO - 2. on: April 14, 2014, 11:23:11 am
2 and 3 and there also needs to be a ground connection.

But, shield is connected on top of the arduino board, so, do you mean I have to separate them ?!!
No, it looks like the shield already takes care of it. I have an EM406 and breakout board so I connected it up to an arduino and ran your sketch - works fine once I set the IDE's serial terminal to 115200.

What you have still looks like a baud rate mismatch to me.
45  Using Arduino / Programming Questions / Re: GPS with Arduino UNO - 2. on: April 14, 2014, 11:00:01 am
2 and 3 and there also needs to be a ground connection.
Pages: 1 2 [3] 4 5 ... 229