Posts

How do you get the best performance from your IoT smart sensor?

The global smart sensor market size is projected to grow from USD 36.6 billion in 2020 to USD 87.6 billion by 2025, at a CAGR of 19.0%. At least 80% of these IoT/IIoT smart sensors (temperature, pressure, gas, image, motion, loadcells) will use Arm’s Cortex-M technology.

IoT sensor measurement challenge

The challenge for most, is that many sensors used in these applications require filtering in order to clean the measurement data in order to make it useful for analysis.

Let’s have a look at what sensor data really is…. All sensors produce measurement data. These measurement data contain two types of components:

  • Wanted components, i.e. information what we want to know
  • Unwanted components, measurement noise, 50/60Hz powerline interference, glitches etc – what we don’t want to know

Unwanted components degrade system performance and need to be removed.

So, how do we do it?

DSP means Digital Signal Processing and is a mathematical recipe (algorithm) that can be applied to IoT sensor measurement data in order to clean it and make it useful for analysis.

But that’s not all! DSP algorithms can also help:

  • In analysing data, producing more accurate results for decision making with ML (machine learning)
  • They can also improve overall system performance with existing hardware. So ther’s no need to redesign your hardware: a massive cost saving!
  • To reduce the data sent off to the cloud by pre-analysing data. So send only the data which is necessary

Nevertheless, DSP has been considered by most to be a black art, limited only to those with a strong academic mathematical background. However, for many IoT/IIoT applications, DSP has been become a must in order to remain competitive and obtain high performance with relatively low cost hardware.

Do you have an example?

Consider the following application for gas sensor measurement (see the figure below). The requirement is to determine the amplitude of the sinusoid in order to get an estimate of gas concentration (bigger amplitude, more gas concentration etc). Analysing the figure, it is seen that the sinusoid is corrupted with measurement noise (shown in blue), and any estimate based on the blue signal will have a high degree of uncertainty about it – which is not very useful if getting an accurate reading of gas concentration!

Algorithms clean the sensor data

After ‘cleaning’ the sinusoid (red line) with a DSP filtering algorithm, we obtain a much more accurate and usable signal. Now we are able to estimate the amplitude/gas concentration. Notice how easy it is to determine the amplitude of red line.

This is only a snippet of what is possible with DSP algorithms for IoT/IIoT applications, but it should give you a good idea as to the possibilities of DSP.

How do I use this in my IoT application?

As mentioned at the beginning of this article, 80% of IoT smart sensor devices are deployed on Arm’s Cortex-M technology. The Arm Cortex-M4 is a very popular choice with hundreds of silicon vendors, as it offers DSP functionality traditionally found in more expensive DSPs. Arm and its partners provide developers with easy to use tooling and a free software framework (CMSIS-DSP). So, you’ll be up and running within minutes.

Continuing with our Analytics team study of the virus on Western European countries, we present our findings for data up to week 15 (14 April).

As discussed in our previous articles, in order to provide an objective comparison per country, the algorithmic results need to be standardised around the population of each country in order to produce a more accurate deaths per million inhabitants rate. The figure shown below summarises the results.

As seen, Belgium’s mortality rate (red) is significantly higher than any of its neighbours. Germany (blue) and the Netherlands (green) have the lowest mortality rates, and appear to be levelling off. This suggests that the Dutch and German governments testing, health care systems and social distancing strategies appear to be paying off.

It’s not completely clear why Belgium’s mortality rate is so much higher than its neighbours, but a possible explanation may be due to insufficient testing and the virus hitting various elderly care homes. We’ll follow Belgium’s progress over the coming weeks, and report our findings.

The UK

As discussed in a previous article, the UK had a one-week head start on its neighbours. Therefore, shifting the UK data left by six days, we obtain an interesting picture of the UK’s situation:

Applying a prediction model to the UK data (dashed magenta line), notice how the UK’s data follows France’s data. Although long term predication models should be viewed with a degree of scepticism (as there are too many unknown factors to consider), the prediction suggests that the UK’s mortality rate should follow France’s mortality rate.  

The good news for the UK population, is that the emergency measures in place, appear to be working and are leading to a decline in deaths!

