Search found 125 matches

by fredbox
Thu Jan 14, 2021 4:28 am
Forum: General discussion
Topic: [SOLVED] Temp sensor DS18B20 on STM32 sometimes read 85
Replies: 13
Views: 10970

Re: Temp sensor DS18B20 on STM32 sometimes read 85

Assuming the schematic is for a carrier board that holds the blue pill board, I would first power the blue pill separately and just hook up the sensor. If that works, I would hook up the other used pins one at a time until the problem reappears. I read somewhere that the pins going to the crystals n...
by fredbox
Thu Jan 07, 2021 3:02 pm
Forum: General discussion
Topic: [SOLVED] Temp sensor DS18B20 on STM32 sometimes read 85
Replies: 13
Views: 10970

Re: Temp sensor DS18B20 on STM32 sometimes read 85

PB5 - I copied and pasted your code without any modification. +------+ | Vcc |---+-----+------> 3.3V | | | | | | | | | 4.7K resistor | | | | | Data |---------+------> PB5 | | | | | --- | | --- 0.1uf capacitor | | | | GND |---+------------>GND +------+ DS18B20 Mine is one of those waterproof sensors ...
by fredbox
Thu Jan 07, 2021 6:24 am
Forum: General discussion
Topic: [SOLVED] Temp sensor DS18B20 on STM32 sometimes read 85
Replies: 13
Views: 10970

Re: Temp sensor DS18B20 on STM32 sometimes read 85

Your code seems to work on my sensor. I'm not seeing any unexpected readings.
I have a 0.1uf capacitor across 3.3v and GND, but it is mostly there to have a place to land the dupont wires.
I am using same board and core as you.
by fredbox
Tue Dec 22, 2020 5:16 am
Forum: STM32F1 based boards
Topic: Overriding yield() prevents sketch from starting
Replies: 3
Views: 7111

Re: Overriding yield() prevents sketch from starting

TM1637 devices have a maximum clock frequency of 250 kHz. A delay time of 4-5 microseconds should be plenty. Also, these displays are simple enough that you really don't need a dedicated library. See https://github.com/moozzyk/TM1637Clock for an example of communications without a library.
by fredbox
Fri Dec 18, 2020 7:58 pm
Forum: Projects
Topic: Goertzel for stm32f103 LCD
Replies: 17
Views: 9805

Re: Goertzel for stm32f103 LCD

You might find some useful info here: https://github.com/jmharvey1/STM32_CWDecoder. The tone detection has been solved using a timer interrupt.
by fredbox
Thu Dec 17, 2020 7:21 pm
Forum: Projects
Topic: Goertzel for stm32f103 LCD
Replies: 17
Views: 9805

Re: Goertzel for stm32f103

Replacing _N in Goertzel.cpp as advised by fpiSTM allows the example program to compile without error. This will probably need more work to actually do something useful as the CPU frequencies are quite different between the two processors. 26 int _Number; 48 _Number=MAXN; 50 _Number=N; Sketch uses 2...
by fredbox
Sat Nov 28, 2020 6:45 am
Forum: General discussion
Topic: [Solved] I need to return a single value from incoming serial data...
Replies: 37
Views: 19337

Re: I need to return a single value from incoming serial data...

P.S. If someone suggest me a best e-book to learn arduino programming, I'll be so grateful to ya. Thanks in advance. The book I started with many years ago and still use as a reference is "Arduino Cookbook." See https://books.google.com/books?id=raHyKejOBF4C&pg=PA142#v=onepage&q&a...
by fredbox
Tue Nov 24, 2020 6:36 pm
Forum: IDE's
Topic: How to access Roger's libraries
Replies: 8
Views: 5597

Re: How to access Roger's libraries

24C256 modules are cheap and available from the usual sources. This gives you 32K of EEPROM to use as you see fit. There are libraries that support these devices, although basic read/write is easy enough that you can access the part directly without any extra libraries. See http://www.learningaboute...
by fredbox
Thu Oct 29, 2020 10:05 pm
Forum: General discussion
Topic: STM32f401 upload
Replies: 1
Views: 2877

Re: STM32f401 upload

STM32F401 has DFU mode built in. Set Boot0=1 and upload method to STM32CubeProgrammer (DFU). With USB port connected, press reset and upload. Your program should start automatically. During development, you can leave Boot0=1, putting it back to 0 when you are finished coding. If you need serial outp...
by fredbox
Thu Oct 29, 2020 9:22 pm
Forum: Ideas & suggestions
Topic: Feature Request: Split the core in boards-manager into multiple categories
Replies: 6
Views: 8699

Re: Feature Request: Split the core in boards-manager into multiple categories

STM32 tools: 740 KB for Linux/Mac, 2.5MB for windows
My STM32CubeProgrammer folder is 100+ megabytes. OS is Linux Mint 20.

Go to advanced search