Search found 94 matches

by mlundin
Tue Jun 15, 2021 12:44 pm
Forum: General discussion
Topic: Compile time so slow
Replies: 34
Views: 21710

Re: Compile time so slow

One thing that might help is to make sure the Preferences Show detaild (Build) information are unchecked.
Otherwise even for files that are prebuilt one line of information about not recompiling is printed
by mlundin
Wed Jun 02, 2021 3:02 pm
Forum: Libraries & Hardware
Topic: Analog pin reading
Replies: 9
Views: 6424

Re: Analog pin reading

Problem with analog inputs on this specific pin PC4 or on all analog input pins ?

The settings to the ADC is handled by the analogRead function.
by mlundin
Wed Jun 02, 2021 1:35 pm
Forum: Libraries & Hardware
Topic: Analog pin reading
Replies: 9
Views: 6424

Re: Analog pin reading

I am using a Nucleo 64 L476RG card, connects the A3 pin, dac out, to PC4. STM32dino v2, select board Nucleo 64 and partnumber Nucleo L476RG Arduino serial monitor pinMode(PC4, INPUT); is not needed, analogRead does the pin configuration. check the input voltage with a multimeter. Following code work...
by mlundin
Wed Jun 02, 2021 12:52 pm
Forum: Libraries & Hardware
Topic: Analog pin reading
Replies: 9
Views: 6424

Re: Analog pin reading

Should work, can you show circuit diagram and complete code ?
by mlundin
Tue Jun 01, 2021 3:54 pm
Forum: General discussion
Topic: Problem of interfacing MLX90614 with stm32 bluePill
Replies: 6
Views: 3203

Re: Problem of interfacing MLX90614 with stm32 bluePill

It also seems that the BluePill variant uses PB6 and PB7 as default I2C
by mlundin
Tue Jun 01, 2021 3:28 pm
Forum: General discussion
Topic: Problem of interfacing MLX90614 with stm32 bluePill
Replies: 6
Views: 3203

Re: Problem of interfacing MLX90614 with stm32 bluePill

First try the "Examples/Wire/i2c_scanner" sketch to check the basic i2c communication and that your sensor board is recognised.
by mlundin
Mon May 31, 2021 12:34 pm
Forum: Projects
Topic: STM32 GPSDO
Replies: 57
Views: 941352

Re: STM32 GPSDO

The TIC circuit, HC4046 plus D1, R1 and C1 measures the phase relation between the oscillator divided down to 1MHz and the PPS1. The output voltage over C! that is then read by the ADC is an increasing (not really linear, more exponentially increasing so the initial slope is more or less linear) fun...
by mlundin
Sun May 30, 2021 6:04 am
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: Verify HS clock source?
Replies: 3
Views: 3081

Re: Verify HS clock source?

You can check the RCC_CR and RCC_PLLCFGR to see what clocks are running and what source is selected for the PLL Serial.printf("RCC_CR 0x%08X \n", RCC->CR); Serial.printf("RCC_CFGR 0x%08X \n", RCC->CFGR); Serial.printf("RCC_PLLCFGR 0x%08X \n", RCC->PLLCFGR); Details of t...
by mlundin
Sat May 29, 2021 10:30 am
Forum: Code snippets
Topic: Demonstration of STM32F series floating point math precision
Replies: 3
Views: 7952

Re: Demonstration of STM32F series floating point math precision

Thats double, 64 bits with range 2.22507385850720138e-308 to 1.79769313486231571e+308 (normalized values) that is seventeen decimal place approx and its not hardware accelerated, so good for accuracy with limited use. The STM32F4 (CortexM4F) has single precision hardware float with range 1.175494351...
by mlundin
Fri May 28, 2021 3:41 pm
Forum: General discussion
Topic: Project Configuration designed for Arduino Uno
Replies: 3
Views: 2493

Re: Project Configuration designed for Arduino Uno

Having to guess what your code looks like makes it hard to give any help.

How was the other serial ports used, initiated and what was the result ??

Go to advanced search