belyalov / stm32-hal-libraries Goto Github PK
View Code? Open in Web Editor NEWUseful libraries for STM32 HAL
License: MIT License
Useful libraries for STM32 HAL
License: MIT License
Hello, I would like to use your library for SX1276. But I have a problem with verifying the version of the module. I get an answer of 0 and if I switch the MISO with MOSI I will get 255. I have already tried a different connections and I use reset LoRa modul using the RST pin, but still without results.
Hi,
I am using B-L072Z-LRWAN1 kit including CMWX1ZZABZ-091 module. You mentioned that;
// SX1276 compatible module connected to SPI1, NSS pin connected to GPIO with label LORA_NSS uint8_t res = lora_init(&lora, &hspi1, LORA_NSS_GPIO_Port, LORA_NSS_Pin, LORA_BASE_FREQUENCY_US); if (res != LORA_OK) { // Initialization failed }
But after I've created a new project with CubeMx for B-L072Z-LRWAN1 kit it shows Hardware NSS Signal is disable by default and when I check code it shown as SPI_NSS_SOFT. at init struct.
So what should I do? I am a bit confused about that.
Thank you.
Hello,
I tried your SHTC3 library, it works well with STM32, but I decided to transfer the code to Raspberry PICO. So basically the only thing we need to replace is the HAL functions with Raspberry PICO C/C++ SDK functions: i2c_write_blocking
and i2c_read_blocking
I have done this with other libraries and all work, but for some unknown weird reason, this library (SHTC3) does not work, I mean the sensor does not respond, no temp, no ID, no humidity, and all are returned 0. C code is C code for whatever hardware, but why does this happen?! do you have any idea?
Hello. I use your library to test SX1276 LoRa modules on STM32L031. It seems to be working fine, however I have got one question saving current consumption. For my particular application, when the sender sends a message, I want it to enter deep sleep. I use the following code for sending a message:
uint8_t res2 = lora_send_packet(&lora, (uint8_t *)"test", 4);
if (res2 != LORA_OK) {
printf("send failed \n");
}
else{
printf("send sucessfull \n");
//enter sleep mode
}
Is there a function that I need to call to put the SX1276 into low power mode or it goes to low power mode automatically after sending a message? I would very much appreciate clarification. Thanks in advance.
I tried the code, when I see the res value it gives me 0 when everything is configured, but I can't transmit or receive. My module is rfm95 (sx1276). I configured SPI and NSS as output and DIO_0 as interrupt. Does the module reset have to remain unplugged?
if I leave the following line of code I don't read res:
uint8_t res = lora_send_packet(&lora, (uint8_t *)"test", 4);
if (res != LORA_OK) {
// Send failed
}
if I put res == 0
instead I continue but I don't transmit
Hey,
I'm currently using your Si7021 driver implementation on a STM32F4Discovery and I was wondering why, to measure humidity and temperature, you were using
res = HAL_I2C_Master_Receive(hi2c, SI7021_ADDRESS_READ, si7021_buf, 3, 100);
Why are you reading 3 bytes ? Are you reading the checksum too ?
The doc says the checksum is optional, so 2 bytes should work as well right ?
Thanks.
Thanks for making this library available, saved me a lot of time.
However, when using this library I did notice there was a mistake in the lora_set_signal_bandwidth function.
The new bandwidth value is OR'd with the old value instead of replacing it. You can see the line I replaced it with below, it seems to work well.
with lora sx1276 when pin nss is connected it doesn't start the code, when i disconect it the serial monitor start printing
Hi!
Your code is great. Did you ever tried to use it with newer SX1268 modules? I'm not sure if I pick one of these SPI modules or the UART version which are easier to work with, since SX12xx have more output power.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.