containsmachine

Collection of Ancient Imperial Orders (Hilbert Curve)

 
Overview

Introduction to Hilbert Curve

The Hilbert curve is a kind of curve. As long as the function is appropriately selected and a continuous parameter curve is drawn, when the parameter t takes a value between 0 and 1, the curve will traverse all the points in the unit square and obtain a space-filling curve. curve.

As you can see, the Hilbert curve is a very beautiful curve. We can use it to beautify our board and do some useful things. For example, this project ESP32 heating table uses Hilbert curve as a The wire produces a certain resistance and is used to generate heat.

Here is his resistance calculation formula, you can refer to it.

PCB trace resistance calculation:
Resistivity of copper: ρ=0.0175Ωmm 2 /m
Trace length: L
Trace width: W
PCB copper thickness: D=0.035mm
PCB trace resistance: R=(ρL)/(1000×WD)

 

Hilbert curve length calculation:
Order: n
Unit length: d
Total length: l=(2 2n -1)×d

 

 

The first is how to draw the Hilbert curve,

Here I refer to the tutorial of the B station video   and use this UP code. You can check it out. Here I will put the link to the code . After entering, just click the DownloadZip button to download the code and unzip it for later use.

Then start configuring the Python environment

  1. First download VScode , enter and follow the steps in the picture.
  2. Download the Python interpreter, enter the Python official website , and download it according to your system version. Here I use Python 3.9.1. Note that you must check Add Python path during installation, otherwise it will be installed in vain and it will be very troublesome to configure.
  3. Then we use the code file we downloaded earlier, and directly open the folder where the code file is located with vscode.
  4. Press the shortcut key F1, and a search box will appear. We enter Python, find and select the interpreter, and then select the Python interpreter we just installed. If you have multiple versions, your Python versions will be listed.
  5. We right-click on the file with the suffix .py and select the Run Code button to run the python file. At this time, a json file will be generated, which can be opened with Lichuang EDA.
  6. These are the only three places we need to modify. You can generate the pattern you want according to your own situation.

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-21 20:53:31
  • [New Year's Festival Competition] + More than 200 girls walk
  • Problems when installing ia32-libs on ubuntu64
  • Radio Frequency Resurfacing
  • Introduction to PLC, excerpted from "Control Engineer"
  • Recruiting PhD researchers in microwave/electromagnetic fields
  • DONT_TOUCH Constraint

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号