You have an idea for a device: a sensor for a water tank, a controller for a machine, or a device to sell. The road from the idea to a device in a customer's hands has well-known steps, and if you skip one, you'll usually come back to it later at a much higher cost.
1. The specification: write before you build
The cheapest stage at which to change anything is paper. Write on one page:
- What exactly does the device do? (What does it measure, control, display?)
- Power: mains 220 V? An adapter? A battery? And if a battery, how long must it last? See battery life.
- The environment: inside a home? A humid kitchen? A dusty, vibrating factory? Outdoors in the sun?
- Interaction: buttons and a display? A phone (Wi-Fi or Bluetooth)? Or nothing?
- The size and the shape of the enclosure.
- The expected quantity and the target price per unit.
These answers decide everything after them. A device that runs a year on a battery is different from one on mains, and a device made in tens is different from one made in thousands.
2. Parts: available or not?
Before you fall for a part, make sure it's available on the market you'll buy from, in quantity, and from more than one source if possible. A part that isn't available locally means importing and delays, and if it disappears from the market the whole product stops.
- Prefer well-known parts that have alternatives (such as the ESP32, ATmega, LM358 and AMS1117).
- Read the datasheet and look at the typical application. See reading a datasheet.
- Choose SMD or THT depending on how it will be assembled. See SMD and THT.
3. The prototype
The goal: prove the idea works, not make a final form.
- Use development boards and ready-made modules on the breadboard: an ESP32 or Arduino, and sensor modules.
- Try the hard parts first: accurate measurement, battery consumption, or signal range. These are the ones that can change the whole design.
- Write simple firmware that proves the idea, and don't spend time on details.
An example: a tank level meter. The first question: does the sensor you chose measure correctly in humidity for months? Test it in a real tank before you draw any board.
4. The schematic and PCB
Once the prototype works, turn it into a single board with only what it needs:
- The schematic complete with values, decoupling capacitors and supply protection. See schematic symbols and reverse polarity protection.
- The PCB: trace widths to suit the current, a ground plane, and enough clearance around the antenna if there's Wi-Fi. See PCB design mistakes.
- Design for manufacture (DFM): parts on one side if possible, clear markings, test points for the supply and important signals, and a place to connect the programmer.
The practical steps are in a first KiCad project, and ordering from the factory in ordering PCB manufacturing.
Expect at least two versions: the first board rarely comes out 100% right. That's normal, not failure.
5. The firmware
- Split the code into clear parts: reading the sensors, the logic, the display and communication.
- Think about the hard cases: the power goes off while it's writing to memory? The sensor is disconnected? There's no Wi-Fi?
- A watchdog that resets it if the code hangs.
- A way to update it after it's sold (OTA if it has Wi-Fi, or a programming port).
6. Testing
| Test | What it reveals |
|---|---|
| Functional | Every feature works as specified |
| Power | Lowest and highest voltage, reverse polarity, and consumption |
| Thermal | Where it heats up, and does it work in summer inside a closed box? |
| Long running | It keeps running for days without hanging |
| Environment | Humidity, vibration, and noise from motors around it |
| User | Someone other than you uses it without an explanation |
Measure with the multimeter, and if you have an oscilloscope, look at the supply and the signals. For noise, see reducing noise.
7. The enclosure
- A ready-made enclosure (a plastic project box) is much cheaper in small quantities; design the board to fit it.
- 3D printing is excellent for prototypes and very small quantities.
- An injection mould only for large quantities, because the mould itself is expensive.
- Think about: ventilation, connector openings, water, and mounting the board.
8. A small batch, then production
Before you make a hundred, make 10–20 and give them to people who will actually use them. You'll discover problems you'd never have seen at your desk.
After that:
- The bill of materials (BOM), final, with part numbers and their alternatives.
- The manufacturing files: Gerbers, pick-and-place if it's machine-assembled, and assembly instructions.
- A quick test procedure for every device before it ships (a simple test jig if the quantity is large).
Costing
A device's price isn't just the sum of its parts:
- Parts + board + assembly + enclosure + cables and packaging.
- Scrap: faulty boards and spare parts.
- Test time for every unit.
- Warranty and repairs.
- The development cost itself, spread over the quantity.
A rough rule: the selling price is usually 3 to 5 times the direct parts cost, to cover all of this and still leave a profit.
Mistakes that waste money and time
| Mistake | Result |
|---|---|
| Designing the board before the prototype works | A board thrown away, and a second version |
| A part that isn't available or has a single source | Production stops |
| No test points or programming port | Hard to repair or update |
| Testing only at the desk | The device fails in the real location |
| Producing a large quantity the first time | One problem repeated in every device |
If you have an idea and want someone to take it with you from the specification to the finished device, see the hardware design service and the PCB design and manufacturing service.
FAQ
How long does the project take? A simple device can take weeks, and a complex one, or one on a battery with communications, takes months. Most of the time goes on testing and revisions, not on the first design.
Should I start with a ready-made Arduino in the final product? For very small quantities, you can put a module (such as an ESP32 module) on your board, which is a common and respectable solution. But a complete Arduino board inside a product ends up more expensive, larger and less robust than a purpose-designed board.