|
|
|
|
|
|
||
|
Joined Feb 2011
457 Posts
|
Quote:
|
|
|
||
|
|
||
|
|
Quote:
|
|
|
||
|
|
|
|
Paris
Joined Dec 2010
167 Posts
|
connecting a FMP04 gps
I have bought a FMP04 GPS some time ago and ordered a GPS bob from Flyduino. I soldered all that together and let it rest for a while. Recently I ran upon it and decided to give a try. I wired the bob to an Arduino NANO and tried to read what came out of GPS.
The wiring was simple : GPS Tx ---> Nano D2 GPS Vcc ---> 5V GSP Gnd ---> Nano Gnd The programm was even simpler, it merely gets what is present on softserial and put it on the hardware serial port : Code:
#include <NewSoftSerial.h>
NewSoftSerial GPS(2, 3);
void setup()
{
Serial.begin(57600);
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
GPS.begin(2400);
// mySerial.println("Hello, world?");
}
void loop() // run over and over
{
if (GPS.available()) Serial.print( GPS.read(),BYTE);
}
the GPS seems to product data. On the arduino serial monitor, I get garbage but when I disconnect the Tx wire, there is no more data. I have tried various baud rates from 2400 to 115200 but I get always unreadable char. Probably I made an error somewhere but I am not able to go any further. Next try would be to connect the GPS to a PC serial port. Could you give me an advice? Would you have other ideas in order to test that piece of electronics? Is there some sort of arduino programm that could analyse what go out of GPS? Let me know, I shall be gratefull. Thanks. At last I read somewhere on that forum that it is possible to update the firmware of certain GPS units. Would it be the case for mine and could it be the solution? |
|
|
|
|
Belgium
Joined Sep 2004
1,478 Posts
|
DroFly MPU6050 + MS5611 + HMC5883 + Atmega32U4
Hi,
Try to get some help, and post on atmega32u4 related threads so somebody could possibly help me out. I did some further measurements to try to understand why the Drofly, which is also based on the ATmega32u4 and "thus" similar to the "MicroWii.. ATmega32u4 Based 10DOF MultiWii FC" 4+2 Rx channel inputs, I set only these from a original multiwii version 2.1 config : #define OCTOFLATP #define DROTEK_10DOF_MPU// #define MINCOMMAND 1000 #define A32U4ALLPINS Compile, check in the GUI=> ok octocopter Mesure with a oscilloscope and i expect to have 1000µSec on the pins 11,10,13, 5, A2, 6, A3, 9 I mesure 1000 µSec on the pins : 9,6,5,10,A2,A3; 1043µSec on the pin 13 ; nothing sur 12,11,A1,A2,A5 //#define HEX6X GUI=> ok hexacopterX expect 1000µSec on the pins 6,10,11, 9, 5, 13 I mesure 1000 µSec on the pins : 9,6,5,10,A2; 1043µSec on the pin 13 ; nothing on 12,11,A1,A2,A3,A5 //#define QUADX GUI=> ok quadricopterX expect 1000µSec sur les pins 6,10, 9, 5 I mesure 1000 µSec on the pins : 9,6,5,10; ok but still 1043µSec on the pin 13 ; nothing on 12,11,A1,A2,A3,A5#define OCTOFLATP #define DROTEK_10DOF_MPU// #define MINCOMMAND 1000 //#define A32U4ALLPINS expect 1000µSec sur les pins 11,10,13, 5, A2, 6, A3, 9 I mesure 1000 µSec sur les pins : 9,6,5,10,A1,A2,A3; 1043µSec on the pin 13 ; nothing on 12,11,A3,A5 I don't get it! And always 1043 on the pin 13? Thanks for help, manu |
|
|
|
|
||
|
|
Quote:
Has anyone identify any probleme like this using MultiWii Flight Controler - MPU6050 + MS5611 + HMC5883 + Atmega32U4 I have noticed after a long investigation that code compiled with leonardo is not working fine with esc bought 2 years ago and fine with the same esc bought one year ago. Too old esc must be flashed to work fine. Any reply would be appreciated Paddytfm |
|
|
||
|
|
||
|
|
Quote:
And I can guess where you got it from. ![]() I can tell you: our time has come! This module gives me instant fixes of a lot of sats. I connected mine to serial 2 on the Flyduino with all 4 wires gnd/5v/rx/tx I slightly remember that there was a version of Paul's bob where he swapped rx/tx and you needed to connect rx<->rx and tx<->tx He wanted to make it easier for noobs.
|
|
|
||
|
|
||
|
Paris
Joined Dec 2010
167 Posts
|
Quote:
|
|
|
||
|
|
||
|
|
Well you can't connect the GPS directly to a PC serial port, you must use a FTDI or RS232 to TTL convertor.(CP210x)
Download and install MiniGPS 1.4 at http://www.pololu.com/catalog/product/1249/resources Connect your FTDI to the GPS like this: +++++++++++++++++++++++++++++++ FTDI-------------------------GPS GND--------(BLK)----------GND 3V3--------(PUR)----------3.3V RXD--------(WHT)----------RX TXD--------(GRY)----------TX +++++++++++++++++++++++++++++++ Have a look at the website on the link for screenshots and instructions. Quote:
|
|
|
||