6 reasons why ASN Filter Designer is a powerful real-time DSP platform e.g. life math scripting, tool creates your technical specification and documentation

The Netherlands is regarded by the International Monetary Fund (IMF) as one the richest countries in the world, with high life expectancy, good infrastructure and a liberal society.  The Dutch have historically been traders, learning multiple foreign languages and trading with the whole world – a practice that is still continued to this date. The Dutch love to travel, which may have been one of main factors for the Covid-19 virus gripping the Netherlands so severely.

The Covid-19 virus has led all European governments to effectively lockdown their countries in the hope of limiting the spread of the virus. Although some see this as a violation of their civil rights, the Dutch government’s ambition is to limit the spread of virus so that the health system can cope with a controlled flow of infections.

Population standardisation and carnival

New research from the University of Massachusetts, suggests that the median incubation period (i.e. the time between exposure to the virus and the appearance of the first symptoms) for Covid-19 is just over five days and that 97.5% of people who develop symptoms will do so within 11.5 days of infection.

John Hopkins University (JHU) provide an open database of confirmed cases, deaths and number of recoveries, obtained from data from the World health organisation (WHO), and various other health intuitions and governments. These datasets are broken down into countries and regions.

Applying our ANNA data modelling algorithms to the raw datasets provided by John Hopkins University (JHU), we were able to plot the mortality rate versus time for the Netherlands, as shown below.

Confirmed deaths for the Netherlands: source JHU database

Many models are based on raw measured values that are not adjusted for comparison with neighbouring countries, so called population standardisation, which can give a false perspective of the situation at hand.

The yearly Carnival festivals that takes place around the 23-Feb, attracts large crowds of people (shown on the right). This incubation period of approximately 12 days can be clearly seen in the data for the Netherlands, where the first deaths are reported around 7-March (14 days after carnival), suggesting that if not adequately treated in hospital, the patient will die within a few days.

Our analysis considered data obtained from the following five European countries (populations shown in parenthesis): Germany (83 million), the Netherlands (17 million), Belgium (11 million), UK (66 million) and France (67 million).

In order to provide an objective comparison per country, the algorithmic results were standardised around the population of each country in order to produce a deaths per million inhabitants rate. The figure shown below summarises the results.

Population standardisation trends: deaths per million inhabitants

Analysing the chart, it can be seen that when viewing the scaled dataset, the Netherlands (green) and France (black) have the highest mortality (death) rate, and Germany (blue) the lowest. France’s high mortality rate may be attributed to many foreigners visiting France for their winter holiday.

A disastrous combination of events

Analysing the various news reports, the Brabant province in the South of the Netherlands was a particular hotspot for the virus. Our findings as to the likely reasons why the contagion rate in Brabant is so high can be attributed to a combination of the following factors:

  • The yearly Carnival festivals taking place around the 23 February, which attract large crowds of people.
  • Frequent foreign travel of people working for large international business, such as Philips and ASML.
  • School holiday.
  • People taking their winter holidays in France and Italy.

Had carnival taken place several weeks earlier, the effects on the Dutch population may have very well been lower.

Another hotspot for the virus was Amsterdam, which like Brabant is a hub for international business, and a very densely populated region of the country.

Conclusions

The Covid-19 incubation period for the Netherlands is around 12 days.   

When standardising the mortality rate population data per million inhabitants with surrounding countries, the Netherlands and France have the highest mortality rate of all of their neighbouring countries. A likely explanation of the explosive outbreak in the Brabant province of the Netherlands, is due to Carnival festival, the school/winter holiday and international business travel. France’s high mortality rate may be attributed to many foreigners visiting France for their winter holiday.

Despite Germany’s large population of 83 million, the data shows that the German government’s handling of the situation has been very effective indeed. The German health system boasts over 25,000 intensive care beds, and respiration equipment. Comparing this this Netherlands, which just has a little over 1,150 beds, and adjusting for the population differences – Germany still has more than 4.5 times more intensive care beds at its desposal.

In terms of prevention: Germany’s National Association of Statutory Health Insurance Physicians, reports that it has capacity for approximately 12,000 Covid-19 tests per day, which surpasses all other European countries.

