Show Posts
Pages: 1 [2] 3 4 ... 55
16  Using Arduino / Project Guidance / Re: can this GPS can work with Arduino? on: August 27, 2014, 05:27:02 am
I have made correction in code. It should work Now.

If you still not got worked . Here sample example code
Code:
#include <SoftwareSerial.h>

#include <TinyGPS.h>

/* This sample code demonstrates the normal use of a TinyGPS object.
   It requires the use of SoftwareSerial, and assumes that you have a
   4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
*/

TinyGPS gps;
SoftwareSerial ss(8,9);

void setup()
{
  Serial.begin(9600);
  ss.begin(9600);
  
  Serial.print("Simple TinyGPS library v. "); Serial.println(TinyGPS::library_version());
  Serial.println("by Mikal Hart");
  Serial.println();
}

void loop()
{
  bool newData = false;
  unsigned long chars;
  unsigned short sentences, failed;

  // For one second we parse GPS data and report some key values
  for (unsigned long start = millis(); millis() - start < 1000;)
  {
    while (ss.available())
    {
      char c = ss.read();
      // Serial.write(c); // uncomment this line if you want to see the GPS data flowing
      if (gps.encode(c)) // Did a new valid sentence come in?
        newData = true;
    }
  }

  if (newData)
  {
    float flat, flon;
    unsigned long age;
    gps.f_get_position(&flat, &flon, &age);
    Serial.print("LAT=");
    Serial.print(flat == TinyGPS::GPS_INVALID_F_ANGLE ? 0.0 : flat, 6);
    Serial.print(" LON=");
    Serial.print(flon == TinyGPS::GPS_INVALID_F_ANGLE ? 0.0 : flon, 6);
    Serial.print(" SAT=");
    Serial.print(gps.satellites() == TinyGPS::GPS_INVALID_SATELLITES ? 0 : gps.satellites());
    Serial.print(" PREC=");
    Serial.print(gps.hdop() == TinyGPS::GPS_INVALID_HDOP ? 0 : gps.hdop());
  }
  
  gps.stats(&chars, &sentences, &failed);
  Serial.print(" CHARS=");
  Serial.print(chars);
  Serial.print(" SENTENCES=");
  Serial.print(sentences);
  Serial.print(" CSUM ERR=");
  Serial.println(failed);
  if (chars == 0)
    Serial.println("** No characters received from GPS: check wiring **");
}

If you getting data you will printed latitude and longitude else it print as show in snap shot

17  Using Arduino / Programming Questions / Re: new project, programming help needed on: August 27, 2014, 05:17:21 am
Just post your code. Whatever you have written until.

Quote
I know how to program the setup and have it turn on the LED for the start button when the RFID is triggered, from this I would set up some sort of a timer that waits for the Start button to be pushed but if not it times out. This is the part of the code I'm having trouble with. I can't seem to figure out how to program such timer. 
18  Using Arduino / Project Guidance / Re: can this GPS can work with Arduino? on: August 27, 2014, 04:45:00 am
Ya , Now code is working fine . upload my code  With changes made intailly . share me snap shot of serial monitor. Change Serial monitor output loop. I have not changed.
change it
from
Code:
#include<gps.h>

To
Code:
#include"gps.h"
and include in main_c and gps_c.ino file
19  Using Arduino / LEDs and Multiplexing / Re: timer problem arduino one on: August 27, 2014, 03:28:38 am
Use MStimer library & interrupt. 

Check pin got high or not .if high start timer else stop/RESET  timer.
20  Using Arduino / Project Guidance / Re: can this GPS can work with Arduino? on: August 27, 2014, 03:26:38 am
While uploading disconnect your rx and tx pins.

Here i am attaching code . and image where i got compiled successfully. I dont have GPS device at present to show you output.

Once code uploaded successfully. connect TX and Rx pins as mentioned in program.

Code:
int rxPin = 0;                    // RX PIN
 int txPin = 1;                    // TX TX
