SparkFun Forums 

Where electronics enthusiasts find answers.

Tips and questions relating to the GPS modules from SFE
By ElMiguel
#31838
Hello!

I'm trying to send/receive bytes from GM862-GPS to AtMega88 through SPI-bus.

I have connected GM862 to Mega88 as follows:
GM862----Mega88
GPIO3----SCLK
GPIO4----MOSI
GPIO5----MISO
GPIO6----RST

So I import, create and initialize the bus:
Code: Select all
import SPI
SPIbus=SPI.new(3,4,5)
SPIbus.init(0,0)
SPIbus.sendbyte(0xAC)
Everything works fine until I run the "sendbyte" command. That's when the script stops.

I don't have SS-signal wired between GM and Mega. Does AtMega88 require SS-signal when enabling SPI-bus as slave? I cannot wire the SS-signal anymore on my proto board (well I can but it's pretty difficult). I also tried grounding the SS-pin on Mega88. Is there any other solution than wiring the SS?

I can successfully set pin values with the GPIO build-in module etc...
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]