Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a gps module #41

Open
runcom opened this issue May 23, 2024 · 7 comments
Open

adding a gps module #41

runcom opened this issue May 23, 2024 · 7 comments

Comments

@runcom
Copy link
Contributor

runcom commented May 23, 2024

Hi, I'm trying to make a sense of how to add the gps module to the mayhem v2 board, is there any documentation about it? I can see the code mentioning the gps pins and such but wiring wise, I'm kind of lost. I can see that the mmc is set to use just 1 pin so I'm guessing the others should be free to wire up? or are they being used by the nrf/cc modules?

@eried
Copy link
Owner

eried commented May 23, 2024

Technically you only need 1 pin for gps, the RX. If you arent using the microsd, you could hack your way out using those pins OR gpio16, but I think that is on the back. Either way I am not sure how easy this will be but report how it goes.

BTW the gps part in the firmware is because this is a fork, so if you use a normal ESP32 dev board there is a lot of free pins

@runcom
Copy link
Contributor Author

runcom commented May 23, 2024

Technically you only need 1 pin for gps, the RX. If you arent using the microsd, you could hack your way out using those pins OR gpio16, but I think that is on the back. Either way I am not sure how easy this will be but report how it goes.

what I'm basically trying to do is to put esp32-cam + NRF24l01 / CC1101 + gps (according to this wiring) to allow wardriving marauder too with the flipper zero. I basically would love to have this plus the GPS.

My understanding is that the fz is connected to the esp32-cam but also the nrf24 and cc1101 are connected to it - but the GPS module has to be attached to the esp32-cam.

I'll try with just one pin as you suggested but I want to use the microsd (and in 1bit mode, I should have a couple of gpios available right?)

@eried
Copy link
Owner

eried commented May 23, 2024

yeah, but I am not sure if they are exposed easily :S I dont remember in this moment if the gpio16 is actually in the back, I need to check later

@runcom
Copy link
Contributor Author

runcom commented May 23, 2024

I read everywhere that gpio16 is actually busy with psram tho - so it might be unusable :/ although I don't think i'll use the camera when doing wifi and gps - maybe trying pin 12 or 13 may be better if the microsd works with only one pin

@eried
Copy link
Owner

eried commented May 23, 2024

maybe, but I am not sure how easy is to use those pins, maybe you just need to test 1 by 1 which one is able to receive serial stream from the pin with SoftwareSerial(

@runcom
Copy link
Contributor Author

runcom commented Jun 2, 2024

This change worked for me:

     #elif defined(MARAUDER_FLIPPER)
       #define GPS_SERIAL_INDEX 1
-      #define GPS_TX 9
-      #define GPS_RX 21
+      #define GPS_TX 12
+      #define GPS_RX 13

with proper connection to the esp32-cam :) happy to send a PR too

...
Satellites: 7
  Accuracy: 3.00
  Latitude: redacted
 Longitude: redacted
  Altitude: 422.80
  Datetime: 2024-6-2 17:53:58
....

@eried
Copy link
Owner

eried commented Jun 3, 2024

that would be great, specially adding the pinout :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants