Connecting to a i2c sensor and a GPS

Applications, development tools, FPGA, C, WEB
Post Reply
Hopo
Posts: 4
Joined: Wed Oct 28, 2015 5:28 pm

Connecting to a i2c sensor and a GPS

Post by Hopo » Thu Apr 14, 2016 12:35 pm

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

mahi2712
Posts: 7
Joined: Wed Mar 01, 2017 9:27 am

Re: Connecting to a i2c sensor and a GPS

Post by mahi2712 » Mon Mar 27, 2017 12:12 pm

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

Hopo
Posts: 4
Joined: Wed Oct 28, 2015 5:28 pm

Re: Connecting to a i2c sensor and a GPS

Post by Hopo » Mon Mar 27, 2017 12:31 pm

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

mahi2712
Posts: 7
Joined: Wed Mar 01, 2017 9:27 am

Re: Connecting to a i2c sensor and a GPS

Post by mahi2712 » Mon Mar 27, 2017 1:53 pm

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.

Hopo
Posts: 4
Joined: Wed Oct 28, 2015 5:28 pm

Re: Connecting to a i2c sensor and a GPS

Post by Hopo » Mon Mar 27, 2017 2:30 pm

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

mahi2712
Posts: 7
Joined: Wed Mar 01, 2017 9:27 am

Re: Connecting to a i2c sensor and a GPS

Post by mahi2712 » Mon Mar 27, 2017 2:54 pm

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

Hopo
Posts: 4
Joined: Wed Oct 28, 2015 5:28 pm

Re: Connecting to a i2c sensor and a GPS

Post by Hopo » Mon Mar 27, 2017 2:57 pm

I'm not simulating. I have the sensors connected to the RedPitaya and see the values coming from them directly.

Regards,

--
Horacio

Post Reply
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