Notifications
Clear all

Holybro Pixhawk 4 M8N gps and connections

5 Posts
2 Users
1 Likes
417 Views
(@mscientist33)
Eminent Member
Joined: 9 months ago
Posts: 15
Topic starter  

I have a Holybro Pixhawk4 M8N gps but I have a Pixhawk 2.4.8.  The gps connection on the Pixhawk 2.4.8 appears to be CAN but my gps has I2C. Is there a way to still use this gps with pixhawk 2.4.8?  Can I rewire the connector and use the I2C port on the pixhawk and will mission planner still pick it up?  I was wondering if anyone knows before I try it and smoke something...  Or is there a possibility of just using the Serial on the pixhawk?  I am aware the the compass is the part using the SDA/SCL I2C lines.  Could I just move them to the I2C connector?

Serial

 

GpsPort I2C
gps

 

This topic was modified 8 months ago 2 times by Mscientist33

   
Quote
Topic Tags
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4499
 

IIRC CAN and I2C are quite different, if that is your only choice I would look for a CAN to something you have available like I2C bit don't limit it to just I2C since I doubt that converter exists, more like CAN to serial maybe. I do know my thermostat reds the CAN signal on the 1 data wire that feeds it, it is a very fancy thermostat but it all runs off CAN bus so I know it can be done.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
(@mscientist33)
Eminent Member
Joined: 9 months ago
Posts: 15
Topic starter  

@zander Yes, I guess my question is the gps has markings of I2C and I know that it works with Arduino I2C so if I split out the I2C part (the compass), were should I put the GPS on the pixhawk?  Right now I have separated the compass (I2C) and plugged it into the I2C port and I can pick it up but I'm not getting any compass at all on the GPS port or the Serial port.  I'm looking for help on setting up the pixhawk/mission planner.


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4499
 

@mscientist33 Sorry, not familiar with that device.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
(@mscientist33)
Eminent Member
Joined: 9 months ago
Posts: 15
Topic starter  

@zander I finally figured it out.  For others that need to know: I did as I thought I had to do.  I took out the compass I2C pins from the pixhawk 2.4.8 gps connector and moved them to the I2C connector.  I then loaded the rover firmware pixhawk1-1M.  Works like a charm.  Now to get it to send the pwm to my arduino. 🙂


   
Ron reacted
ReplyQuote