Search found 13 matches

by geologic
Thu May 02, 2024 9:24 am
Forum: General discussion
Topic: PN532 on SPI not working
Replies: 0
Views: 87

PN532 on SPI not working

Hi all I have a RFID PN532 module with SPI and i tested it with arduino using Adafruit_PN532 library, it works ok. I'm using these pins: #define PN532_SCK 13 #define PN532_MOSI 11 #define PN532_SS 16 #define PN532_MISO 12 Adafruit_PN532 nfc(PN532_SCK, PN532_MISO, PN532_MOSI, PN532_SS); Next i test i...
by geologic
Wed Mar 20, 2024 11:49 am
Forum: General discussion
Topic: Related to ‘WATCHDOG’ function
Replies: 1
Views: 905

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: 818

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: 10707

#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: 5036

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: 11415

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: 5036

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: 775

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: 775

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: 5902

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.

Go to advanced search