Search found 1676 matches

by ag123
Sun Sep 26, 2021 5:16 pm
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6317

Re: PWM and OneShot on TIM2 and TIM3

I think generally the HardwareTimer API is modelled after generic 'square waves' signal train, flexibly with PWM and interrupts etc. I've not dug into 'oneshot' mode as, more commonly, I used the timer interrupt call back to simply drive my codes. e.g. blink a led in a simple case. I did notice that...
by ag123
Sun Sep 26, 2021 4:42 pm
Forum: General discussion
Topic: Stm32 stocking?
Replies: 4
Views: 1627

Re: Stm32 stocking?

It is probably easier to get an answer on ST's community forums about it, some items from a local stockist is on backorder only, and I don't think it is simply a matter of wanting to do JIT. The semiconductor shortage is precisely this, microcontrollers. As it seemed, there are fewer issues buying e...
by ag123
Sat Sep 25, 2021 9:11 pm
Forum: Off topic
Topic: fake lm35dz temperature sensors
Replies: 47
Views: 40133

Re: fake lm35dz temperature sensors

dannyf thanks The earlier LM35DZ, I got from AliExpress, didn't work. The current temperature sensors I used are LMT86 . I got them from Farnell element14. They are the real ones from TI. I think these can be recommended. The real LMT86 are certainly good for the premium paid. Earlier on, the troub...
by ag123
Sat Sep 25, 2021 6:05 am
Forum: Let us know a bit about you and your projects
Topic: Hello from UK Midlands Area
Replies: 2
Views: 2274

Re: Hello from UK Midlands Area

Hello, Just signed up as was trying to figure the "HardwareTimer.h" library with respect to setting the PWM duty cycle. Found the answer; use setCaptureCompare in a thread and, wow what a great forum. Been doing ucontrollers for some time now mainly PIC24 DsP. Tried an UNO and Arduino IDE...
by ag123
Sat Sep 25, 2021 5:37 am
Forum: Off topic
Topic: fake lm35dz temperature sensors
Replies: 47
Views: 40133

Re: fake lm35dz temperature sensors

I tried this. heating.png this is a bit brutal but that, fortunately, this is a temperature sensor. So I blow off the candle flame once it touches 100 deg C. :lol: 30-100 deg C in 8 secs ! Sample rate, 10 samples / s. The surface temperature at the LMT86 is possibly much higher, because normally the...
by ag123
Fri Sep 24, 2021 7:31 pm
Forum: General discussion
Topic: Hardware Serial-USART-synchronous mode or asynchronous mode
Replies: 6
Views: 4537

Re: Hardware Serial-USART-synchronous mode or asynchronous mode

For 'synchronous' comms, try something with SPI, such as an SPI LCD. Once you figured that out, U 'synchronous' RT
https://en.wikipedia.org/wiki/Universal ... ransmitter
becomes easier to understand
by ag123
Fri Sep 24, 2021 1:21 pm
Forum: Off topic
Topic: fake lm35dz temperature sensors
Replies: 47
Views: 40133

Re: fake lm35dz temperature sensors

Tests with the 1nF in place at the op amp input to GND, this is with the LMV358 op amp, long antenna style wires for the probe, the probe LMT86, an extra 220 uF from 3.3v to GND (bypass capacitor, to bypass all that radio waves on the power supply lines) https://community.st.com/sfc/servlet.shepherd...
by ag123
Fri Sep 24, 2021 1:09 pm
Forum: Off topic
Topic: fake lm35dz temperature sensors
Replies: 47
Views: 40133

Re: fake lm35dz temperature sensors

I tried patching a 1 nF cap at the ADC input as an RC filter.
bode plot looks like this C = 1nF, R = 44 k ohms (LMT86)
1nf bode plot
1nf bode plot
rc1nf.png (10.76 KiB) Viewed 22702 times
-3dB cutoff at 3.6 kHz

step response looks like this
1nf rc step response
1nf rc step response
rcstep1nf.png (7.9 KiB) Viewed 22702 times
looks good.
by ag123
Thu Sep 23, 2021 12:04 pm
Forum: General discussion
Topic: Appropriate low-power mode for timing applications
Replies: 17
Views: 7465

Re: Appropriate low-power mode for timing applications

You can experiment with hardware timers to see if those timer interrupts works in deep sleep modes. I've not tried such yet.
If those works, then it is a solution, as it can drive the interrupts at the frequency you need.
You may like to search app notes from ST to see if there are things about that.
by ag123
Thu Sep 23, 2021 10:22 am
Forum: General discussion
Topic: Appropriate low-power mode for timing applications
Replies: 17
Views: 7465

Re: Appropriate low-power mode for timing applications

Well, one way though, for timing critical apps, a hardware timer gives the best precision and predictability. That may be useful for timing sensitive apps such as interfacing a sensor over comms etc. But it would cost some power. And I'm not too sure how that works in deep sleep etc, my guess is the...

Go to advanced search