Show Posts
Pages: 1 2 [3] 4 5 ... 137
31  Using Arduino / Programming Questions / Re: Data Logging Stops After Losing GPS Signal on: April 13, 2014, 12:08:16 pm
Your code looks wrong to me.   

There are two ways to write files on SD cards.

You can open the file once,   and keep writing to it.

or

You can open the file,  write something to it,  and the close it.   And the next time you want to write something,  open it again.  And then close it again.

Both of these methods seem to have reliability issue on the arduino.

But your method seems to be to open the file once,   write some stuff,   and then  close it.   And when you get the next gps fix,   you try to write more stuff ( without opening the file ),   and then close it again.  And so on.   I am pretty sure that you cannot open the file once and then close it many times,  and expect it to work.






32  Using Arduino / Programming Questions / Re: GPS with Arduino UNO - 2. on: April 13, 2014, 11:56:44 am
Quote
And, as I've done what Brad suggested me about the switch, this time I've got results, but in the form attached in the photo below !

That looks like a speed mismatch.   check that both the  GPS>Arduino  and Arduino>PC  speed is correct.   If you are not 110% sure what speed the GPS chip is outputting,   try some different speeds.

You can verify the speed for the Arduino>PC  connection by adding a statement like 
Code:
Serial.println("Hello world") ;

at the end of your setup( ) function.   Seeing this on the screen,   will enable you to be certain that the speed is matched between the Arduino and the PC.
33  Using Arduino / Programming Questions / Re: GPS with Arduino UNO - 2. on: April 13, 2014, 11:52:28 am
Your "Code 2" example won't work.   How does your serial connection connect to both the GPS and the serial monitor ?

I don't think it can.

Using an Uno,  you would need to use  softwareSerial  for one of the serial connections.
34  Using Arduino / Programming Questions / Re: Arduino Uno: Problems with Serial.print() on: April 13, 2014, 11:41:41 am
What is that Serial.end()  supposed to be doing ?    I never noticed anyone else using that before,  and I doubt that you need to.
35  Using Arduino / Programming Questions / Re: Misbehaving servo on: April 13, 2014, 11:38:25 am
0x01 and 0x02 and 0x03 are characters.    They are not printable characters.

The other problem I can see,   is that the obviously incomplete code fragment quoted doesn't include any declaration of the variable "pvar".   On any of the millions of iterations through loop( )  in which no new incoming serial data is detected,   you are still sending the value of pvar to the servo,   and who knows what that might be.
36  Using Arduino / Sensors / Re: HMC5883L for heliostat orientation determination on: April 12, 2014, 12:41:21 am
It seems to me,  that the assumption is being made there that the device is being held flat,  that is,  parallel to the ground.  The magnetic field is a vector pointing diagonally into or out of the ground.  For any given reading on the device,   you could rotate the device about an axis aligned with the field and get the same reading.
37  Using Arduino / Sensors / Re: High sensitivity gyro? on: April 12, 2014, 12:28:46 am
You can calibrate the gyro for a constant value,  but it does not remain constant very long.
38  Using Arduino / Programming Questions / Re: Improper Pressure Number from MS5607 Device on: April 11, 2014, 09:21:34 pm
Do 64 bit ints really work ?
39  Using Arduino / Programming Questions / Re: 'class SoftwareSerial' has no member named 'parseInt' on: April 11, 2014, 09:18:47 pm
So,   if one serial char is available,   you expected to be able to read about seven whole ints ?

Unless parseInt() has some special delay functionality that I don't use,  I foresee problems with your approach.
40  Using Arduino / Motors, Mechanics, and Power / Re: Arduino Micro - driving relays for seat warmer on: April 10, 2014, 03:51:20 pm
Quote
the Micro I'm using doesn't have enough VCC to hold both relays on, unless I'm plugged into BOTH 12v on RAW and have the micro-usb plugged in. 

There are issues with this.   You really should not be trying to run the arduino from two different power sources at the same time.

If your relay module really does have optocouplers,   then the arduino should not be overloaded driving it.   How are you obtaining the relay activating coil current ?   I suspect you have wired up the relays wrongly somehow.

41  Using Arduino / Motors, Mechanics, and Power / Re: Filter cap needed on regulated supply? on: April 10, 2014, 03:28:50 pm
The cap has multiple purposes.

One purpose is to "filter"  voltage ripple and other unwanted signals coming in from the power source.

A second purpose is to provide a buffer of current capability for brief periods when your device wants a lot of current.

A third purpose is to prevent brief periods of high current demand from your device,    from lowering the voltage of the power source and potentially affecting other devices using that source.

These purposes are all inter-related but their conceptual importance depends on the context.  It would be unwise to get the concept stuck in your head that these are "filter" capacitors,  and that that is the only relevant purpose.
42  Using Arduino / Programming Questions / Re: Problem using ADT7310 SPI temperature sensor with arduino ethernetshield on: April 10, 2014, 03:21:43 pm
Why are you setting pin 3 high ?

Check all the places where you are setting the CS signal for the various SPI devices.
43  Using Arduino / Programming Questions / Re: if else commands on: April 10, 2014, 03:07:00 pm
The logic for playing the tones looks wrong.

Even if you turn the tone on,     it will immediately be turned off by the next if statement,   won't it ?
44  Using Arduino / Installation & Troubleshooting / Re: fatal error: avr/io.h: No such file or directory on: April 10, 2014, 03:00:15 pm
Windows search can't find this file,   until I reboot computer.   Then it can.   Windows is crap.  Use Linux.
45  Using Arduino / Installation & Troubleshooting / Re: fatal error: avr/io.h: No such file or directory on: April 10, 2014, 02:52:23 pm
Actually,  there is one,   and it is here

C:\......\Arduino\arduino-1.0.5\hardware\tools\avr\avr\include\avr

I don't know why the cretinous windows search fails to find it.
Pages: 1 2 [3] 4 5 ... 137