Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

LoRa Bonnet on Google Coral using Circuit Python
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

LoRa Bonnet on Google Coral using Circuit Python

by robotastic on Thu Jun 11, 2020 2:07 pm

Is there any way to get the LoRa Bonnet to work on a Google Coral dev board? It looks like the GPIO Pins are mapped differently on the Coral. I followed the guide on remapping for the Coral: https://learn.adafruit.com/circuitpytho ... a?view=all

However, it looks like some of the pins that the Bonnet uses are mapped to SPI lines on the Coral.
https://learn.adafruit.com/adafruit-rad ... ts/pinouts

The Bonnet uses Pi Pin #22 for CS, on the Coral, that is mapped to ECSPI_SS1. This is not mapped through in Blinka. Pi Pin #22 is used for reset and on the Coral that maps to GPIO_140, which is not mapped through either....

Has anyone gotten at least the LoRa portion of the Bonnet to work with the Coral? Is this theoretically possible? Any tips?

robotastic
 
Posts: 1
Joined: Thu Sep 05, 2019 9:54 pm

Re: LoRa Bonnet on Google Coral using Circuit Python

by siddacious on Tue Jun 30, 2020 12:42 pm

I'll pass this along to someone who can help

siddacious
 
Posts: 271
Joined: Fri Apr 21, 2017 3:09 pm

Re: LoRa Bonnet on Google Coral using Circuit Python

by MakerMelissa on Tue Jun 30, 2020 3:05 pm

Hi,

In theory it might be possible. However, there was likely a reason they weren't added such as they possibly didn't work. If you want to attempt to add it, what you would need to do is edit some of the Blinka files. I'll point you to the files on our Github Repository. You should be able to do a
Code: Select all | TOGGLE FULL SIZE
pip3 show adafruit-blinka
to get the location of the files on your device.

First edit https://github.com/adafruit/Adafruit_Blinka/blob/master/src/adafruit_blinka/microcontroller/nxp_imx8m/pin.py

For GPIO140, it's likely to be:
Code: Select all | TOGGLE FULL SIZE
GPIO140 = Pin((4, 12))  # GPIO5_IO12


For ECSPI_SS1, I'm not sure. Possibly it's
Code: Select all | TOGGLE FULL SIZE
ECSPI1_SS1 = Pin(132)
.

Next you'll need to edit https://github.com/adafruit/Adafruit_Blinka/blob/master/src/adafruit_blinka/board/coral_edge_tpu.py
You want to add pins to point to the ones you just defined.

The only way to know for certain would be to try it out. Please let me know if you have any additional questions or if you're able to get it working. We could add those in permanently if that's the case.

Melissa

MakerMelissa
 
Posts: 146
Joined: Wed Jun 05, 2013 2:10 am

Please be positive and constructive with your questions and comments.