GPS and ACCEL via ShieldRv1 on Raspberry Pi?

The SparqEE CELLv1.0 device.
sensense
Posts: 1
Joined: Tue Sep 01, 2015 4:18 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby sensense » Tue Sep 01, 2015 4:30 pm


User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby donjohnii » Tue Sep 01, 2015 7:48 pm

The schematic needs to be looked at:


ACCEL: The accel uses SDA+SDL which is I2C not UART. So you need to check out the RasPi's I2C capability.
GPS: The GPS connects via "a" UART, not the main UART. If it were the main UART, it would collide with the CELLv1.0. The second UART needs to be connected via a software serial connection over the RasPi 19 and 21 with RX and TX respectively.

wtbgagoa
Posts: 5
Joined: Thu Sep 17, 2015 1:50 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby wtbgagoa » Thu Sep 17, 2015 2:16 am

Dear developers,

I bought the SparqEE ShieldRv1.0 in order to connect the GPS board (I don't intend to use the Cellv.1.0, I just need the GPS). In the SparqEE product reference site it is stated that (I quote)
"In addition, breakouts are provided for the four additional SparqEE boards (ACCELv1.0, GPSv1.0, POWERv1.0, RELAYv1.0) if the user prefers to directly connect any of those boards to the shield."
However, your answer says that also a "software serial connection over the RasPi 19 and 21 with RX and TX" is required to make the GPS work.

Could you please:

1 detail how the "software serial connection over the RasPi 19 and 21 with RX and TX" can be carried out ?

2 upload to the product reference page the code which sets the "software serial connection" or at least state clearly that additional coding and knowledge is needed to connect the four additional boards. Pictures of the other boards connected to the shield would be also very welcome. In this way when we buy the shield we will know accurately what we need to do to make the additional boards work with the shield.

Thank you very much for your assistance.

Alfonso.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby donjohnii » Thu Sep 17, 2015 5:02 am

There are several ways to connect into the PI and various configurations.

The mounting holes were a request from kickstarter and are consistent with our other shields.

The raspi only has one hw uart broken out.

Anything custom is up to the user to implement.

wtbgagoa
Posts: 5
Joined: Thu Sep 17, 2015 1:50 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby wtbgagoa » Thu Sep 17, 2015 5:36 am

Conclusion:

the ShieldRv1 cannot be used with boards other than Cellv1 unless you write a "serial software solution" yourself. Would be nice to have some additional documentation or references about this ...

Thanks anyway for the clarifications.

Alfonso.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby donjohnii » Thu Sep 17, 2015 5:38 am


wtbgagoa
Posts: 5
Joined: Thu Sep 17, 2015 1:50 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby wtbgagoa » Thu Sep 17, 2015 6:10 am

Just to make sure that I understand correctly:

The side metal pins in the shield have the same role as the pins found in r-pi.

the two black rows of connectors in the central part of the shield are only to connect Cellv1 and nothing else.

the mounting holes are for other boards but in order to use them we need more than 1 UART and thus a "serial software" solution.

Am I correct ?

Thanks again.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby donjohnii » Thu Sep 17, 2015 6:22 am


wtbgagoa
Posts: 5
Joined: Thu Sep 17, 2015 1:50 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby wtbgagoa » Fri Sep 18, 2015 1:23 am

Thanks for your explanations.
I just want to do something very simple: I want to connect GPSv1 to the ShieldRv1 and get the gps data through r-pi /dev/ttyAMA0 as the user who started this thread explained. I don't plan to connect any other device to the shield, just the GPS. I have jumper wires and a breadboard and I looked at the schematics but It is not clear to me how to do the connections. I must confess that I only have a basic knowledge of circuit theory so I might be missing something elementary.

Is there a simple way of doing what I am asking or is more advanced knowledge needed ?

Thanks again.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Postby donjohnii » Sat Sep 19, 2015 8:04 am

I was thinking about the solution of tying both to the same UART, and I don't think that's a good idea. It might work, but there is no way, without shutting one or the other off, when communicating with the other.

For a GPS read-only device, connecting to a GPIO port and doing a bit-bang solution is the best option. This is really out of our scope, but a few people have asked about it and it interests me so I'll look into it... FYI sooner than later, here's a post that I'll be testing out. If you get a chance to attack it before I do, please post up your results.

This code is meant to get you a "bit-banged" GPS NMEA data (or any serial) over GPIO.
Pretty sweet library: http://abyz.co.uk/rpi/pigpio/python.html
Example: http://raspberrypi.stackexchange.com/qu ... ing-a-uart


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “CELLv1.0”

Who is online

Users browsing this forum: No registered users and 1 guest