There is an increasing use of the water infrastructure, while the current demand is already adjacent to the existing capacity. However, space for physical expansion is limited. On the other hand, there is a tightening of budgets, while maintenance of water infrastructure comes with high costs.

Huge cost savings as well as reducing public inconvenience can be achieved with a preventative maintenance program. Benefits of a preventive maintenance program are:

  • A longer lifetime for your equipment with preventive maintenance
  • Be in control and optimize your processes
  • Optimize your just-in-time management and get more value by delivering guarantees
  • Increase security for your cargo and your equipment

Struggle with the elements

Working at water is a struggle with the elements: water, wind, dust, heat, pressure. So, you want to know if pipelines are going to leak before they are actually leaking. When cables are beginning to wear out. If the oil is still on the right level. That you can act when dust or smear are blocking lenses. With IoT, you can predict and prevent equipment failure by monitoring product wear and replacement rates.  As such, you improve the reliability of your assets and reduce downtime. And if you recognize little faults, you can solve them easily before they have become big and expensive problems.

Rust

Another time- and money saver is the maintenance in the port: one of the worst enemies is rust. No wonder, that the in- and outside of the ship is painted very often. Even when there is no rust, ‘just in case’. It is better to place a rust sensor: it warns when there is rust and those places can be painted or otherwise maintained. And it makes sure spots are not forgotten. Even more: a rust sensor can track rust at places which are hardly reachable. An employee only has to go to this hard-to-reach part when it is really needed.

How preventive maintenance works

In essence, algorithms and analytics monitor sensor data. They look for deviations in a physical process’s normal operation. Examples are the wear and tear in a water sluice’s mechanical components, or even damaged wiring for the pump.

A sensor fusion algorithm merges data from different sensors. Associated analytics determine whether a component’s characteristic is normal for its age. Any deviations outside ‘normal operation’ are fed back to the master system as potential sources of failure.

Energy companies have struggled for years with meeting demand with supply with society’s increasing demand for energy. This been made even more challenging with more people using electric vehicles and smart cities demanding more lighting.

Modern IoT sensors and smart grid solutions help energy companies and consumers improve and optimize the modern grid for the 21st century. But what does all the jargon really mean?

Blackout

The UK National Grid recently experienced a major outage that left almost a million homes in the dark and forced trains to a standstill. The source of the blackout was traced back to two generators that failed, resulting in grid’s frequency falling below the critical 49.5Hz set by the regulator.

According to the media the UK blackout was triggered when the frequency slumped to 48.88Hz, which is well below the legal limits set by the regulatory agencies.

But what do these limits really mean?

Some background information

The energy grid frequency is 50Hz in Europe, 60Hz in the US. Japan has an unusual historical situation in that the East of the country runs on a European 50Hz system and the West of country runs on an American 60Hz system.

In all cases, in order to meet the energy requirements, several generators are needed to work in parallel and must be synchronised. Accurate frequency control is required to control the amount of power delivered by multiple generators in order to provide a stable power supply to consumers. The challenge for the energy companies is meeting the changes in supply and demand, since higher demand than supply will result in fall of frequency and vice versa.

Thus, the challenge for IoT sensors and algorithms is measuring the operating frequency and phase to a sufficient accuracy and adjusting the generators to meet the energy demand requirement at that particular time. But how?

A PMU (phase measurement unit) is typically used the measure and report back (typically 30-60 measurements per second) to the network operator what the actual frequency and phase of various points on the grid are. In order to synchronise the measurements, the PMU internal clocks are time synchronised via a GPS (global positioning system) unit, such that all reported frequency and phase measured across the grid are time aligned.

The frequency limits are shown below:

The challenge for energy managers

As seen above, the normal region in Europe is between 49.85 – 50.15Hz. If the generators exceed 50.15Hz (entering the orange region), there is too much energy and the generators need to be rolled back a little. If the frequency falls below 49.85Hz (also in the orange region), there is not enough energy to meet demand, and more energy is needed. In all cases, the frequency must never enter the red region, otherwise Blackouts will occur.

The energy company is legally obliged to keep the powerline frequency between 49.5 – 50.5Hz (± 1%). This is typically tracked to an accuracy of ± 1mHz resolution.

Blackouts

