[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 561: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 617: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
SparqEE Forum • GPS and ACCEL via ShieldRv1 on Raspberry Pi?
Page 1 of 2

GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Tue Sep 01, 2015 4:30 pm
by sensense

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Tue Sep 01, 2015 7:48 pm
by donjohnii
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.

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Thu Sep 17, 2015 2:16 am
by wtbgagoa
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.

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Thu Sep 17, 2015 5:02 am
by donjohnii
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.

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Thu Sep 17, 2015 5:36 am
by wtbgagoa
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.

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Thu Sep 17, 2015 5:38 am
by donjohnii

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Thu Sep 17, 2015 6:10 am
by wtbgagoa
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.

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Thu Sep 17, 2015 6:22 am
by donjohnii

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Fri Sep 18, 2015 1:23 am
by wtbgagoa
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.

Re: GPS and ACCEL via ShieldRv1 on Raspberry Pi?

Posted: Sat Sep 19, 2015 8:04 am
by donjohnii
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