I guys!
Here -> https://github.com/lharnaldi/rp_bmp180 you can find a simple example on how to communicate with a pressure and temperature sensor (BMP180).
Here -> https://github.com/lharnaldi/rp_venusGps you can find a simple example on how to communicate with a Venus GPS.
Both examples use the E2 extension connector.
Hope it help somebody!
Regards,
Horacio
Connecting to a i2c sensor and a GPS
-
- Posts: 7
- Joined: Wed Mar 01, 2017 9:27 am
Re: Connecting to a i2c sensor and a GPS
Hello Horacio
Could you please explain a bit , how you have connected the gps sensor using I2C communication in red pitaya?
Thank you
Regards
Mahi
Could you please explain a bit , how you have connected the gps sensor using I2C communication in red pitaya?
Thank you
Regards
Mahi
-
- Posts: 4
- Joined: Wed Oct 28, 2015 5:28 pm
Re: Connecting to a i2c sensor and a GPS
Hi mahi2712,
No, the GPS uses the uart (serial) communication. See the code at the repo, there is uart.{c,h} sources which manages the comms.
Regards,
Horacio
No, the GPS uses the uart (serial) communication. See the code at the repo, there is uart.{c,h} sources which manages the comms.
Regards,
Horacio
-
- Posts: 7
- Joined: Wed Mar 01, 2017 9:27 am
Re: Connecting to a i2c sensor and a GPS
Thank you for your prompt reply.
I am trying to program the gps sensor with my red pitaya using sdk and it always tell me that the red pitaya card is not connected.
Everything works fine till Xilinx Vivado, I am able to create the bit and bin files and then able to burn the bit and bin using putty .
I tried to find more information for sdk but unfortunately , there is not much information available regarding sdk.
Could you please explain the process.
Do we have to use any setting for the sdk ?
Do you have an example which explains about the sdk process?
thank you for your kind help.
I am trying to program the gps sensor with my red pitaya using sdk and it always tell me that the red pitaya card is not connected.
Everything works fine till Xilinx Vivado, I am able to create the bit and bin files and then able to burn the bit and bin using putty .
I tried to find more information for sdk but unfortunately , there is not much information available regarding sdk.
Could you please explain the process.
Do we have to use any setting for the sdk ?
Do you have an example which explains about the sdk process?
thank you for your kind help.
-
- Posts: 4
- Joined: Wed Oct 28, 2015 5:28 pm
Re: Connecting to a i2c sensor and a GPS
Actually, what i did is to install the RedPitaya ecosystem (https://github.com/RedPitaya/RedPitaya) inside the official SD image from redpitaya.com and compile the code there. I did'nt work at all with vivado and SDK in those projects.
In the ecosystem there are an Examples directory where you can test your code.
Hope it help you.
Regards,
--
Horacio
In the ecosystem there are an Examples directory where you can test your code.
Hope it help you.
Regards,
--
Horacio
-
- Posts: 7
- Joined: Wed Mar 01, 2017 9:27 am
Re: Connecting to a i2c sensor and a GPS
thanks but if you are not using the xilinx sdk way then how you are simulating all these programs(gpslogger.c,gps_rp.c,nmea_rp.c,uart_rp.c,gps_rp.h,nmea_rp.h,uart_rp.h ) simultaneously and acquiring GPS values?
Regards
Mahi
Regards
Mahi
-
- Posts: 4
- Joined: Wed Oct 28, 2015 5:28 pm
Re: Connecting to a i2c sensor and a GPS
I'm not simulating. I have the sensors connected to the RedPitaya and see the values coming from them directly.
Regards,
--
Horacio
Regards,
--
Horacio
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 36 guests