Summary of Vintage Toothbrush Timer using ATMega328p
The author built a vintage-style toothbrush timer using an Atmega328p microcontroller to detect brush removal via a weight sensor, measure two minutes, and signal the end with an alarm. The device features a custom circuit for power management and lamp control, housed in a laser-cut plywood enclosure. It operates on a lithium-ion battery for up to three weeks per charge.
Parts used in Vintage Toothbrush Timer:
- Atmega328p microcontroller
- 16Mhz crystal
- Weight sensor from digital scales
- Ina12P amplifier
- TPS2020 switch
- MAX1555 charger
- 2N3904 transistors
- Incandescent lamps
- Lithium-ion battery
- Servo motor
- Plywood
- Brass cups
- Tray
- Old alarm clock chime
My last visit to the dentist convinced me that I should really brush my teeth at least two minutes. I decided to build a special toothbrush timer: it would detect when a brush is taken out, measure two minutes and notify when the time is up.
I chose to use Atmega328p, a weight sensor, brass cups, a tray, old alarm clock’s chime and some plywood. I would like to tell how this device was made: what electrical components were used and how I assembled the enclosure.
Step: 1 Circuit Design
The circuit is designed around a wight sensor. I got one from a used digital scales. It is a pretty basic device: there are four wires: one is input current, one is ground and voltage difference between the other two wires is determined by a weight of an object on the scales. The difference, however, is really small, so one needs to use an amplifier to be able to tell that the weight has changed.
Here are components that I chose:
ATMega328p with 16Mhz crystal – I chose this micro-controller because it is extremely easy to use. There is also a good community support, as ATMega328p is used in one of Arduinos.
Ina12P amplifier – this device is created specifically for amplification of sensors’ signals. It is not hard to use it. The only thing that I found tricky is figuring out the right resistance value for amplification gain.
TPS2020 switch – this is a great switch with a very low standby current ( <10 μA). I use it to control power of the servo that chimes.
MAX1555 charger – this device controls charging of device’s lithium-ion battery.
2N3904 transistors – used to control lamps’ power.
Lamps – I chose incandescent lamps out of esthetic reasons. Since I wanted to give the project a “vintage” look LED lamps did not quite fit the design. Although these lamps consume more power the feeling they evoke is quite worth it.
This device is able to work 3 weeks on a single charge.
Full schematic could be found on Github.
Step: 2 Printing The Circuit
Step: 3 Programming
Step: 4 Enclosure Design
The design and assembly of project’s enclosure was almost as exciting as building and programming its circuit. I started with a new document in Inkscape and a new sheet of plywood I got from a hardware store. I have rented a laser cutter in Techshop to cut the plywood according to my design. The ease with which the cutter created my parts is quite fascinating:
For more detail: Vintage Toothbrush Timer using ATMega328p
-
What microcontroller was chosen for the project?
The Atmega328p was chosen because it is extremely easy to use and has good community support. -
How does the device detect when the toothbrush is taken out?
A weight sensor from a used digital scale detects the change in weight, which is then amplified by an Ina12P amplifier. -
Why were incandescent lamps selected over LEDs?
Incandescent lamps were chosen for aesthetic reasons to give the project a vintage look, even though they consume more power. -
What component controls the power of the servo that chimes?
A TPS2020 switch is used to control the power of the servo, featuring very low standby current. -
How long can the device work on a single charge?
The device is able to work for three weeks on a single charge. -
What method was used to etch the circuit board?
The photo-resistive method was used to print and etch the circuit. -
What material was used to construct the enclosure?
Plywood was used for the enclosure design and was cut using a laser cutter.






