GPS on Crius SE board
Re: GPS on Crius SE board
this "gps auto selection" is exactly what I need!
Any progress been made on detecting GUI or GPS connected automatically?
I have a serial GPS and unless I buy an i2c Interface I cant use it.
Any progress been made on detecting GUI or GPS connected automatically?
I have a serial GPS and unless I buy an i2c Interface I cant use it.
Re: GPS on Crius SE board
With this selected.
My hack occupies 106 bytes..
Binary sketch size: 30486 bytes (of a 30720 byte maximum)
And "original" Shared
Binary sketch size: 30362 bytes (of a 30720 byte maximum)
The 328 starts to be to small......
Enable and select your Gps Baud-rate
Connect Gps and reboot.
Or
Connect to Gui and reboot.
The autosense will delay the bootTime 1 sec and blink fast 5 times.
Uploaded to shared
/Patrik
Code: Select all
#define TRI
#define GPS_PROMINI_SERIAL 9600
#define CRIUS_SE
#define SERIAL_SUM_PPM ROLL,PITCH,THROTTLE,YAW,AUX1,AUX2,AUX3,AUX4 //For Robe/Hitec/Futaba
My hack occupies 106 bytes..
Binary sketch size: 30486 bytes (of a 30720 byte maximum)
And "original" Shared
Binary sketch size: 30362 bytes (of a 30720 byte maximum)
The 328 starts to be to small......
Enable and select your Gps Baud-rate
Code: Select all
//#define GPS_PROMINI_SERIAL 57600 // Will Autosense if GPS is connected when ardu boots!.....
Connect Gps and reboot.
Or
Connect to Gui and reboot.
The autosense will delay the bootTime 1 sec and blink fast 5 times.
Uploaded to shared
/Patrik
Re: GPS on Crius SE board
Thank you Patrik, I'll test the new shared R824 version and eventually make a movie of the GPS switch and GPS pos hold working.
How about LCD config? Will it work in both modes?
2 cent ideea: If dump the bootloader and upload the .hex file on pro mini with 9$ hardware (AVR USB), we could use the entire 32K of flash memory (back to KK update world)
How about LCD config? Will it work in both modes?
2 cent ideea: If dump the bootloader and upload the .hex file on pro mini with 9$ hardware (AVR USB), we could use the entire 32K of flash memory (back to KK update world)
Re: GPS on Crius SE board
The lcd should work in Gui mode i think.
Probobly not with the Gps who spam the port quite much.
Probobly not with the Gps who spam the port quite much.
Re: GPS on Crius SE board
Your GPS sensing software patch works perfect, here is a demonstration of all GPS functions of MultiWii based on Atmega 328 (Crius) and serial GPS.
http://www.youtube.com/watch?v=952DYF3XV8s
http://www.youtube.com/watch?v=952DYF3XV8s
-
- Posts: 33
- Joined: Thu Sep 15, 2011 10:45 am
Re: GPS on Crius SE board
DRAMIDA can you please post some pictures of the GPS connected to the CRIUS SE?
Do you think that this GPS will work connected to the serial port?
http://www.dragonlabseu.bigcartel.com/product/10hz-gps
Do you think that this GPS will work connected to the serial port?
http://www.dragonlabseu.bigcartel.com/product/10hz-gps
Last edited by flyboy_____ on Fri Jun 01, 2012 3:20 pm, edited 2 times in total.
Re: GPS on Crius SE board
The GPS conects on Crius on the GPS connector. it is written on the board, near ftdi. Remzibi GPS fits exactly there, no rewiring needed. Also you may put on still the video on 720p image (0:27) with tricopter and see the wiring. (note that this was a previous development, not so good pos hold)
http://www.youtube.com/watch?v=ho_PYBi3QwY
http://www.youtube.com/watch?v=ho_PYBi3QwY
Re: GPS on Crius SE board
flyboy_____ wrote:DRAMIDA can you please post some pictures of the GPS connected to the CRIUS SE?
Do you think that this GPS will work connected to the serial port?
Yes please post some pictures so us not so experienced guys can benefit from your expertise
Please please please...
-
- Posts: 33
- Joined: Thu Sep 15, 2011 10:45 am
Re: GPS on Crius SE board
Thanks Dramida and PatrikE.
I'm going to try tonigh this GPS http://www.dragonlabseu.bigcartel.com/product/10hz-gps, that I use with Dragon OSD. Do you think it will work?
Do I need to configure anything in this GPS. If so... how to?
I will do the following step by step:
1 - Connect the 4 wires from the GPS to Serial Port on Crius SE (GND,Vcc,Tx,Rx)
2 - Change my usual Tricopter code of Multiwii with the activation of:
#define GPS_PROMINI_SERIAL 9600
#define GPS_PROMINI_SERIAL 57600 // Will Autosense if GPS is connected when ardu boots!.....
3 - Configure in GUI a switch to assign to GPS features.
Is this all??
What do we loose with this mod:
- Possibility of using a Bluetooth transmitter to use telemetry and configuration trough the serial port.
- Can I use GUI normally with FTDI cable?
I'm going to try tonigh this GPS http://www.dragonlabseu.bigcartel.com/product/10hz-gps, that I use with Dragon OSD. Do you think it will work?
Do I need to configure anything in this GPS. If so... how to?
I will do the following step by step:
1 - Connect the 4 wires from the GPS to Serial Port on Crius SE (GND,Vcc,Tx,Rx)
2 - Change my usual Tricopter code of Multiwii with the activation of:
#define GPS_PROMINI_SERIAL 9600
#define GPS_PROMINI_SERIAL 57600 // Will Autosense if GPS is connected when ardu boots!.....
3 - Configure in GUI a switch to assign to GPS features.
Is this all??
What do we loose with this mod:
- Possibility of using a Bluetooth transmitter to use telemetry and configuration trough the serial port.
- Can I use GUI normally with FTDI cable?
Re: GPS on Crius SE board
Yes, the 4 steps are correct, that's all, but you must find the baudrate of your Dragon OSD GPS to put in your config.
If you can, set this OSD to 10Hz NMEA sentence.
note.
-You don't need to define twice GPS_PROMINI_SERIAL
-The GPS will be detected at boot time and the GUI will be disabled until you reboot without GPS (Thanks to Patrik)
If you can, set this OSD to 10Hz NMEA sentence.
note.
-You don't need to define twice GPS_PROMINI_SERIAL
-The GPS will be detected at boot time and the GUI will be disabled until you reboot without GPS (Thanks to Patrik)
Re: GPS on Crius SE board
Hello people
Sorry for my English.
I own CRUISE SE and I wanted to connect a GPS
Is this GPS fit ?
http://www.goodluckbuy.com/gps-receiver ... oller.html
If so,,,
when I will connect it via I2C Can I use GUI ?
Thank you
udi
Sorry for my English.
I own CRUISE SE and I wanted to connect a GPS
Is this GPS fit ?
http://www.goodluckbuy.com/gps-receiver ... oller.html
If so,,,
when I will connect it via I2C Can I use GUI ?
Thank you
udi
-
- Posts: 33
- Joined: Thu Sep 15, 2011 10:45 am
Re: GPS on Crius SE board
I Wrote incorrectly my previous post
What I meant was:
//#define GPS_SERIAL 2 // should be 2 for flyduino v2. It's the serial port number on arduino MEGA
#define GPS_BAUD 115200
#define GPS_PROMINI_SERIAL 57600 // Will Autosense if GPS is connected when ardu boots!.....
This is the correct setup to use serial GPS. Correct?
What I meant was:
//#define GPS_SERIAL 2 // should be 2 for flyduino v2. It's the serial port number on arduino MEGA
#define GPS_BAUD 115200
#define GPS_PROMINI_SERIAL 57600 // Will Autosense if GPS is connected when ardu boots!.....
This is the correct setup to use serial GPS. Correct?
Re: GPS on Crius SE board
yep Be shure to config your GPS to a baudrate accordingly to your define.
-
- Posts: 33
- Joined: Thu Sep 15, 2011 10:45 am
Re: GPS on Crius SE board
1 problem... 328P is starting to get small.
I want to activate Camera Triguer, and Tilt, and Failsafe but there is no space available.
What can I remove to free space?
I want to activate Camera Triguer, and Tilt, and Failsafe but there is no space available.
What can I remove to free space?
-
- Posts: 33
- Joined: Thu Sep 15, 2011 10:45 am
Re: GPS on Crius SE board
Finally I tested Dragon OSD GPS serial connect to 328P (Dev0528)
Issues:
- Cannot load all settings in 328P by lack of space. Must disable camera tilt, trigger and failsafe that I wanted.
- GPS is recognized has green in GUI and its led blinks, but does not pick up info in GUI (alt, lat, lon, sats...)
- Tried reversing Tx and Rx from GPS but that blocks GUI.
- GUI is slow...
How to send AT command to GPS to check if it is sending NMEA?
Issues:
- Cannot load all settings in 328P by lack of space. Must disable camera tilt, trigger and failsafe that I wanted.
- GPS is recognized has green in GUI and its led blinks, but does not pick up info in GUI (alt, lat, lon, sats...)
- Tried reversing Tx and Rx from GPS but that blocks GUI.
- GUI is slow...
How to send AT command to GPS to check if it is sending NMEA?
Re: GPS on Crius SE board
If you can live without Baro it's possible to disable it in def..
It will save some space.
It will save some space.
Re: GPS on Crius SE board
flyboy_____> Are you connecting the GPS and GUI serial on the SAME serial port/pins?
If so, I can't see how that will work...
If so, I can't see how that will work...
Re: GPS on Crius SE board
If you want to see what the Gps outputs it's possible to connect it direct to the Ftdi programer.
But you must cross the TX & RX connections between Gps & Ftdi.
Then you can use serial monitor in Ardino to se what commes out.
On a 328P you can only use Gui OR Gps!.
Not Both at same time!...
But you must cross the TX & RX connections between Gps & Ftdi.
Then you can use serial monitor in Ardino to se what commes out.
On a 328P you can only use Gui OR Gps!.
Not Both at same time!...
-
- Posts: 33
- Joined: Thu Sep 15, 2011 10:45 am
Re: GPS on Crius SE board
I tried DOSD GPS with several baud rates in GPS_BAUD and GPS_PROMINI_SERIAL.
The GPS led blinks, but in GUI never catches GPS sats.
I was thinking if udi123 link is any good to connect to CRIUS in serial or I2C
http://www.goodluckbuy.com/gps-receiver ... oller.html
I'm planning on connecting the GPS to PC trough the FTDI cable and use miniGPS tool to try and read this GPS setup.
I'm afraid of burning the GPS LOCOSYS LS20031 because specs sheet says it only supports 4,2v... well I have connected it to 5v for some hours and still works when connected to DOSD. I'm I burning it slowly?
http://www.rcgroups.com/forums/showpost ... ount=17691
The GPS led blinks, but in GUI never catches GPS sats.
I was thinking if udi123 link is any good to connect to CRIUS in serial or I2C
http://www.goodluckbuy.com/gps-receiver ... oller.html
I'm planning on connecting the GPS to PC trough the FTDI cable and use miniGPS tool to try and read this GPS setup.
I'm afraid of burning the GPS LOCOSYS LS20031 because specs sheet says it only supports 4,2v... well I have connected it to 5v for some hours and still works when connected to DOSD. I'm I burning it slowly?
http://www.rcgroups.com/forums/showpost ... ount=17691
Re: GPS on Crius SE board
It Will never work to connect GPS And GUI to the serialPort on a Crius SE board...
There's two physical serialports pinned out on the board But They are connected in paralell.
Therefore you can only use one at a time.
You can find a thread on the forum describing that if you have a Lcd connected when you program
the Crius the Lcd is also reprogrammed and will behave strange.
When the board boots it will detect if a gps is connected to the serialport.
If a GPS is detected.
It will disable Gui Communication.
And Activate GPS communication
It's not a optimal solution but atm its the only way to use a serial Gps together with a 328P.
Patrik
Another alternative is to make a I2c Gps unit.(Quite easy actually)
There's two physical serialports pinned out on the board But They are connected in paralell.
Therefore you can only use one at a time.
You can find a thread on the forum describing that if you have a Lcd connected when you program
the Crius the Lcd is also reprogrammed and will behave strange.
When the board boots it will detect if a gps is connected to the serialport.
If a GPS is detected.
It will disable Gui Communication.
And Activate GPS communication
It's not a optimal solution but atm its the only way to use a serial Gps together with a 328P.
Patrik
Another alternative is to make a I2c Gps unit.(Quite easy actually)
Re: GPS on Crius SE board
I have an all in one control board and no easy access to the i2c pins.
Is it not possible to have a digital pin used as an output "switch" to select serial port? Some simple logic gates can then select which device to talk to...
Is it not possible to have a digital pin used as an output "switch" to select serial port? Some simple logic gates can then select which device to talk to...
-
- Posts: 33
- Joined: Thu Sep 15, 2011 10:45 am
Re: GPS on Crius SE board
If I connect the Crius SE to GUI from FTDI cable pins and GPS in serial port pins that will not work?
Is that what you are saying?
With this setup all functions from GUI work, besides the GPS that does not report no info.
How do I know that GPS is locked and that is enabled for position hold and RTH?
Is that what you are saying?
With this setup all functions from GUI work, besides the GPS that does not report no info.
How do I know that GPS is locked and that is enabled for position hold and RTH?
Re: GPS on Crius SE board
There should be a "lock/fix" LED connection on the GPS module, other than that I have no idea, you are in the same boat as me.
Re: GPS on Crius SE board
flyboy_____ wrote:How do I know that GPS is locked and that is enabled for position hold and RTH?
The statusLed is normally off when card is unarmed.
With GPSFix it will start to blink fast 3-4Hz when board is unarmed.
The board only check for Gps at boot.
Crius board dont have a reset button and you must disconnect power to restart it.
Connect the comDevice of your choice and the board will detect the type at startup.
The board must be restarted every time you switch interface.
It's possible to reset the board by using a jumper.
Or connect a PushButton to the pins.
Re: GPS on Crius SE board
Pyrofer wrote:I have an all in one control board and no easy access to the i2c pins.
Is it not possible to have a digital pin used as an output "switch" to select serial port? Some simple logic gates can then select which device to talk to...
Shure it can work.
If you can switch RX-line between the devices the code will detect it at startup.
The logic test is only run at startup Not continiusly.
Re: GPS on Crius SE board
Yeah, I was meaning for using both. Ie, making a "fake" second serial.
Use only one serial port but "switch" between 2 serial devices using an output pin to control external logic.
Is the auto-detect rolled into the multiwii dev yet or do I have to patch manually?
Use only one serial port but "switch" between 2 serial devices using an output pin to control external logic.
Is the auto-detect rolled into the multiwii dev yet or do I have to patch manually?
Re: GPS on Crius SE board
Autodetect is merged in dev the release.
Its possible to do what you mean..
With a pnp & a npn & a resitor. Like a swtching relay.
Then make a function to switch between the intrefaces....
Its possible to do what you mean..
With a pnp & a npn & a resitor. Like a swtching relay.
Then make a function to switch between the intrefaces....
Re: GPS on Crius SE board
it's looks to exist a software solution :
from here : http://www.arduino.cc/cgi-bin/yabb2/YaB ... 250663814/
Code: Select all
see the following code snippet from user HULK
void(* resetFunc) (void) = 0; //declare reset function @ address 0
...
resetFunc(); //call reset
...
from here : http://www.arduino.cc/cgi-bin/yabb2/YaB ... 250663814/
Re: GPS on Crius SE board
Maby it's not a reset you want to do.
It's better to make a function with the autodetect inside.
Then you can call the function when ever you need.
It's better to make a function with the autodetect inside.
Then you can call the function when ever you need.
Re: GPS on Crius SE board
Why does it need to be called? Why not parse each incoming line and see if its nmea or not?
Its easy to identify each type of data and react accordingly.
There is no reason it has to "choose" one of the other, both can be supported at the same time based on the incoming data.
Its easy to identify each type of data and react accordingly.
There is no reason it has to "choose" one of the other, both can be supported at the same time based on the incoming data.
-
- Posts: 1630
- Joined: Wed Jan 19, 2011 9:07 pm
Re: GPS on Crius SE board
Pyrofer wrote:Why does it need to be called? Why not parse each incoming line and see if its nmea or not?
Its easy to identify each type of data and react accordingly.
There is no reason it has to "choose" one of the other, both can be supported at the same time based on the incoming data.
This is also how I see the way to share the same UART.
With the new protocol, there is a header.
So it's easy to detect either a NMEA header or a MSP header without the need to sense the presence of a GPS at the init.
just one inconvenient: the Serial speed must be the same between GUI and GPS device
Re: GPS on Crius SE board
The only problem is the amount of data coming from a GPS device at 10hz.
If Multiwii output "OK" after each set of nmea data (all lines sent, would have to be detected as some GPS send different data) you could in theory attach the GUI and the GPS, the GUI would simply wait for the OK before sending its command. at 115200 baud there should be plenty of time between nmea sets to get a couple commands in and out.
You wouldn't have to do this but you would need robust checksums at each end to watch for corrupted data, if the GUI sent a command at the same time as a nmea string you could easily corrup the data, sanity checking (making sure the data wasn't vastly different to previous data) should mitigate this.
You still need a multiplexing circuit outside the chip though, some simple logic gates would do (some OR gates). If you set up the logic so both send and receive ended up on one single half duplex channel the GUI could watch the NMEA data itself to avoid collisions, and also get that data sent to it for free
If Multiwii output "OK" after each set of nmea data (all lines sent, would have to be detected as some GPS send different data) you could in theory attach the GUI and the GPS, the GUI would simply wait for the OK before sending its command. at 115200 baud there should be plenty of time between nmea sets to get a couple commands in and out.
You wouldn't have to do this but you would need robust checksums at each end to watch for corrupted data, if the GUI sent a command at the same time as a nmea string you could easily corrup the data, sanity checking (making sure the data wasn't vastly different to previous data) should mitigate this.
You still need a multiplexing circuit outside the chip though, some simple logic gates would do (some OR gates). If you set up the logic so both send and receive ended up on one single half duplex channel the GUI could watch the NMEA data itself to avoid collisions, and also get that data sent to it for free
-
- Posts: 33
- Joined: Thu Sep 15, 2011 10:45 am
Re: GPS on Crius SE board
PatrikE wrote:flyboy_____ wrote:How do I know that GPS is locked and that is enabled for position hold and RTH?
The statusLed is normally off when card is unarmed.
With GPSFix it will start to blink fast 3-4Hz when board is unarmed.
The board only check for Gps at boot.
Crius board dont have a reset button and you must disconnect power to restart it.
Connect the comDevice of your choice and the board will detect the type at startup.
The board must be restarted every time you switch interface.
It's possible to reset the board by using a jumper.
Or connect a PushButton to the pins.
Great tip for reset. Thanks
Are those 6 pins suited to connect one AVR programmer? How to do it?
I need this help because after flashing the code to calibrate ESC's now I cant flash the normal MultiWii... I tried reseting at lots of times but it always gives me error avrdude: stk500_getsync(): not in sync: resp=0x00
Please help me
UPDATE:
Sync error fixed. Moved to a slower PC that gave me time to do the reset.
Reset should be done when sketch size appears on screen
If AVR programmer is usable for this board the we do not need to do manual reset
Re: GPS on Crius SE board
Hello people, i have a question, i recently bought a crius SE board, to connect a GPS
i can use the serial pins (where actualy i connect the ftdi or bluetooth) but i lost this possibility of connect on of that with gps Serial or i can use a i2c gps, but the board don't have this connector, i can add it , am i right? or not ? thank you all
i can use the serial pins (where actualy i connect the ftdi or bluetooth) but i lost this possibility of connect on of that with gps Serial or i can use a i2c gps, but the board don't have this connector, i can add it , am i right? or not ? thank you all
Re: GPS on Crius SE board
i2c is probably there somewhere, I have the same issue with my quad.
You would have to find the i2c bus, probably best to tap onto the end of the pullup resistors. If you have a schematic for the board not so hard. If you have a scope, not so hard.
If you have neither. good luck!
You would have to find the i2c bus, probably best to tap onto the end of the pullup resistors. If you have a schematic for the board not so hard. If you have a scope, not so hard.
If you have neither. good luck!
Re: GPS on Crius SE board
Solder the i2c cabels as picture shows.
Re: GPS on Crius SE board
Upgraded MultiWii SE Flight Controller v1.0 version is now available on ebay with I2C port, not sure what else has changed though...
Last edited by haydent on Sun Jun 17, 2012 2:29 am, edited 1 time in total.
Re: GPS on Crius SE board
my summary of this thread: (correct me if im wrong)
Atmega 328P based CRIUS boards can either use I2C GPS on the I2C port (one added if not available) or a non-i2c (serial) gps on the UART port, the to do this later one a code 'switch' can be added to disable loading of GUI code and enable the GPS code on the UART port. As both cannot be loaded at the same time, requiring a reboot between GPS & GUI connection.
Possibly OSD that reads its data from MWC via UART (serial) will not work also with UART connected GPS ?
Another issue becoming apparent with these 'Mini' boards is the lack of space for code additions (eg as optioned above), being pretty much full already...
Depending on your plans and needs likely its worth spending the extra $10-$30 to get a Atmega 2560 based board:
(http://www.goodluckbuy.com/mwc-multiwii ... quadx.html
http://www.rcgroups.com/forums/showthread.php?t=1648569)
Chip: 328P / 2560
Flash: 32Kb / 256Kb
EEPROM: 1024b / 4096b
SRAM: 2kb / 8kb
Max MHz: 16 / 20
# UART: 1 / 4
(this is raw chip data, and all resources may not be allocated on the multiwii boards, eg UART ports)
Atmega 328P based CRIUS boards can either use I2C GPS on the I2C port (one added if not available) or a non-i2c (serial) gps on the UART port, the to do this later one a code 'switch' can be added to disable loading of GUI code and enable the GPS code on the UART port. As both cannot be loaded at the same time, requiring a reboot between GPS & GUI connection.
Possibly OSD that reads its data from MWC via UART (serial) will not work also with UART connected GPS ?
Another issue becoming apparent with these 'Mini' boards is the lack of space for code additions (eg as optioned above), being pretty much full already...
Depending on your plans and needs likely its worth spending the extra $10-$30 to get a Atmega 2560 based board:
(http://www.goodluckbuy.com/mwc-multiwii ... quadx.html
http://www.rcgroups.com/forums/showthread.php?t=1648569)
Chip: 328P / 2560
Flash: 32Kb / 256Kb
EEPROM: 1024b / 4096b
SRAM: 2kb / 8kb
Max MHz: 16 / 20
# UART: 1 / 4
(this is raw chip data, and all resources may not be allocated on the multiwii boards, eg UART ports)
-
- Posts: 1
- Joined: Sat Jun 16, 2012 8:34 pm
Re: GPS on Crius SE board
Hi I have a neo-6m ublox GPS +nano V3.0 AVR ATmega 328+crius multiwii control board i2c GPS I connect the GPS but don't know how to get it to work,how con I conf it and where can I get the codes from,the copter is conf on 1.9 and it flight but don't know how to get the GPS to work can you help me plz.
Re: GPS on Crius SE board
V1.9 don't do much more than show the coordinats.
You need to run a never ver. to have Gps to any real use.
Dev 120606 for example.
You need to run a never ver. to have Gps to any real use.
Dev 120606 for example.
Re: GPS on Crius SE board
also im not sure how well that ublox module will work as it doesnt do 10hz. (i have no experience though)
Re: GPS on Crius SE board
haydent wrote:also im not sure how well that ublox module will work as it doesnt do 10hz. (i have no experience though)
5Hz is OK, if you swith off the GPS filtering in the code...
Re: GPS on Crius SE board
thanks for the info, will there be any difference with a 5hz as all the 10hz gps have sold out net wide...
also is that filtering code in mwc ?
also is that filtering code in mwc ?
Re: GPS on Crius SE board
In Config
Code: Select all
#define GPS_FILTERING true // add a 5 element moving average filter to GPS coordinates
Re: GPS on Crius SE board
so im still wondering am i better of waiting to get a 10hz model ?
Re: GPS on Crius SE board
Can anyone recommend a good GPS from goodluckbuy? for crius SE ?
Re: GPS on Crius SE board
they dont have any correctly priced 10hz models
Re: GPS on Crius SE board
and in other sources anyone now a good gps for crius? Thanks
Re: GPS on Crius SE board
did you want i2c or serial ? they are both pretty much all out of stock especially the i2c's
Re: GPS on Crius SE board
i think i want i2c to can connect the GUI what are the alternatives for serials? and I2C ?