cancel
Showing results for 
Search instead for 
Did you mean: 

Which pins can I use as ADC in B-L072Z-LRWAN1 board?

pbdiazam
Associate II

Hi everyone!

I need to have several pins acting as ADCs to get data from different analog sensors connected at the same time. In board's datasheet I see that this board has 1 ADC with multiple channels (12 channels to be precise).

The problem is that CubeMx provides the following ADC channels (channel - pin):

IN0 - PA0

IN1 - PA1

IN2 - PA2

IN3 - PA3

IN4 - PA4

IN5 - PA5

IN6 - PA6

IN7 - PA7

IN8 - PB0

IN9 - PB1

IN10 - PC0

IN11 - PC1

IN12 - PC2

IN0, IN4 and IN5 are working perfectly.

IN2 and IN3 are used by other components so do not work properly.

The rest of the pins are not in the board as you can see here:

https://os.mbed.com/platforms/ST-Discovery-LRWAN1/#board-pinout

What am I missing?

EDIT:

Should I use a multiplexer instead of using multiple ADC channels?

1 ACCEPTED SOLUTION

Accepted Solutions

I had a blog posting on the pins and the connectivity.

Assume that the IC used in the Murata unit has a lot of pins committed to SX1276 support, ie SPI pins, DIO pins etc. It has a WLCSP49 device inside. Absent that look in the hardware support files of the LRWAN software trees.

Broken link to original content

https://community.st.com/community/stm32-community/blog/2017/04/05/lora-discovery-kit

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

8 REPLIES 8

Murata did not bring out all the pins from the STM32L0 embedded into the module.

Multiplexer is one of the options, external ADC maybe another.

JW

I had a blog posting on the pins and the connectivity.

Assume that the IC used in the Murata unit has a lot of pins committed to SX1276 support, ie SPI pins, DIO pins etc. It has a WLCSP49 device inside. Absent that look in the hardware support files of the LRWAN software trees.

Broken link to original content

https://community.st.com/community/stm32-community/blog/2017/04/05/lora-discovery-kit

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

#ifdef B_L072Z_LRWAN1_LORA // B-L072Z-LRWAN1 LoRa Board using the Murta SX1276

#define USER_BUTTON PB_2

#define LED2 PA_5 // Green

#define LED3 PB_6 // Blue

#define LED4 PB_7 // Red

#define LORA_SPI_MOSI PA_7

#define LORA_SPI_MISO PA_6

#define LORA_SPI_SCLK PB_3

#define LORA_CS PA_15

#define LORA_RESET PC_0

#define LORA_DIO0 PB_4

#define LORA_DIO1 PB_1

#define LORA_DIO2 PB_0

#define LORA_DIO3 PC_13

#define LORA_DIO4 PA_5

#define LORA_DIO5 PA_4

#define LORA_ANT_RX PA_1

#define LORA_ANT_TX PC_2

#define LORA_ANT_BOOST PC_1

#define LORA_TCXO PA_12 // 32 MHz

#endif // B_L072Z_LRWAN1_LORA

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Where the old blog post ended up

https://community.st.com/s/feed/0D50X00009bLS7uSAG

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

The forum / blog post didn't survive the last migration. Please fix..

@Amelie ACKERMANN @Kevin HUBER  also can we fix this nightmare user selection dialog, needs a wildcard, and scroll bar, 5 users from 64,000 ?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Hello @Tesla DeLorean,

Thank you for the notice. The post was part of a group, but I have now moved it to the "Wireless (MCU)" forum board: LoRa Discovery Kit - STMicroelectronics Community

If this is not the content you were looking for, please let me know and I can search further. 

Regarding the user selection dialog: do you refer to the selection dialog when tagging a user? 

Best,
Amelie

FPicc.1
Senior

Hello, I have a similar question regarding the NUCLEO STM32WLJC1 board. Which ADCs can I use that won't interfeer in the board processes, such as LoRa and RTC?
OBS: When I use some of the ADCs the debug stops working.

Please open new threads for entirely different hardware. The pins on the Arduino Analogue Rail would seem like the low hanging fruit. Check what pins conflict. Debug might involve PB3, PA13, PA14

https://www.st.com/resource/en/schematic_pack/mb1389-wl55jc-highband-e02_schematic.pdf

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..