Search found 12 matches

by geologic
Wed Mar 20, 2024 11:49 am
Forum: General discussion
Topic: Related to ‘WATCHDOG’ function
Replies: 1
Views: 338

Re: Related to ‘WATCHDOG’ function

Check IWatchdog library, but remind after started, watchdog cannot be stopped, you have to periodically "kick the dog"
by geologic
Wed Mar 20, 2024 11:45 am
Forum: General discussion
Topic: ToneAC on stm32
Replies: 1
Views: 609

ToneAC on stm32

Hi all

I've used ToneAC library with arduino Uno (https://bitbucket.org/teckel12/arduino-toneac/wiki/Home), i tried to compile it with STM32duino but it is not compatible.
Do you know any alternative? I would like to play some louder sounds than tone library on a passive buzzer.

Thanks
by geologic
Tue Dec 05, 2023 5:17 pm
Forum: General discussion
Topic: #ifdef not working
Replies: 3
Views: 9859

#ifdef not working

Hi all In Arduino IDE i have this at my main code: #define TODAY #include "todayLib.h" and this on my todayLib.c library file: #ifdef TODAY Serial.print("Now is Today"); #else Serial.print("Now is not Today"); #endif If i run this code i see "Now is not Today"...
by geologic
Mon Nov 13, 2023 10:36 pm
Forum: General discussion
Topic: hardware serial for GSM
Replies: 4
Views: 4520

Re: hardware serial for GSM

After your confirmation that HardwareSerial Serial2(PA3, PA2); was the right syntax, i narrowed the problem to a simple swap TX and RX pins on the GSM side.

Thanks fpiSTM for your help, you point me into the right direction.
by geologic
Mon Nov 13, 2023 12:13 pm
Forum: General discussion
Topic: current in deepSleep mode STM32F103C8, STM32F401CC
Replies: 10
Views: 10757

Re: current in deepSleep mode STM32F103C8, STM32F401CC

How are you powering the devices?
Blackpill have AP7343 regulator, Bluepill have TX6211B regulator, check the datasheet.
by geologic
Mon Nov 13, 2023 11:43 am
Forum: General discussion
Topic: hardware serial for GSM
Replies: 4
Views: 4520

hardware serial for GSM

Hi All I've made a custom board with STM32L051 IC and i'm using Arduino_Core_STM32. I created a variant based on L051C(6-8)(T-U) example and changed Serial to UART1 (PA9,PA10 pins). My variant_mydevice.h looks like: // UART Definitions #ifndef SERIAL_UART_INSTANCE #define SERIAL_UART_INSTANCE 0 #end...
by geologic
Mon Sep 04, 2023 3:37 pm
Forum: General discussion
Topic: Disabling Watchdog
Replies: 4
Views: 759

Re: Disabling Watchdog

I'm doing a batery operated project, i'm saving all uA i can... now i have to wake like every 20 seconds just to kick the watchdog ass... Too bad... :(

Thank's guys for your help.
by geologic
Sun Sep 03, 2023 7:57 pm
Forum: General discussion
Topic: Disabling Watchdog
Replies: 4
Views: 759

Disabling Watchdog

Hi I'm using STM32 core on a Nucleo64 board. The board is most of the time sleeping and sometimes it wakes from sleep to grab some sensors data and send it to a server. I want to implement a watchdog only on the "wake" part of the code, and i tried the IWatchdog library. the problem is whe...
by geologic
Mon Feb 13, 2023 12:09 pm
Forum: Custom design boards
Topic: LSE RTC crystal drift
Replies: 4
Views: 5071

Re: LSE RTC crystal drift

I tried with different cap values but didn't make any difference.
Last i changed the crystal and LSI start working, so the problem was a bad/defective crystal.

Thank's all for your help.
by geologic
Tue Feb 07, 2023 6:27 pm
Forum: Custom design boards
Topic: LSE RTC crystal drift
Replies: 4
Views: 5071

LSE RTC crystal drift

Hi all I made a custom board based on STM32L052C8T6 with a 32.768Khz crystal (ABS05-32.768kHz-T) and 2x15pF caps. I uploaded simpleRTCAlarm example that fires an alarm every 60 second. If i use the LSI every alarm fires around 58 seconds (measured with my stopwatch). But if i use the LSE every alarm...

Go to advanced search