Search found 146 matches

by ozcar
Wed Sep 27, 2023 9:25 pm
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 3373

Re: Problem with mils not working with max6675 library.

When using classic milis processing if ((millis()-timer ) >= 500) { temp1 = thermocouple.readCelsius(); Serial.println(thermocouple.readCelsius()); timer = millis(); } Maybe you need to explain more as to what the problem actually is. Does the code as you showed work OK, but stops working if you re...
by ozcar
Thu Aug 24, 2023 10:33 pm
Forum: Projects
Topic: Voltage divider on Nucleo STM32L452RE bad accuracy
Replies: 8
Views: 7017

Re: Voltage divider on Nucleo STM32L452RE bad accuracy

With less than 500nA through the resistors, have you checked the input leakage current specifications?
by ozcar
Mon Jul 31, 2023 2:57 am
Forum: Libraries & Hardware
Topic: PWM pin in STM32F103C8 blue pill
Replies: 8
Views: 7709

Re: PWM pin in STM32F103C8 blue pill

This is the basic code:- ... I checked the PWM pins according to the following pin diagram:- https://how2electronics.com/wp-content/uploads/2019/02/STM32-Pin-Details.jpg Your link also does not work for me, so I'm not sure what you were working from. From what you said before, I got the impression ...
by ozcar
Sun Jul 30, 2023 2:18 am
Forum: Libraries & Hardware
Topic: PWM pin in STM32F103C8 blue pill
Replies: 8
Views: 7709

Re: PWM pin in STM32F103C8 blue pill

All the meters I have give a sort-of reasonable reading for DC volts on a PWM pin without any filtering. Some meters may be able to measure the frequency, and even duty cycle too. But in any event, there must be some explanation why different pins show different results. In STM32DUINO, analogWrite()...
by ozcar
Sat Jul 29, 2023 11:59 am
Forum: General discussion
Topic: Bluepill: 2 different timers to read 2 different FREQS
Replies: 17
Views: 2324

Re: Bluepill: 2 different timers to read 2 different FREQS

Well the first thing that confused me was the whole channel thing (cause there are no "channel" in atmega328 world) Now I'm starting to think about a channel, and the starting point is that all the frequencies should be "related" or "not too different" to share the sam...
by ozcar
Thu Jul 27, 2023 5:51 am
Forum: General discussion
Topic: Bluepill: 2 different timers to read 2 different FREQS
Replies: 17
Views: 2324

Re: Bluepill: 2 different timers to read 2 different FREQS

I've 2 digital signals to read/measure: A: car tachometer data (typically 2pulses/Revolution in 4 cylinder engines) B: car speedometer data (lets say 1000pulses/KM) Both of them are not strictly releated each other... I want the average cpu cycles lenght of each pulses, to calculate its freqs, and ...
by ozcar
Mon Jul 24, 2023 6:13 am
Forum: Custom design boards
Topic: STM35F103VCT6 blink LED issue
Replies: 3
Views: 5937

Re: STM35F103VCT6 blink LED issue

I'm sort-of wondering if perhaps the original firmware made use of watchdog and this is still getting activated via the option bytes. I'm not familiar with the "ST demonstrator" that you said you used so I don't know whether you could have "erased" the device without rewriting th...
by ozcar
Sun Feb 26, 2023 9:29 pm
Forum: General discussion
Topic: Control time of a function's execution time
Replies: 13
Views: 1834

Re: Control time of a function's execution time

before and after the mentioned while loop in normal situation, they are 0 and 8, respectively. that means that the routine returns execution to the main loop, just with the unexpected value (8). you will need to see 1) why it returns that value; and 2) how you would continue execution if that value...
by ozcar
Sun Feb 19, 2023 9:08 pm
Forum: General discussion
Topic: Control time of a function's execution time
Replies: 13
Views: 1834

Re: Control time of a function's execution time

Thank you! Does this differ from the following method for 1000 ms that I have already implemented. long cnt = millis(); while (!myCAM.get_bit(ARDUCHIP_TRIG , CAP_DONE_MASK)) if (millis()-cnt>1000) break; If it is different, please let me know how to define cnt and TIMEOUT_CNT . No real difference, ...
by ozcar
Thu Jan 05, 2023 8:14 pm
Forum: General discussion
Topic: maple upload via cmd
Replies: 5
Views: 1606

Re: maple upload via cmd

,,, after installing java 'java' is not recognized as an internal or external command, operable program or batch file The error is gone. However, the following error is output. # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0...

Go to advanced search