Can You Make an Apple Pencil? DIY Stylus Guide
In this article
Many assume you can simply 3D‑print an exact Apple Pencil and have it work like the original. You cannot legally replicate the full device, but you can assemble a functional stylus that matches the size and basic pressure‑sensing features.
DIY Stylus Basics
The Apple Pencil combines a rechargeable lithium‑ion cell, a Bluetooth Low Energy (BLE) controller, and a pressure‑sensing tip that talks to iPad hardware. A home‑built version must replace each of those blocks with readily available components, and it will lack the proprietary high‑resolution pressure curve (2048 levels) and tilt detection that the official product provides.
A common misconception is that any conductive tip will give the same drawing experience. In reality, the iPad reads a combination of capacitance change, pressure voltage, and tilt angle; a simple rubber tip only supplies basic contact and cannot convey pressure data.
To build a usable stylus you need three functional groups: a) a conductive tip that the screen can detect, b) a sensor that converts force into an electrical signal, and c) a wireless module that sends that signal to the iPad. Each group has a range of options, and the final performance depends on how well the parts are calibrated.
Specs That Matter
The official Apple Pencil measures 175 mm (6.9 in) long, has a diameter of 8.9 mm (0.35 in), and a tip radius of about 1.2 mm. It houses a 0.3 Wh (about 30 mAh at 3.7 V) battery that provides roughly 12 hours of continuous use. Pressure sensitivity is advertised at 2048 levels, and tilt is sensed on two axes up to ±60°.
When you design a DIY version, aim for dimensions within ±5 mm of the official size so the iPad’s magnetic attachment (if you want it) still works. Battery capacity of 20–30 mAh will keep the stylus alive for 8–10 hours of moderate use. A force‑sensing resistor (FSR) typically outputs 0–5 V over a 0–10 kg force range; you can map that to 0–2048 pressure steps in software.
Changing any of these numbers will affect ergonomics and battery life. For example, increasing the diameter to 10 mm adds about 15 % more material weight, which shortens runtime by roughly the same percentage. Extending the length to 190 mm improves balance but may exceed the iPad’s magnetic field range, preventing magnetic charging.
Materials & Tools
Below is a practical parts list that most hobbyists can obtain from electronics or maker stores. All quantities are typical; you can scale up or down based on personal preference.
- Conductive foam or conductive rubber tip (≈10 mm length, 1.2 mm radius) – provides reliable capacitive contact.
- Force‑sensing resistor (FSR) 0–10 kg range – converts pressure into voltage.
- Microcontroller with BLE, such as an nRF52832 module – handles wireless transmission.
- Rechargeable Li‑ion coin cell, 3.7 V, 30 mAh – powers the circuit.
- Micro‑USB or magnetic charging coil (optional) – for recharging without opening the case.
- 3D‑printed or CNC‑machined housing, 175 mm × 8.9 mm × 8.9 mm – matches Apple Pencil dimensions.
- Soldering iron, heat‑shrink tubing, thin gauge wire (30 AWG), and a small screwdriver set.
Safety note: work with lithium‑ion cells in a well‑ventilated area, avoid short circuits, and never expose the battery to fire. Use a multimeter to verify voltage before connecting to the microcontroller.
Worked Build Example
Below is a step‑by‑step example that results in a stylus capable of basic touch and 0–1024 pressure levels. The numbers illustrate how the components interact.
- Print the housing using PLA filament. Print two halves, each 175 mm long, 8.9 mm outer diameter, and 8.0 mm inner diameter. Allow a 0.2 mm clearance for the battery and wiring.
- Attach the conductive tip to the front of the housing with a tiny amount of epoxy. Ensure the tip protrudes 1.2 mm beyond the outer wall; this matches the official tip radius.
- Solder the FSR leads to a voltage divider: connect one side to 3.3 V from the microcontroller, the other side to ground through a 10 kΩ resistor. The junction feeds an analog input (ADC). With 0 kg pressure the voltage is ~0 V; at 10 kg it approaches 3.3 V.
- Program the nRF52832 to read the ADC value, map 0–3.3 V to 0–1024 pressure steps, and broadcast a BLE HID (Human Interface Device) report that iPadOS interprets as a stylus.
- Install the 30 mAh coin cell at the rear of the housing. Connect its positive lead to the microcontroller’s VCC pin and its negative lead to the ground plane. Use heat‑shrink tubing to insulate the connections.
- Optionally, add a small magnetic disc (≈5 mm diameter) at the rear so the stylus can attach to the iPad’s magnetic strip. The disc does not affect charging but improves storage convenience.
- Seal the two housing halves with a thin layer of silicone gasket to keep dust out while allowing the battery to be swapped if needed.
- Power on the device by pressing a recessed button that toggles the microcontroller’s enable pin. The iPad will detect a new Bluetooth stylus within 2–3 seconds.
Worked example calculations: The FSR’s resistance drops from 1 MΩ (no force) to 10 kΩ (maximum force). Using the voltage divider, the ADC sees V = 3.3 V × (R_fixed / (R_fixed + R_FSR)). At 0 kg, V ≈ 0 V; at 10 kg, V ≈ 3.0 V. Mapping 0–3.0 V to 0–1024 steps yields a pressure resolution of about 0.3 % per step, which feels smooth for sketching.
Battery life estimate: The nRF52832 draws ~5 mA in active mode and ~10 µA in sleep. Assuming 50 % active use, average current ≈2.5 mA. With a 30 mAh cell, runtime ≈30 mAh / 2.5 mA = 12 hours, matching the official Pencil’s claim.
If you increase the battery to 45 mAh, runtime extends to about 18 hours, but the added weight (≈2 g) may shift the balance point forward by roughly 3 mm, making the stylus feel tip‑heavy. Adjust the housing length or add a small counterweight at the rear to compensate.
Testing: Open a drawing app that shows pressure curves (e.g., Procreate). Draw a line while varying pressure; the app should display a gradual change in line thickness. If the pressure appears flat, verify the ADC mapping and ensure the FSR is not saturated (check resistance with a multimeter under load).
Because the iPad does not accept third‑party pressure data over the generic HID profile, the maximum pressure resolution you can achieve is limited by the operating system. Most apps will interpret any value between 0 and 1024 as a valid pressure range, so your DIY stylus will work for most sketching tasks, though it will not reach the 2048‑level fidelity of the official Pencil.
Safety reminder: always disconnect the battery before opening the housing. Store the lithium‑ion cell in a fire‑proof container if you need to leave it unattended.
Fine‑Tuning & Common Adjustments
After the first build you may want to tweak ergonomics or performance. Here are three adjustments that often improve the experience.
Increasing Pressure Range
Swap the 10 kΩ fixed resistor for a 4.7 kΩ value. This raises the voltage swing at high force, giving you finer granularity near the top of the pressure curve. Re‑calibrate the software mapping accordingly.
Adding Tilt Sensing
Attach a dual‑axis accelerometer (e.g., MPU‑6050) to the microcontroller and include its data in the BLE report. iPadOS will ignore tilt from a non‑Apple device, but drawing apps that read raw sensor data can use it to simulate shading.
Improving Battery Access
Design a sliding latch on the rear housing instead of a sealed screw‑top. This allows you to replace the coin cell without desoldering, extending the usable life of your stylus.
Each modification changes at least one of the key numbers listed earlier—either the total weight, the battery capacity, or the sensor output range. Re‑measure the affected spec and compare it to the original Apple Pencil values to keep the stylus balanced and functional.
Next Steps & Resources
When you finish the build, register the BLE device name (e.g., "DIY‑Pencil") in the iPad’s Bluetooth settings. Test compatibility with several apps to confirm that pressure data is recognized. If you encounter connection drops, check that the microcontroller’s advertising interval is set to 20 ms or less; shorter intervals improve reliability on iPadOS.
For deeper customization, explore open‑source firmware such as the "Adafruit Bluefruit LE" libraries, which let you fine‑tune the HID report format. Community forums for makers often share code snippets that map FSR values to the exact byte structure iPad expects.
Remember that a DIY stylus will never receive official firmware updates, magnetic charging, or the seamless pairing experience of a genuine Apple Pencil. However, with the dimensions, battery life, and pressure mapping described above, you can create a functional, affordable alternative for sketching, note‑taking, and basic design work.