2018-12-11 10:46 AM
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?
Solved! Go to Solution.
2018-12-11 02:37 PM
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
2018-12-11 11:47 AM
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
2018-12-11 02:37 PM
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
2018-12-11 02:46 PM
#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
2020-12-14 10:34 AM
Where the old blog post ended up
https://community.st.com/s/feed/0D50X00009bLS7uSAG
2023-08-14 09:00 AM
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 ?
2023-08-16 02:55 AM
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
2023-11-21 10:08 AM
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.
2023-11-21 11:59 AM
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