Branchements Radio transmeteur RFM9x Lora avec Adafruit Feather 32u4 Adalogger

Je veux brancher : une carte transmetteur RFM9x Lora et un Adafruit Feather 32u4 Adalogger avec le lecteur de carte SD.

Quand je branche ma carte transmetteur RFM9x Lora sur un arduino Uno ça marche bien, voici mes branchements.

LORA Arduino Uno

Vin ----------------- 5V

GND --------------- GND

GO (IRQ) --------- 2

SCK ---------------- D13

MISO -------------- D12

MOSI -------------- D11

CS ------------------ D10

RST ---------------- D9

GND --------------- GND

Je veux le brancher sur une carte Adafruit Feather 32u4 Adalogger.

et j'ai beau faire des teste avec le même programme ça ne marche plus

LORA 32u4 Adalogger.

Vin ----------------- 3,3

GND --------------- GND

GO (IRQ) --------- 2

SCK ---------------- 13

MISO -------------- 12

MOSI -------------- 11

CS ------------------ 10

RST ---------------- 9

GND --------------- GND

Je ne suis pas sûr pour les pin Mise et Moi

où faut'lls les brancher?

Merci

Voici la liste des pins

https://cdn-learn.adafruit.com/assets/assets/000/030/926/original/adafruit_products_2795_pinout_v1_0.png?1457306163

GND - this is the common ground for all power and logic BAT - this is the positive voltage to/from the JST jack for the optional Lipoly battery USB - this is the positive voltage to/from the micro USB jack if connected EN - this is the 3.3V regulator's enable pin. It's pulled up, so connect to ground to disable the 3.3V regulator 3V - this is the output from the 3.3V regulator, it can supply 500mA peak Logic pins This is the general purpose I/O pin set for the microcontroller. All logic is 3.3V

0 / RX - GPIO #0, also receive (input) pin for Serial1 and Interrupt #2

1 / TX - GPIO #1, also transmit (output) pin for Serial1 and Interrupt #3

2 / SDA - GPIO #2, also the I2C (Wire) data pin. There's no pull up on this pin by default so when using with I2C, you may need a 2.2K-10K pullup. Also Interrupt #1

3 / SCL - GPIO #3, also the I2C (Wire) clock pin. There's no pull up on this pin by default so when using with I2C, you may need a 2.2K-10K pullup. Can also do PWM output and act as Interrupt #0.

5 - GPIO #5, can also do PWM output

6 - GPIO #6, can also do PWM output and analog input A7

9 - GPIO #9, also analog input A9 and can do PWM output. This analog input is connected to a voltage divider for the lipoly battery so be aware that this pin naturally 'sits' at around 2VDC due to the resistor divider

10 - GPIO #10, also analog input A10 and can do PWM output.

11 - GPIO #11, can do PWM output.

12 - GPIO #12, also analog input A11

13 - GPIO #13, can do PWM output and is connected to the red LED next to the USB jack

A0 thru A5 - These are each analog input as well as digital I/O pins. SCK/MOSI/MISO - These are the hardware SPI pins, used by the microSD card too! You can use them as everyday GPIO pins if the SD card is not inserted. However, we really recommend keeping them free as they should be kept available for the SD. If they are used, make sure its with a device that will kindly share the SPI bus! Also used to reprogram the chip with an AVR programmer if you need. Micro SD Card + Green LED adafruit_products_sdled.jpg Since not all pins can be brought out to breakouts, due to the small size of the Feather, we use these to control the SD card!

4 - used as the MicroSD card CS (chip select) pin

7 - used as the MicroSD card CD (card detect) pin. If you want to detect when a card is inserted/removed, configure this pin as an input with a pullup. When the pin reads low (0V) then there is no card inserted. When the pin reads high, then a card is in place. It will not tell you if the card is valid, its just a mechanical switch

8 - This pin was also left over, so we tied it to a green LED, its next to the SD card. It might be handy to blink this LED when writing / reading valid data or some other user-alert!

Other Pins! RST - this is the Reset pin, tie to ground to manually reset the AVR, as well as launch the bootloader manually ARef - the analog reference pin. Normally the reference voltage is the same as the chip logic voltage (3.3V) but if you need an alternative analog reference, connect it to this pin and select the external AREF in your firmware. Can't go higher than 3.3V!

Vous avez bien noté que l'interruption 0 sur votre UNO est sur la Pin 2 alors qu'elle est sur la Pin 3 pour le Feather 32u4 Adalogger ?

Les pins SCK/MOSI/MISO ne sont pas en 13,12,11 elles ont des pins dédiées

Si vous avez une carte SD insérée alors il faudra tenir compte du fait que la carte SD utilise aussi des pins et vous assurez que votre code et librairies associées soient capables de partager correctement le bus SPI et gérer le slave sélect

OK donc si je comprend bien, il faut que je branche

LORA 32u4 Adalogger.

Vin ----------------- 3,3

GND --------------- GND

GO (IRQ) --------- 2

SCK ---------------- Sck

MISO -------------- Miso

MOSI -------------- Mois

CS ------------------ comme je veux sauf le 4

RST ---------------- 9

Est-ce bien ça?

Merci JML

2 Deuxième question "code et librairies associées soient capables de partager correctement le bus SPI et gérer le slave sélect"

C'est la première fois que j'entends parler de tous ça. Connaissez-vous des des exemples ou des site qui en parle.

Que faut-il faire pour partager le bus SPI?

Merci.

GO (IRQ) --------- 2

non si vous ne modifiez pas votre code il doit être écrit pour l'interruption 0 qui est sur la Pin 3 du feather alors qu'elle est sur la pin 2 du UNO et OK pour le reste

Pour le SPI vous pouvez commencer par lire cela

MERCI Ça marche ENFIN.

super!

bonne continuation