How to choose between Edge AI and the cloud, TinyML with Arduino, the most common mistakes in a board's first prototype, secure IoT with device identity and firmware updates, and predictive maintenance from vibrations: the electronics articles gathered in one guide.
In this guide
- Edge AI or cloud? How to choose where models run
- TinyML with Arduino: a practical guide to get started
- PCB design: the most common mistakes in the first prototype
- Secure IoT: device identity and firmware updates
- Predictive maintenance: what vibrations tell us
Edge AI or cloud? How to choose where models run
There is no answer that is always right. There is a right choice for each case, and often it is a mixed architecture.
The four criteria
- Latency: if the answer must arrive in under a hundred milliseconds, the edge is almost mandatory.
- Bandwidth: streaming video continuously from many cameras is expensive; sending only events is not.
- Privacy: images and audio processed on site never leave the company.
- Cost over time: edge hardware is paid for once, cloud compute every month.
The hybrid architecture
The most common solution: inference at the edge, training and historical analysis in the cloud. Devices send events and meaningful samples, the cloud retrains models and redistributes them. You get the responsiveness of the edge with the improvement capacity of the cloud.
Mistakes to avoid
Choosing hardware before measuring the real workload, forgetting remote model updates and underestimating environmental conditions: dust, heat and vibration put any board to the test.
TinyML with Arduino: a practical guide to get started
TinyML is the set of techniques that make it possible to run machine learning models on microcontrollers with just a few hundred kilobytes of memory. Here is the path, with no shortcuts.
1. Start from a small, measurable problem
"Understand whether the pump works well" is too vague. "Tell normal operation, cavitation and a worn bearing apart from vibrations" is a problem a small model can solve. Define clear classes and a success criterion, for example fewer than 2% false alarms.
2. Collect data with the final sensor
The model learns the characteristics of the sensor it was trained with. Use the same board, the same mounting and the same conditions you will have in production, and also collect the "boring" cases: the machine switched off, background noise, ambiguous situations.
3. Extract the right features
For audio and vibrations you almost always work on frequency-domain representations, which make the problem easier for a small network. Good data preparation is worth more than a bigger network.
4. Train, quantise, measure
After training, the model is quantised to 8 bits. Always check accuracy after quantisation, the memory used and the inference time on the board: those are the numbers that matter.
5. Test in the field
Leave the prototype installed for days. Record the cases where it is wrong and add them to the dataset: that is how a good prototype becomes a reliable product.
PCB design: the most common mistakes in the first prototype
A board's first prototype is rarely perfect, but many problems are always the same and can be prevented.
Undersized power rails
The peak consumption of a radio module or a motor can be many times the average. Size regulators, traces and capacitors for the peaks, not the average.
Grounds and return paths
Every current that goes out must also come back. A continuous ground plane under fast signals reduces noise and emissions; cutting it with a trace is one of the most expensive mistakes during EMC testing.
Hard-to-source parts
A perfect part with a lead time of months stops production. Check availability and compatible alternatives before closing the schematic.
No test points
Without test points and a programming connector, testing and diagnosis become slow and expensive. Plan them from the very first prototype.
Ignoring the enclosure
Mounting holes, connectors aligned with openings and component heights must be checked against the mechanical drawing. A mistake here is only discovered when the board does not fit in the box.
Secure IoT: device identity and firmware updates
An IoT device stays installed for years. Security is not added at the end: it is designed together with the hardware.
An identity for every device
Every device must have its own credentials, never shared with others, ideally stored in a dedicated secure element. If one device is compromised, only that one is revoked.
Encrypted communication
All communication goes over encrypted, authenticated channels, both to the platform and to configuration tools. No service ports left open in production.
Signed firmware updates
The device accepts only firmware signed by the manufacturer and keeps a working copy to fall back to if an update fails. Vulnerabilities discovered in the future can then be fixed without a site visit.
Only what is necessary
Every unnecessary function is attack surface. Disable debug interfaces, unused services and test accounts before production, and keep an inventory of the software components used in the firmware.
These principles also underpin the new European rules on the security of connected products: designing them in from the start costs far less than adapting later.
Predictive maintenance: what vibrations tell us
Every rotating machine has its own vibration "signature". When something starts to deteriorate, the signature changes long before the failure becomes visible.
What is measured
An accelerometer mounted close to the bearings measures vibration; a current sensor measures the motor's draw; a temperature sensor completes the picture. Imbalance, misalignment and bearing wear leave different traces in these measurements.
From sensor to model
The device processes measurements locally and computes compact indicators. An anomaly detection model learns the machine's normal behaviour in the first weeks and from then on flags deviations, without needing recorded examples of failures.
How to introduce it in a company
- Start with a few critical machines, those whose downtime costs the most.
- Install the sensors without modifying the machine.
- Compare alerts with the maintenance team's actual interventions.
- Extend to other machines once the system has proven its value.
The advantage is not just avoiding failures: it is scheduling interventions at the right time and ordering spare parts before they are needed.
Comments (0)
No comments yet.