then print screen and share snap shot of serial monitor
21  Using Arduino / Project Guidance / Re: HC-05 BTBEE + arduino on: August 26, 2014, 11:26:04 pm
Tryout let me if it is worked. if not follow my process.
https://www.sparkfun.com/products/9825
use this upload boot looader.

As i said earlier . If u unplug all device and just upload ur blink program. If you getting same error. As per me it nothing but bootloader issue only.
22  Using Arduino / Project Guidance / Re: Battery powered DC lab bench power supply controlled by arduion on: August 26, 2014, 07:46:17 am
you could use http://www.farnell.com/datasheets/1639075.pdf Ic for application

Since controller require few mA current , SO i don't think you must use high rated regulator. I would like to interface your microcontroller . Can u share us simple connection diagram of interface.

23  Using Arduino / Project Guidance / Re: can this GPS can work with Arduino? on: August 26, 2014, 07:33:55 am
first you need to parse the GPS data,
U need to keep in open space to get full data. You can find still  data is not accumulated.
Here i am attaching code for reference where data has been already stripped.
24  Using Arduino / Installation & Troubleshooting / Re: Invalid device signature. on: August 26, 2014, 06:24:53 am
http://hardwarefun.com/tutorials/use-arduino-code-in-non-arduino-avr-microcontroller
use this link for reference. This might solve your problem
25  Using Arduino / Installation & Troubleshooting / Re: Invalid device signature. on: August 26, 2014, 03:09:52 am
Check which Microcontroller IC your using

In case of arduino Uno
atmega328p
or
Atmega328p-pu

Usually arduino board comes up with atmega328 p-pu . Controller .So signature varies with controller . In that case you need to change signature
http://www.instructables.com/id/Bootload-an-ATmega328/step6/ATmega328-PU-workaround/
process explained here
26  Using Arduino / Interfacing w/ Software on the Computer / Re: arduino and pyserial on: August 26, 2014, 12:26:33 am
What you think yourself. We also not done these kind of stuff. I have also programmed. i also tried these kind of stuff in python.I have written the statement on basis of trial runs done on arduino and python communication
27  Using Arduino / Interfacing w/ Software on the Computer / Re: arduino and pyserial on: August 26, 2014, 12:19:01 am
Quote
You need to simply open the serial port in python and start sending data. Or recieving data.
Study the pose rial documentation.
The baud rate must be set the same as the arduino.
On the arduino end you use serial read and write just as you would with any serial input / output.

You can try this out. I am sure it will
not going to work unless it has USB to ttl converter in case of arduino,
Yes it is true, you followed right process but i doubt it will work.
28  Using Arduino / Audio / Re: Speaker_pcm program in Atmega328P on: August 26, 2014, 12:16:18 am
Hi everyone;

Does anyone knows if this example program works in Atmega328P??
I'm trying to make it work in an Arduino with Atmega328P but I'm having problems. Could it be a compatibility issue??
Maybe some registers are different or something related to the interrupts... I'm just thinking out loadly but if someone knows which can be the problem, or have an idea what may be the issue, I'm opened to any suggestion.

Thanks in advance,

Yes it will work. You Need AVr pocket programmer
Initially keep mind Atmega328 comes in 2 version
1)atmega328P
2)atmega328P-pu which used arduino board since low power consumption,

If you using atmega328 you need to change signature ID of bootlooader IC.More info available in below link
http://www.instructables.com/id/Bootload-an-ATmega328/step6/ATmega328-PU-workaround/
29  Using Arduino / Interfacing w/ Software on the Computer / Re: arduino and pyserial on: August 26, 2014, 12:07:36 am
If using python. Then  you need usb to TTL converted to interface with Arduino
Then only you can get data or send data over arduino.
30  Using Arduino / General Electronics / Re: 24Vac to an arduino usable voltage. on: August 26, 2014, 12:06:04 am
Before Purchase  check the current requirement in secondary side . i,e load .

Can yo share your previous circuit diagram to understand why it is getting heated.?? Why the input voltage is fluctuating that much???
Pages: 1 [2] 3 4 ... 55