The UK blackout was triggered when the frequency slumped to 48.88Hz, which is well below the legal limits and in the blackout region. The damage to the UK economy has still yet to be determined, but National Grid UK should be considering adding extra redundancy safe guards in order restore public confidence.

Dips and swells tracking

Another common problem that occurs is that of energy dips, i.e. the voltage momentarily drops for a few cycles. Think about lights temporarily flickering in your house.

In factories running machinery, this usually occurs when a machine is started up, indicating imminent component failure. Swells are the opposite of dips, but are much less common.

ASN’s IoT sensor and algorithms play an essential role in keeping the grid healthy, as demonstrated in the video below.

Industrial induction motors are found everywhere: Lifts, escalators, cable cars, water sluices, cranes, and even washing machines etc. Motors form the backbone of these devices. Since they are mission critical, a failure of a motor may disrupt the whole production line, crippling your precious infrastructure as a whole. As an example: if the motor fails on a water sluice, the disruption means that ships can’t deliver their cargo on time. Our experience has shown that with preventative motor maintenance, you can save up to 51% of your maintenance budget!

Common sources of industrial motor failure

Of course, each industrial motor has its own characteristics. However, common sources of failure in an industrial induction motor are:

  • Ball bearing and rotor crack/break
  • Stator winding faults
  • Rotor winding faults (rotor bars, end-rings etc.)

Save up to 51% with preventative maintenance

For public infrastructure, industrial motors are mission critical. They need to be regularly be checked under expensive maintenance programmes. With ASN’s IoT solutions, you can predict and prevent equipment failure by monitoring product wear and replacement rates.  And if you recognize a slight disturbance, you can solve them easily. Before little faults have become big and expensive problems. When little faults are recognized, they can be repaired without any signifcant downtime. At a time it suits your client best. As such, you can improve the reliability of your assets and reduce downtime.

Effective and efficient use of an engineer’s precious time

Motor health care starts with sensors. With these sensors, you can monitor the running of your monitors automatically by placing sensors in the vicinity of your motors. When a signal pops up that there might be a problem, an engineer can repair this motor. Previously, engineers did their inspection rounds, giving every motor the same attention. Now, engineers can focus on motors that really need attention.

With preventative maintenance, your customers  can save a fortune and minimise any disruption to service. You can save up to 51% on your maintenance costs with our Preventative Maintenance solutions. They are based on safe contactless sensor measurement, and optimize the life expectancy of your industrial motor. Learn more at: https://www.advsolned.com/motor-health-care/ or drop us a line at: info@advsolned.com

Until now, the professional use of drones is mostly still in an experimenting stage. However, drones are one of the golden nuggets in IoT because they can play a pivotal role, for instance in congested cities and faraway areas for delivery. Further, they can be a great help to give an overview of a large area or for places which are difficult or dangerous to reach.

In one of our previous blogs, we concluded that sensor measurement has mostly been a case of trial and error. In this blog, we list some of the challenges we see for sensor measurement which has to be solved to bring the professional use of drones to full maturity.

Practical challenges which can and must be solved with sensors

Here are some of the challenges we have found:

  • Risk of colliding, with other drones, birds and other air users. Just like other traffic
  • And at point in time, some traffic rules have to be set in place. Sensors can help to let the drone follow these rules
  • How drones can stay on course, even with wind
  • Preventing drones to cross over forbidden (known) areas and unexpected ‘wrong’ areas (e.g. a building or a wood on fire)
  • Challenges with unloading the package:
    • Without damage
    • Without harming people, animals, buildings
    • How the drone will know that the right person gets the package? Can we prevent dogs from biting the package?
  • How to prevent a package from falling? How to alert that a package will probably fall? Or maybe the drone itself? If so, measurement can be taken. Already, there are experiments with self-destruction. But maybe more practical solutions can be found to let the drone aim for a ‘safe area’, such as a park, river, etc. for an ‘emergency landing’.

In all cases, ASN Filter Designer can help with sensor measurement with real-time feedback and the powerful signal analyser? How? Look at ASN Filter Designer or mail us: info@advsolned.com

Do you agree with this list? Do you have other suggestions? Please let us know!

 

Drones and DC motor control – How the ASN Filter Designer can save you a lot of time and effort

