BCD手表(二进制至小数)

6,363

28

6

简介:BCD手表(二进制至十进制)

关于:我相信要帮助人们并分享我的知识,我一直想建立一些创造性的东西来学习,其中一些非常有用。

Hi,

你好吗?我希望一切都进展顺利。查看我的YouTube对于更多令人惊叹的项目。市场上有很多手表,例如模拟,数字,智能手表等。因此,我决定制作BCD手表。您可以制作这款手表或buy it on tindie(快来了)。

什么是BCD?

The full form of BCD is binary coded decimal, as its name the binary digits is showing decimal value. It is a very simple representation of decimal numbers in different ways, so you can google BCD or binary coded decimal on google.

Why did I make this?

我想制作一个领导的手表,所以我带来了一个独特的想法,而不是简单的手表。在我的工程中,我了解了二元编码的小数,我认为有些学校也教这句话。普通用户不容易理解这种独特的时间表示方式。

Step 1: Functionality

There is a single button in the controller, if you press the button it will show hours and minutes in one second of delay as shown in the image. When it show hours the re led on the top will glow and when it shows minutes the minute led on the top will glow.

When you long press the button it will go in to setting mode, Firstly the hour led will blink means it is in hour setting mode, the hours can be increased by pressing the button.

When you long press the button again it will go in minutes setting mode, the minute led will start blinking. The minutes can be increased by pressing the button. Now to come out from setting mode long press the button again, after long pressing it will show normal hours in minutes with one second of delay as before.

步骤2:PCB设计

Firstly I have designed the schematic inKICAD软件,我已经使用过Attiny85作为我们的控制器。

There is not much pinout in attiny85 so i have used74HC595shift resistor, it increased pinout for leds. I added a button to show time and set the time. For charging I have used a TP4056 circuit which will handle the charging off of the li-po battery.

制作示意图后,我将其在PCB上进行了路由,因为您可以看到PCB的圆形形状带有两个插槽,因此插槽是为我们的手表插入皮带。

Kicad有一个3dviewer of the PCB, So we can verify what our PCB will look like and all components and vias are placed at the correct place. You can export this stl file to further use in 3D modeling.

所有PCB文件都是开源的,可以从我的githubpage.

github链接: -https://github.com/vishalsoniindia/bcd-watch

步骤3:PCB订单

PCB是由PCBWAY发送的,PCB的质量很棒,他们做得很好,可以完美地切割PCB的边缘。

To order PCBs from PCBWay go to the link :-https://www.pcbway.com/

然后上传Gerber文件,您可以在我的githubpage.

Step 4: Soldering Front of PCB

首先,我焊接了LED和电阻。为了焊接LED,焊接一条LED时,然后焊接了另一腿LED,此概念将适用于所有人SMD components

After Soldering LED I solderedATtiny85。首先,我焊接了一条Attiny85腿以将其固定到位,然后焊接了其他7条腿。然后,我以相同的概念焊接了按钮。

步骤5:充电和LDO

For Charging circuit I have used theTP4056which is a charging ic, it handles the constant current charging for li-po and li-ion batteries.

Here I did a hack, I have desoldered the TP4056 ic from the module, also extra components like prog resistor and LED. It saved me the cost of buying a new IC.

Then I soldered the TP4056 circuit on the pcb, also here I used a我愿意,调节电池电压为3.3 v, theAttiny85和移动电阻。

Step 6: Shift Resistor (74HC595)

Here i did a mistake, i did not checked the pads of IC and used wrong foot print of shift resistor,

I am using a74HC595shift resistor.

因此,我决定通过张开腿来焊接通过孔换挡电阻。这对我有用,但我认为对于下一个版本,我将更改它以最大程度地减少尺寸。

I have got thetype - C female connectoralready soldered on pcb, it made soldering more easy.
I soldered the type-c pcb on the BCD watch with the help of thick wire. I also used super glue to fix the type-c in place, so it will be strong on its place.

Step 7: Set Fuse Bits

这是将BCD Watch PCB与Arduino作为ISP连接的PINOUT,如果您不知道Arduino作为ISP,请访问此YouTube视频。

To set fuse bits, first download the folder from myGithubpage. Github :-https://github.com/vishalsoniindia/bcd-watch

Open the folder and go to the fuse folder, in the fuse folder click on top bar as shown in image and typeCMD打开命令终端

打开cmd.txt文件并复制第一行,将其粘贴到命令终端中。如果您看到保险丝,那么一切都正确。在CMD.TXT文件中复制第二行并将其粘贴到命令终端中,您将再次看到Fuse OK表示您的控制器现在已设置为On1Mhz

步骤8:上传代码

In the same folder you will find theAttiny85_link.txtfile, copy the link given in the file or copy it from below.

https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

打开Arduino IDE,然后转到文件然后偏好,将链接粘贴到附加董事会经理部分中。通过逗号“”单独的其他链接”。

转到工具和董事会,然后董事会经理,安装Attiny85木板。现在它再次转到我们已下载的文件夹。

Open the code and go to the Tools, here select board and processor asAttiny85。时钟应该是1Mhz, the COM port connected to the arduino as ISP. Now go to the sketch and click on upload using the programmer.

上传代码后,手表将显示垃圾值,因此请断开ISP并将其连接到外部电源并按下按钮,然后一切正常。

Step 9: Connect Battery

I have connected a500mahbattery to the Input capacitor of我愿意as shown in image,

The connected charger the red LED shows the battery is charging, if you want to know more about LED then check out working ofTP4056

在验证了所有我已经将电池固定在适当位置的所有内容之后,它不是一个稳定的解决方案,但就目前而言,稍后我将使用环氧树脂或拉链扎带来修复它。

Step 10: Belt for Watch

我有一只旧的手表,所以我决定将其BCD手表移开。我已经从模拟手表中取下了胶水,并在超级胶水的帮助下重新粘着它。确保您不会在PCB上缝制皮带,而是在PCB周围。

我们走了,事情完成了,您的手表准备好摇滚。

可穿戴挑战

二等奖
可穿戴挑战

Be the First to Share

    Recommendations

    • Tinkercad到Fusion 360挑战

      Tinkercad到Fusion 360挑战
    • Woodworking Contest

      Woodworking Contest
    • 科学博览会挑战

      科学博览会挑战

    6条评论

    0
    OnEtruegod

    4天前

    This is a great project. You could eliminate the shift register by running the LEDs between your 3 IO pins. set one as source and the other as sink

    0
    vishalsoniindia

    Reply 4 days ago

    是的,这个称为Carliplexing的我们将在下一个版本中进行。
    Thank for letting me know

    0
    Jessyratfink

    16 days ago

    看起来很棒!做得太好了 :)