|
Post by dcorwith on Jan 12, 2023 17:53:06 GMT
Dear Botletics Forum: I am trying to connect a Adafruit SAMD RFM95x board to the Botletics. Following your pinout from the Github forum: This is what I have:
-----------------------From Github Pinouts---------------------
- If you're wiring up the shield to an external microcontroller board, then you can use a quick and dirty trick to avoid having to set the solder jumper above. All you have to do is make the following key connections (MCU --> Shield):
GND --> GND 3.3V --> 5V (this will make the shield operate on 3.3V instead of 5V) 3.3V TX --> Shield RX (D11) 3.3V RX --> Shield TX (D10) GPIO --> Shield pin D6 (PWRKEY pin) SCL/SDA if you want to use the temperature sensor Plug in 3.7V LiPo battery into the shield (see notes below!) ----------------------------------------------------------- I connected the Adafruit RFM95x as follows:
RFM95x Botletics Shield GND to GND 3.3 v to VBat (Thiis works and powers both chips ok) Rx D0 to TX D10 Tx D1 to RX D11
I downloaded the SAMD example code and uploaded/flashed the SAMD RFM95x
I only get AT and it can't find the SIM7000 and times out.
Question: The code has // For botletics SIM7000 shield #define BOTLETICS_PWRKEY 6 #define RST 7 #define DTR 8 // Connect with solder jumper #define RI 9 // Need to enable via AT commands #define T_ALERT 12 // Connect with solder jumper
But this would define the SAMD RFM95x pins not the Botletics pins???
Thanks in advance on how to configure these two chips. regards, DCorwith
|
|
|
Post by Botletics on Jan 12, 2023 19:24:58 GMT
Hi there, Those pin definitions in Arduino IDE define the microcontroller pins you will be using. For example, "RST" will be pin 7 on the microcontroller, DTR will be pin 8 on the microcontroller... Maybe the name "BOTLETICS_PWRKEY" is a bit confusing and I should change it. One thing you need to notice is that the Adafruit Feather M0 with RFM95 board has LiPo battery charging circuitry. Since the Botletics SIM7000 shield has LiPo charging as well, you will want to just use the LiPo charging on the Adafruit Feather. However, you will still need to tether the LiPo battery voltage to the VBAT pin on the shield (NOT 3.3V). So to summarize the connections you will need: Feather M0 --> SIM7000 shield - Connect LiPo battery to the Feather's JST connector
- GND -> GND
- BAT -> VBAT to actually power the SIM7000 module with the LiPo battery
- 3.3V -> 5V so that the SIM7000 operates on 3.3V logic voltage
- Any TX pin on Feather --> Shield RX (marked "11"). Feather's TX pin to be defined in code
- Any RX pin on Feather --> Shield TX (marked "10"). Feather's RX pin to be defined in code
- SCL/SDA if you want to use the temperature sensor
- Feather GPIO --> Shield pin 6 (PWRKEY pin). Define Feather GPIO in code
|
|
|
Post by dcorwith on Jan 14, 2023 9:42:22 GMT
Tim Thanks for the reply. I'll make the changes. I'm still a little confused on the code:
Do I need to write two separate sketchs? One for the Feather MO and also for the SIM7000? Otherwise how do I define the pins for two different boards?
|
|
|
Post by Botletics on Jan 14, 2023 13:59:22 GMT
No, only one sketch. You only need to define the pins on the microcontroller (Feather M0) because that's what you're sending the code to. The pins on the SIM7000 board only guide you how to connect the microcontroller to the SIM7000. The SIM7000 shield was designed to sit on top of an Arduino Uno, so in that case, the pin definitions for Arduino in the code are the same as the physical pins you use to connect to the shield. But here you're using a different microcontroller so you just need to change the pin definitions for your microcontroller.
|
|
|
Post by dcorwith on Jan 21, 2023 3:29:49 GMT
Thanks!
|
|