Drones are one of the golden nuggets in IoT. No wonder, they can play a pivotal role in congested cities and far away areas for delivery. Further, they can be a great help to give an overview of a large area or places which are difficult or dangerous to reach. However, most of the technology is still in its experimental stage.

Because drones have a lot of sensors, Advanced Solutions Nederland did some research on how drone producing companies have solved questions regarding their sensor technology, especially regarding DC motor control.

Until now: solutions developed with great difficulty

We found out that most producers spend weeks or even months on finding solutions for their sensor technology challenges. With the ASN Filter Designer, he/she could have come to a solution within days or maybe even hours. Besides, we expect that the measurement would be better too.

The biggest time coster is that until now algorithms were developed by handwork, i.e. they were developed in a lab environment and then tested in real-life. With the result of the test, the algorithm would be tweaked again until the desired results were reached. However, yet another challenge stems from the fact that a lab environment is where testing conditions are stable, so it’s very hard to make models work in real life. These steps result in rounds and rounds of ‘lab development’ and ‘real life testing’ in order to make any progress -which isn’t ideal!

How the ASN Filter Designer can help save a lot of time and effort

The ASN Filter Designer can help a lot of time in the design and testing of algorithms in the following ways:

  • Design, analyse and implement filters for drone sensor applications with real-time feedback and our powerful signal analyser.
  • Design filters for speed and positioning control for sensorless BLDC (brushless DC) motor applications.
  • Speed up deployment to Arm Cortex-M embedded processors.

 

Real-time feedback and powerful signal analyser

One of the key benefits of the ASN Filter Designer and signal analyser is that it gives real-time feedback. Once an algorithm is developed, it can easily be tested on real-life data. To analyse the real-life data, the ASN Filter Designer has a powerful signal analyser in place.

Design and analyse filters the easy way

You can easily design, analyse and implement filters for a variety of drone sensor applications, including: loadcells, strain gauges, torque, pressure, temperature, vibration, and ultrasonic sensors and assess their dynamic performance in real-time for a variety of input conditions.  With the ASN Filter Designer, you don’t have do to any coding yourself or break your head with specifications: you just have to draw the filter magnitude specification and the tool will calculate the coefficients itself.

Speed up deployment

Perform detailed time/frequency analysis on captured test datasets and fine-tune your design. Our Arm CMSIS-DSP and C/C++ code generators and software frameworks speed up deployment to a DSP, FPGA or micro-controller.

An example: designing BLDC motor control algorithms

BLDC (brushless DC) BLDC motors have found use in a variety of application areas, including: robotics, drones and cars. They have significant advantages over brushed DC motors and induction motors, such as: better speed-torque characteristics, high reliability, longer operating life, noiseless operation, and reduction of electromagnetic interference (EMI).

One advantage of BLDC motor control compared to standard DC motors is that the motor’s speed can be controlled very accurately using six-step commutation, making it a good choice for precision motion applications, such as robotics and drones.

Sensorless back-EMF and digital filtering

For most applications, monitoring of the back-EMF (back-electromotive force) signal of the unexcited phase winding is easier said than done, since it has significant noise distortion from PWM (pulse width modulation) commutation from the other energised windings. The  coupling  between  the  motor parameters, especially inductances, can induce ripple in the back-EMF signal that is synchronous with the PWM commutation.  As a consequence, this induced ripple on the back EMF signal leads to faulty commutation. Thus, the measurement challenge is how to accurately measure the zero-crossings of the back-EMF signal in the presence of PWM signals?

A standard solution is to use digital filtering, i.e. IIR, FIR or even a median (majority) filter. However, the challenge for most designers is how to find the best filter type and optimal filter specification for the motor under consideration.

The solution

The ASN Filter Designer allows engineers to work on speed and position sensorless BLDC motor control applications based on back-EMF filtering to easily experiment and see the filtering results on captured test datasets in real-time for various IIR, FIR and median (majority filtering) digital filtering schemes. The tool’s signal analyser implements a robust zero-crossings detector, allowing engineers to evaluate and fine-tune a complete sensorless BLDC control algorithm quickly and simply.

So, if you have a measurement problem, ask yourself:

Can I save time and money, and reduce the headache of design and implementation with an investment in new tooling?

