HI, I have been using NEO M8N module(gps). It has a TX and RX pin so it can be transferred to computer automatically. I'm not sure what program it was working on but it worked anyhow.
But then, I uploaded a sketch but it wasn't working!!
So to make sure, I wired the gps to the digital pin 0 and 1 to see the datas coming in.
Then I realized it will send some infos only short after reset button is pressed!
So this means that I have to hold down on reset button to get datas to my com port.
So... maybe I am misunderstanding the Arduino's mechanism...
Can someone tell me if there is a reason 'Arduino won't send the values it received to the computer automatically????'
====> In what situations can arduino send in some datas from serial pin automatically to the computer?
junwoo0914:
====> In what situations can arduino send in some datas from serial pin automatically to the computer?
In no situations will the Arduino send the data automatically. What's happening is when you hold the reset button the Arduino is disabled so the GPS unit is just sending the serial data directly to your computer, which is also connected to pins 0 and 1. If you want the Arduino to receive serial data from the GPS and then send it on to the computer via serial you need to connect the GPS module to different pins. If you're using a board like an Uno with only one hardware serial port then you will need to use the SoftwareSerial to communicate with the GPS and then pass the commands on to your computer which is connected to Serial. This won't happen automatically, you need to write a program, that's how an Arduino works.
pert:
In no situations will the Arduino send the data automatically. What's happening is when you hold the reset button the Arduino is disabled so the GPS unit is just sending the serial data directly to your computer, which is also connected to pins 0 and 1. If you want the Arduino to receive serial data from the GPS and then send it on to the computer via serial you need to connect the GPS module to different pins. If you're using a board like an Uno with only one hardware serial port then you will need to use the SoftwareSerial to communicate with the GPS and then pass the commands on to your computer which is connected to Serial. This won't happen automatically, you need to write a program, that's how an Arduino works.
Thank you so much! You got me to understand it very well!! Thanks again!