Relative Content

Tag Archive for cembedded

E-ra IOT platform

im a newbie here. Does anyone know about E-ra IOT platform? I have carried out my small project on it. I have a trouble with my data. I wonder why my hourly flow rate does not reset in every hours? It still stayed at 14.9 L. 14.9L is hourly flow rate at 0h00. I thoght that hourly flow rate should reset in every hours and display on the chart. Unfortunately, it doesnt show hourly flow rate on the chart either since at the midnight.Im using esp32s, ds3231,YF-B1,… Please review my code, i dont know where i was wrong. Hope you guys help me, it means a lot to me. Thx all <33

Embedded C++ classes vs. namespaced free functions

I am using C++ in an embedded environment (ESP32) and have been playing around with different ways of structuring my program. The program isn’t super complex but not so simple that it could all be contained in a single main file.

Simple VAD implementation in CCS

I am getting an error while trying to implement this VAD (Voice Activity Detection) in C using CCS.
I think fread function is not working properly because I am getting num_frames = 1 each time I run it and consequently only frame 0 is considered by the VAD.
Here is my code:

stm32f103c8t6 Timer input capture

As shown in the oscilloscope, the pulse is actually 27us, followed by 32 pulse groups with 5us periods and a duty cycle of 40%, how do I capture 27us pulses again and start counting accurately?