📜 ⬆️ ⬇️

Smart watch do it yourself for 1500 rubles. Part 2 - Board and Components

Due to numerous requests, I post the source of the clock scheme with a description of the components.


The circuit and the board were made in the DipTrace program.
When I ordered components for watches, there was a slightly different set, but due to the lack of those models that I wanted, I had to take these:

Stabilizer:




Real time clock:



')
Bluetooth:




Battery:



Battery Charging Controller:



Charging current is regulated by a resistor according to the formula:

Since The battery charge current is 100mA, then the resistor is 10kOhm.

USB - UART:




Microcontroller:



Screen:



Taken from here

Rest:

The lever for controlling the clock was taken from the old communicator. It has 3 positions: up, center, bottom. Also, just in case, the reset button MK is added. Vibrating motor from the same communicator. Quartz for CRR from the Launchpad set. The miniUSB port is taken from the broken card reader. LED for charging status indication I don’t remember where it’s coming from =)

Scheme


It remains to connect all the blocks together and see what happens.
Yeah, between the battery and the ground, there are 2 capacitors for 1uF (stabilizer) and 4.7uF (charging). We take only the larger one at 4.7uF. Yes, and between 5V from USB and ground again there are 2 capacitors for 1uF (USB-UART) and 4.7uF (charging). Again we take only the larger one at 4.7uF.
Scheme in the studio!

To save power, the BT power must be turned off when not in use. To do this, let's get a power pin on the MK leg. But! In this state, BT did not start. As far as I remember, the load on each pin is limited to 40mA and apparently this is not enough to turn on the BT. Therefore, we connect the power BT to two pins. (of course, it would be possible to make a power key on transistors, but this is extra space on the board for components + complication of the circuit, etc.).
Just want to know when BT is connected, and when waiting for a connection. To do this, let's get the BT LED pin on the MK pin. When enabled without connecting to this pin log. sequence 01010101 ... In the connected state there is always a log on it. one.
To measure the voltage on the battery, a voltage divider with two resistors was connected to the ADC input. The values ​​of the resistors were chosen so that the input to the ADC when charging (maximum voltage 4.25V) was less than 3.3V.
The voltage regulator outputs 3.28 - 3.29 volts with an input voltage of more than 3.4 and about 0.1 - 0.2 volts less than the input when the input is from 2.7 to 3.3 volts. And when the input is less than 2.7 is disabled.

PCB layout


The layout of the board was made manually. Initially, there were only a few pins of the MC to which it was necessary to connect external components, namely:

First, all components were placed on the board. Then there was a connection for the above points. Then the layout of all other components.



The bottom right 5 pins of the BT should be isolated from the board. Quartz is soldered to the substrate connected to the ground. For convenience of soldering, near the first pins of the microcircuits, dots are put.

Source codes and boards here

That seems to be all. As always, I look forward to questions and comments.

Part 1 - Start

Source: https://habr.com/ru/post/218645/


All Articles