Manxome, I will generate a data file with readings so it is possible to apply different filtering algorithms and see the effect. I think that the noise can be very different in different applications.
The noise from switching regulators can be especially hard to filter as it contains both very large spikes and very high frequencies and also lower frequency ripple that contains the 100kHz or so basic frequency, plus perhaps other lower frequencies that come from load current variations etc. An algorithm that works well for a switcher application may be overkill if you only want a steady reading from a temperature sensor.
Some background to my experiments:
A good quality ADC with 16 bits or higher is definitely much better if measurement accuracy is important. The project I am working on right now will result in a demo board that demonstrates the characteristics of a power converter. The power converter can deliver output voltage that is lower than, equal to or higher than the input voltage. And it can run backwards. So I need a micro controller to make it possible to generate a number of control signals that control the power converter and to keep track of what is happening. Accuracy is not necessarily the top priority for this project. But it is nice to have steady voltage and current readings to display.
A few examples: the output voltage and current limit should be adjustable, operating temperature needs to be monitored so cooling fans can be controlled, different operating modes must be selectable - such as making the converter charge a battery or super capacitor, and then reverse the power flow and use the stored energy to power a load when the main power source fails.
Some people want to use the power converter with a solar panel as a power source to charge a battery. Other want to connect many power converters together to handle very large power levels. These functions can all be handled with analog and discrete logic, but a micro controller makes it possible to create a very flexible demo board that can do a lot of different tricks using the same circuit board, and without requiring hours of soldering and building prototype circuitry for each different configuration.
This is where I am using the Espruino. It allows me to quickly write demo programs without having to invest the time in C programming. Before a final product is made based on the demo board testing, a specific micro controller is usually selected by each customer, and it is programmed in C. But not by me. I just want to show that the power converter works and quickly write some code to make it do its tricks. I am a power converter guy and not a programmer.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Manxome, I will generate a data file with readings so it is possible to apply different filtering algorithms and see the effect. I think that the noise can be very different in different applications.
The noise from switching regulators can be especially hard to filter as it contains both very large spikes and very high frequencies and also lower frequency ripple that contains the 100kHz or so basic frequency, plus perhaps other lower frequencies that come from load current variations etc. An algorithm that works well for a switcher application may be overkill if you only want a steady reading from a temperature sensor.
Some background to my experiments:
A good quality ADC with 16 bits or higher is definitely much better if measurement accuracy is important. The project I am working on right now will result in a demo board that demonstrates the characteristics of a power converter. The power converter can deliver output voltage that is lower than, equal to or higher than the input voltage. And it can run backwards. So I need a micro controller to make it possible to generate a number of control signals that control the power converter and to keep track of what is happening. Accuracy is not necessarily the top priority for this project. But it is nice to have steady voltage and current readings to display.
A few examples: the output voltage and current limit should be adjustable, operating temperature needs to be monitored so cooling fans can be controlled, different operating modes must be selectable - such as making the converter charge a battery or super capacitor, and then reverse the power flow and use the stored energy to power a load when the main power source fails.
Some people want to use the power converter with a solar panel as a power source to charge a battery. Other want to connect many power converters together to handle very large power levels. These functions can all be handled with analog and discrete logic, but a micro controller makes it possible to create a very flexible demo board that can do a lot of different tricks using the same circuit board, and without requiring hours of soldering and building prototype circuitry for each different configuration.
This is where I am using the Espruino. It allows me to quickly write demo programs without having to invest the time in C programming. Before a final product is made based on the demo board testing, a specific micro controller is usually selected by each customer, and it is programmed in C. But not by me. I just want to show that the power converter works and quickly write some code to make it do its tricks. I am a power converter guy and not a programmer.