[tdb_mobile_menu menu_id="81451" el_class="plato-left-menu" icon_size="eyJhbGwiOjUwLCJwaG9uZSI6IjMwIn0=" icon_padding="eyJhbGwiOjAuNSwicGhvbmUiOiIxLjUifQ==" tdc_css="eyJhbGwiOnsibWFyZ2luLXRvcCI6IjEwIiwibWFyZ2luLWJvdHRvbSI6IjAiLCJtYXJnaW4tbGVmdCI6IjE1IiwiZGlzcGxheSI6IiJ9LCJwaG9uZSI6eyJtYXJnaW4tdG9wIjoiMCIsIm1hcmdpbi1sZWZ0IjoiMCIsImRpc3BsYXkiOiIifSwicGhvbmVfbWF4X3dpZHRoIjo3Njd9" align_horiz="content-horiz-center" inline="yes" icon_color="#ffffff" icon_color_h="#ffffff"][tdb_header_logo align_vert="content-vert-center" url="https://zephyrnet.com" inline="yes" text="Zephyrnet" image_width="eyJwaG9uZSI6IjM1In0=" img_txt_space="eyJwaG9uZSI6IjEwIn0=" f_text_font_size="eyJwaG9uZSI6IjE4In0=" f_text_font_line_height="eyJwaG9uZSI6IjEuNSJ9" f_text_font_weight="eyJwaG9uZSI6IjcwMCJ9" f_text_font_transform="eyJwaG9uZSI6ImNhcGl0YWxpemUifQ==" f_text_font_family="eyJwaG9uZSI6ImZzXzIifQ==" text_color="#ffffff" text_color_h="var(--accent-color)"]
[tdb_mobile_horiz_menu menu_id="1658" single_line="yes" f_elem_font_family="eyJwaG9uZSI6ImZzXzIifQ==" f_elem_font_weight="eyJwaG9uZSI6IjcwMCJ9" text_color="var(--news-hub-white)" text_color_h="var(--news-hub-accent-hover)" f_elem_font_size="eyJwaG9uZSI6IjE0In0=" f_elem_font_line_height="eyJwaG9uZSI6IjQ4cHgifQ==" elem_padd="eyJwaG9uZSI6IjAgMTVweCJ9" tdc_css="eyJwaG9uZSI6eyJwYWRkaW5nLXJpZ2h0IjoiNSIsInBhZGRpbmctbGVmdCI6IjUiLCJkaXNwbGF5Ijoibm9uZSJ9LCJwaG9uZV9tYXhfd2lkdGgiOjc2N30="]
[tdb_mobile_menu inline="yes" menu_id="81451" el_class="plato-left-menu" icon_size="50" icon_padding="0.5" tdc_css="eyJhbGwiOnsibWFyZ2luLXRvcCI6IjEwIiwibWFyZ2luLWJvdHRvbSI6IjAiLCJtYXJnaW4tbGVmdCI6I jE1IiwiZGlzcGxheSI6IiJ9fQ==" icon_color="#ffffff" icon_color_h="#ffffff" ]
Logo Zephyrnet
[tdb_header_menu main_sub_tdicon = "td-icon-down" sub_tdicon = "td-icon-right-arrow" mm_align_horiz = "content-Horiz-center" modules_on_row_regular = "20%" modules_on_row_cats = "20%" image_size = "td_c300xgory0" "image" show_excerpt = "none" show_com = "none" show_date = "" show_author = "none" mm_sub_align_horiz = "content-Horiz-right" mm_elem_align_horiz = "content-Horiz-center" menu_id = "81450" show_mega_cats = "yes" align_horiz = "content-Horiz-center" elem_padd = "0 30px" main_sub_icon_space = "12" mm_width = "1192" mm_padd = "30px 25px" mm_align_screen = "yes" mm_sub_padd = "20px 25px 0" mm_sub_border = "1px 0 0" mm_elem_space = "25" mm_elem_padd = "0" mm_elem_border = "0" mm_elem_border_a = "0" mm_elem_border_rad = "0" mc1_title_tag = "h2" modules_gap = "25" excl_txt = "Premium" excl_margin = "0 6 "0px 0px 2px 5px" excl_bg = "var (- news-hub-voice)" f_excl_font_size = "2" f_excl_font_weight = "4" f_excl_font_transform = "uppercase" meta_padding = "12px 700 20" art_title = "0 0 0px" show_cat = "none" show_pagination = "vô hiệu hóa led "text_color =" var (- news-hub-white) "tds_menu_active0-line_color =" var (- news-hub-voice) "f_elem_font_size =" 10 "f_elem_font_line_height =" 1px "f_elem_font_weight =" 18 "f_elem_font_transform =" none "mm_bg =" var (- news-hub-dark-gray) "mm_border_color =" var (- news-hub-voice) "mm_subcats_border_color =" # 64 "mm_elem_color =" var (- news-hub-white ) "mm_elem_color_a =" var (- news-hub-voice-hover) "f_mm_sub_font_size =" 400 "title_txt =" var (- news-hub-white) "title_txt_hover =" var (- news-hub-voice- hover)" date_txt="var(--news-hub-light-grey)" f_title_font_line_height="444444" f_title_font_weight="14" f_meta_font_line_height="1.25" f_meta_font_family="fs_700" tdc_css="eyJhbGwiOnsiYm1.3yZGVyLXRvcC2aWR9aCI13IjEiLCJib0JkZXItcmlnaHQtd6lkdGgiOiIxIiwiYm3yZGVyLWJvdHRvbS2aWR9aCI13IjEiLCJib0JkZXItbGVmdC6aWR3aCI13IjEiLCJib0JkZXItY6sb3IiOiJ29YXIoLS3uZXdzLWh2Yi1kYXJrLWdyZXkpIiwiZGlzcGxheSI1IiJ1fQ==" mm_border_size="6px 9 4 "f_elem_font_family =" fs_0 "mm_subcats_bg =" var (- news-hub-dark-gray) "mm_elem_bg =" rgba (0) "mm_elem_bg_a =" rgba (2) "f_mm_sub_font_family =" fs_0,0,0,0 "mm_child_cats =" 0,0,0,0 "mm_sub_inline =" yes "mm_subcats_posts_limit =" 2 "]
Trang Chủ IOT Ethernet hai chiều đập bit trên Pi Pico

Ethernet hai chiều đập bit trên Pi Pico

0
Ethernet hai chiều đập bit trên Pi Pico

These days, even really cheap microcontroller boards have options that will give you Ethernet or WiFi access. But what if you have a Raspberry Pi Pico board and you really want to MacGyver yourself a network connection? You could do worse than check out this project by [holysnippet] that gives you a bit-banged bidirectional Ethernet port using only scrap passive components and software.

This project is similar to one we shared back in August by [kingyo], but differs in that what [holysnippet] has achieved is a fully-functional (albeit only around 7 Mbps) Ethernet port, rather than a simple UDP transmit device. The Ethernet connection itself is handled by the lwip stack. Connection to the RJ45 socket can be made from any of the Pi Pico pins, provided TX_NEG is followed directly by TX_POS, but the really hacky part is in the hardware.

<img data-attachment-id="564404" data-permalink="https://hackaday.com/2022/12/03/bit-banging-bidirectional-ethernet-on-a-pi-pico/eliface/" data-orig-file="https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico-1.png" data-orig-size="1719,723" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title data-image-description data-image-caption="

schematic diagram showing the empirically-determined passive component values required.

” data-medium-file=”https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico.png” data-large-file=”https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico-1.png?w=800″ decoding=”async” loading=”lazy” class=”size-medium wp-image-564404″ src=”https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico.png” alt=”schematic of Pi Pico bit-banged ethernet peripheral” width=”400″ height=”168″ srcset=”https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico-1.png 1719w, https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico-1.png?resize=250,105 250w, https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico-1.png?resize=400,168 400w, https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico-1.png?resize=800,336 800w, https://zephyrnet.com/wp-content/uploads/2022/12/bit-banging-bidirectional-ethernet-on-a-pi-pico-1.png?resize=1536,646 1536w” sizes=”(max-width: 400px) 100vw, 400px”>

Schematic showing the empirically-determined passive component values required.

Rather than developing hardware that would protect the Pico, this design admits that it “shamefully relies on the Pico’s input protection devices” to limit the Ethernet voltages to 3.3 V.

You’ll need an isolation transformer from some old Ethernet-enabled gear (either standalone or as part of a magnetic jack), but then it’s only resistors and capacitors from there. There are warnings not to connect this to PoE networks for obvious reasons, and the component layout needs to keep in mind the ~20 MHz frequencies involved, but to get this working at all feels like quite a feat.

Normally, there’d be no reason to go to these lengths, but it’s always educational to see if it can be done and, with the current component shortages, this is another trick to keep up your sleeve for emergencies!

Putting ports where they shouldn’t belong is not a new idea, of course.  Back in the day we even shared an inadvisable ATTINY implementation of bit-banged Ethernet with no protection at all.

Thanks to [biemster] for the tip-off

Trò chuyện trực tiếp với chúng tôi (chat)

Chào bạn! Làm thế nào để tôi giúp bạn?