Our licensing solutions start from just 125 EUR for a 3-month licence.

Find out what we can do for you, and learn more by visiting the ASN Filter Designer’s product homepage.

The internet of things (IoT) has gained tremendous popularity over the last few years, as many organisations strive to add IoT smart sensor technologies to their product portfolios. The basic paradigm centres around connecting everything to everything, and exchanging all data. This could be house hold appliances to more blue sky applications, such as smart cities. But what does this particularly mean for you?

Almost all IoT applications involve the use of sensors. But how do SME and even multi-national organisations transform their legacy product offering into a 21st century IoT application? One the first challenges that many organisations face is how to migrate to an IoT application while balancing design time, time to market, budget and risk.

Sounds interesting? Then read further….

We recently completed a project for a client who manufactured their own sensors, but wanted to improve their sensor measurement accuracy from ±10% to better than ±0.5% without going down the road of a massive re-design project.

 

The question that they asked us was simply: “Is it possible to get high measurement accuracy performance from a signal that is corrupted with all kinds of interference components without a hardware re-design?”

Our answer: “Yes, but the winning recipe centres around knowing what architectural building blocks to use”.

Traditionally, many design bureaus will evaluate the sensor performance and try and improve the measurement accuracy performance by designing new hardware and adding a few standard basic filtering algorithms to the software. This sort of intuitive approach can lead to very high development costs for only a modest increase in sensor performance. For many SMEs these costs can’t be justified, but perhaps there’s a better way?

Algorithms: the winning recipe

Algorithms and mathematics are usually regarded by many organisations as ‘academic black magic’ and are generally overlooked as a solution for a robust IoT commercial application. As a consequence very few organisations actually take the time to analytically analyse a sensor measurement problem, and those who do invent something tend to come up with something that’s only useable in the lab. There has been a trend over the years to turn to Universities or research institutes, but once again the results are generally too  academic and are based more on getting journal publications, rather than a robust solution suitable for the market.

Our experience has been that the winning recipe centres around the balance of knowing what architectural blocks to use, and having the experience to assess what components to filter out and what components to enhance.  In some cases, this may even involve some minor modifications to the hardware in order to simplify the algorithmic solution. Unfortunately, due to the lack of investment in commercially experienced, academically strong (Masters, PhD) algorithm developers and the pressure of getting a project to the finish line, many solutions (even from reputable multi-national organisations) that we’ve seen over the years only result in a moderate increase in performance.

Despite the plethora of commercially available data analysis software, many organisations opt to do basic data analysis in Microsoft Excel, and tend to stay away from any detailed data analysis as it’s considered an unnecessary academic step that doesn’t really add any value.   This missed opportunity generally leads to problems in the future, where products need to be recalled for a ‘round of patchwork’ in order solve the so called ‘unforeseen problems’. A second disadvantage is that performance of the sensors may be only satisfactory, whereas a more detailed look may have yielded clues on how make the sensor performance good or in some cases even excellent.

 Algorithms can save the day!

 “Although many organisations regard data analysis as a waste of money, our experience and customers prove otherwise.”

Investing in detailed data analysis at the beginning of a project usually results in some good clues as to what needs to be filtered out and what needs to be enhanced in order to achieve the desired performance.   In many cases,  these valuable clues allow  experienced algorithm developers to concoct a combination of signal processing building blocks without re-designing any hardware – which is very desirable for many organisations! Our experience has shown that this fundamental first step can cut project development costs by as much as 75%, while at the same time achieving the desired smart sensor measurement performance demanded by the market.

So what does this all mean in the real world?

Returning the story of our customer, after undertaking a detailed data analysis of their sensor data, our developers were able design a suitable algorithm achieving a ±0.1% measurement accuracy from the original ±10% with only minor modifications to the hardware. This enabled the customer to present his IoT application at a trade show and go into production on time, and yes, we stayed within budget!

Author

  • Dr. Sanjeev Sarpal

    Sanjeev is an AIoT visionary and expert in signals and systems with a track record of successfully developing over 25 commercial products. He is a Distinguished Arm Ambassador and advises top international blue chip companies on their AIoT solutions and strategies for I4.0, telemedicine, smart healthcare, smart grids and smart buildings.

    View all posts