GithubHelp home page GithubHelp logo

belyalov / stm32-hal-libraries Goto Github PK

View Code? Open in Web Editor NEW
78.0 2.0 16.0 149 KB

Useful libraries for STM32 HAL

License: MIT License

C 78.43% Makefile 2.13% C++ 19.44%
stm32 stm32-hal lora tiny-library si7021 c ring-buffer veml6030 shtc3

stm32-hal-libraries's People

Contributors

belyalov avatar guilyx avatar lorant124 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stm32-hal-libraries's Issues

LoRa version problem

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.

About LoRa and NSS

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.

Problem with PICO

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?

LoRa deep sleep

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.

LoRa undeclared

Hello, I am trying to use your lora sx1276 library but when trying to compile the program it tells me that the initialization variables are not declared, could it be that I need to add something else?
I would greatly appreciate your help
error undeclared

sx1276 not working

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

Checksum

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.

Set signal_bandwidth error

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.

image

issue with lora sx1276 nss pin

with lora sx1276 when pin nss is connected it doesn't start the code, when i disconect it the serial monitor start printing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.