Adding ethernet to a Raspberry Pi Zero using the GPIO pins (and not the USB port)

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 77

  • @georgekj6vu889
    @georgekj6vu889 7 років тому +6

    Thank you thank you thank you.
    This is excellent and works 100% perfect with a Raspberry Pi Zero W. I found the INT signal necessary to make it work. Thanks also for explaining how to set the mac address.

  • @JibunnoKage-cj2kz
    @JibunnoKage-cj2kz Рік тому

    The ethernet module uses the SPI interface/bus, he never explains this. Also, be sure to add an AS1117 (3.3v to 5v booster breakout board) so that the board can draw a bit more micro-amps, it really needs about 200 micro-amps to work consistently at load. Will it work at 3.3v, yes, but if you push the module, it will error out. The AS1117 uses 5v in, GND, and out is 3.3v... but the 3.3v it returns has a higher micro-amp capacity then the 3.3v direct from the Pi GPIO 3.3v pin.

  • @darthwater999
    @darthwater999 Рік тому

    people like you enrich the internet, thank you

  • @dj1encore
    @dj1encore 3 роки тому +1

    Have you tried Ethernet on the pi pico RP2040 ?

  • @davecc0000
    @davecc0000 8 років тому +4

    Excellent Bas. Thank you!
    I've been wanting to do this and your vid makes it easy to do.
    Cheers.

  • @sokoloft3
    @sokoloft3 2 роки тому

    I ordered one. Only 4$ shipped. Need it to run mtr traces to a server from my network. Hopefully this device doesn't introduce any latency or off numbers.

  • @henry55430
    @henry55430 2 роки тому

    Hey! Lots of great info and thanks for the video!
    I'm trying to recycle an extra Pi zero I have lying around the house as an LTE modem. I'm thinking it's possible with a USB LTE dongle and an installation of OpenWRT. I was hoping to use this device to give the pi zero Ethernet without impeding on the existing USB port.
    Is a Mac address necessary to connect this directly to an Android device with a USB to Ethernet adapter? Would config of the pi be any different with OpenWRT installed?

  • @mahabirshaw5976
    @mahabirshaw5976 2 роки тому

    Thank you sir your information helped a lot .... I was making a server and didn't wanted to waste the only usb port .... I did tried usb splitters but it dosen't work

  • @ronaldronald8819
    @ronaldronald8819 3 роки тому +1

    Hi Bas, any change of getting this done on a pi pico?

  • @cbhargava
    @cbhargava 7 років тому +2

    MAC address is permanent to the device. IP address can change. Also you can configure your router to assign a specific IP address to your Raspberry Pi (or adapter) using the MAC address of our device.

    • @basvandersluis5662
      @basvandersluis5662  7 років тому +4

      Indeed. But this device gets a random MAC address every time the Pi boots, if you don't create one yourself. Normally a MAC address is a manufacturer + device ID, but this device just does not have one.

    • @cbhargava
      @cbhargava 7 років тому

      For ENC28J60 the software has to provide a MAC so if you don't provide one, it will get random MAC address.

  • @sokoloft3
    @sokoloft3 2 роки тому +1

    Not the fastest thing. Unfortunately it doesn't work for my use case. Interesting nonetheless. I get my full network speed over usb. This ethernet adapter I only get 4Mbps max. Running cat on my trace log file takes a good 20 seconds over ethernet, on usb its maybe 5 seconds max.

  • @GBlanco_Chofo7
    @GBlanco_Chofo7 7 років тому +3

    Thank you very much, my friend, it really helped me. Very well explained.

  • @keesservaas898
    @keesservaas898 6 років тому

    Super, toen ik dit zag heb ik een Raspberry Pi Zero gekocht en ENC28J60 had ik nog liggen. MQTT draait, thanx!!!

  • @Ed19601
    @Ed19601 6 років тому +1

    The enc28j60 is not so difficult to connect with the available module to load.
    Supposedly also possible to use W5500, but a lot harder

    • @jinis2011
      @jinis2011 5 років тому

      Hi, do you happen to have instructions for W5200? not working for me. I have dtoverlay=W5200 in /boot/config.txt.

  • @Sebastian-wm5es
    @Sebastian-wm5es 3 роки тому

    Can I use 2 of these modules with the pi zero?

  • @sveinarsandvin6418
    @sveinarsandvin6418 4 роки тому

    This video is very helpful. Thank you. Works well with compute module.

  • @dylancruz1131
    @dylancruz1131 5 років тому

    Is it possible to connect two of these to a RPI3? I am designing some Telephone equipment that will run TDM over Ethernet interface, So 10mbps is not an issue.
    I am wondering if I should invest any time with this solution or just use a USB Ethernet Adapter?

  • @AdditiveAvery
    @AdditiveAvery 7 років тому

    Could you elaborate on the 10bit vs 110bit differences? If I want to boot VIA ethernet, would the other be better?

  • @dr.caitlinsnow459
    @dr.caitlinsnow459 4 роки тому

    Do you think it would be possible to desolder the RJ45 on that? I know its crazy but what I really need is access to the ethernet output, not the jack itself.

    • @basvandersluis5662
      @basvandersluis5662  4 роки тому

      It is possible. The metal frame is soldered with two pins on the side, and the 8 pins are soldered though the board. So, no SMD-connections.

  • @ovi_4
    @ovi_4 6 років тому +4

    U can buy and micro USB Ethernet adaptor that already has 3 additional USB ports attached to it for about 4 to 9 US dollars

  • @jwuethrich8385
    @jwuethrich8385 7 років тому +1

    u can set the micro usb port to apear as an ethernet adapter to any system that is a usb host. If you are running a linux router (ddwrt or openwrt...possibly some normal router firmware) or windows pc you can just plug it in and it and share ethernet. I connection mine to my router and told the router to bridge the interface to lan main when connected. Main advantage I can see for spi ethernet would be on like a pi 2 or 3 that one is using to run cameras they stream over ethernet. pi ethernet shares usb bus so you quickly run out of bandwidth. on a single core pi I think u will max the cpu before you run into shared usb bandwidth issues

  • @jonnyc2.047
    @jonnyc2.047 6 років тому

    Why not you could if you use the USB hub? Gigabit Ethernet. Because I have no available USB ports, but you would.

  • @cyberstar251
    @cyberstar251 6 років тому

    Can this be done for the raspberry pi 3b and 3b+?

  • @11wwwwwww
    @11wwwwwww 5 років тому

    Thank You Sooooooooo much you made my Day. very Clear Demonstration

  • @ibrahimaltaha3186
    @ibrahimaltaha3186 7 років тому +1

    i would like to ask, can we build HSR/PRP,,, or industrial standard using GPIO of the raspberry pi?

    • @basvandersluis5662
      @basvandersluis5662  7 років тому

      Interesting question. I don't see why it would not be possible. Do you have a specific project in mind? Because I think in most cases it is probably easier and cheaper to just add a few more Raspberry Pi's to your project for redundancy instead of creating (only) ethernet redundancy.

    • @ibrahimaltaha3186
      @ibrahimaltaha3186 7 років тому

      Bas van der Sluis if you would like to help me. we can break the industrial market with such revolutionary idea. about zero redundant links. instead of using those 10000$ fpga dev kits

    • @ibrahimaltaha3186
      @ibrahimaltaha3186 7 років тому

      yes i do have project in mind, (raspberry pi3 + (2 Eth interfaces using gpio) to make (HSR or PRP). But .. i don't know how it is possible to be achieved, is it possible to go down to the frame level with Raspberry PI?

  • @Fatjuice
    @Fatjuice 6 років тому

    Hi, I’m kinda new to RPI’s,
    I have that same module for LAN, and I got a mini buck converter.
    Could you do a video on how to make it PoE?
    Great video!

  • @python360
    @python360 4 роки тому

    Nice guide man,
    Is it still running?
    Just curious as to how reliable the hardware is!

    • @basvandersluis5662
      @basvandersluis5662  4 роки тому

      Actually yes. It is currently being used as a temperature sensor and it's pushing the temperatures to an api every minute.

  • @braselectron
    @braselectron 5 років тому

    Thank you for sharing this information.

  • @Delorean29
    @Delorean29 6 років тому

    Can I use on micro SD card USB 2.0 to SATA DVD player without operative system? Only programs that start up dvdn find usb etc???

  • @JuanSanchez-rb4qu
    @JuanSanchez-rb4qu 6 років тому

    Could the zero support 2 ports with gigabit ethernet? or thats beyond its specs?

    • @basvandersluis5662
      @basvandersluis5662  6 років тому +2

      No. 10 mbps is max. when using the gpio-ports. If you want multiple fast ports, you could try two USB ethernet adapters. The PI has USB2-ports, so the theoretical maximum would then be 480 mbps.

    • @JuanSanchez-rb4qu
      @JuanSanchez-rb4qu 6 років тому +2

      @@basvandersluis5662 but afaik usb2 bandwidth is way behind gigabit ethernet. I know the rpi3 (both A and B) have shields to add two ethernet ports but dont know if those would be gigabit or just 10/100

    • @basvandersluis5662
      @basvandersluis5662  6 років тому +2

      Correct. USB 2 is max. 480 mbps where gigabit is 1000 mbps (or should it be 1024mbps ;). afaik the ethernet of the rpi 2 and 3 use the same controller as the usb ports, so the theoretical max. speed is still 480 mbps. I don't know about the shields, but the shields are using the gpio-pins...

    • @JuanSanchez-rb4qu
      @JuanSanchez-rb4qu 6 років тому

      @@basvandersluis5662 oh dang, got lied on the gigabit...

  • @tuxberlin
    @tuxberlin 8 років тому +1

    Would this work with a normal Pi3 as well ?

    • @basvandersluis5662
      @basvandersluis5662  8 років тому +1

      Yes, but the Pi3 has an ethernet-adapter on board, so it's only useful for cases which require multiple ethernet adapters. Keep in mind that this ENC28J60 is a 10mbit adapter (and even half-duplex in this case), so it's fairly low speed. If your project needs multiple adapters, you would probably be better off with a usb ethernet adapter, since the Pi3 has 4 usb-sockets.

    • @MaciekJackowski
      @MaciekJackowski 5 років тому

      @@basvandersluis5662 Is it faster than wifi for Rpi0W

  • @tubeDude48
    @tubeDude48 6 років тому +2

    Add this program to your computer: nirsoft.net/utils/wireless_network_watcher.html
    And look for Raspberry Pi Foundation. So there is NO need to hookup to HDMI as mentioned at 12:48

  • @andigenous9101
    @andigenous9101 3 роки тому

    thank you!

  • @pahtriac
    @pahtriac 5 років тому

    Werkt dit ook op de Pi 4?

    • @basvandersluis5662
      @basvandersluis5662  5 років тому +1

      Ja, dat denk ik wel. De Pi4 heeft echter genoeg USB-poorten en ethernet aan boord om het zonder deze oplossing te fixen. Een USB-ethernet dongle is veel sneller dan dit ding.

    • @pahtriac
      @pahtriac 5 років тому

      @@basvandersluis5662 Sorry voor de late reactie (werk) Dongles zijn mijn ding niet en er is geen dual Gb-Eth aansluiting is als addon verkrijgbaar voor de Pi4 en wil er heel graag een FW/router van maken. Dus zat er aan te denken om een HAT te maken voor de Pi4 met een 1Gb RJ45 met behulp van jouw bouw wijze, ik weet dat de bus van de USB gedeeld word met de onboard RJ45 doch weet niet of dat dit ook van toepassing is op de GPIO. Als je enig advies heb of inspiratie heb gekregen om dit zelf te doen ik zou je zeer erkentelijk zijn voor bouw advies.

    • @basvandersluis5662
      @basvandersluis5662  5 років тому

      @@pahtriac Pfoe.. Ik weet niet of de GPIO-poorten voldoende snel zijn om een beetje knappe snelheid te halen. Het ding wat ik gebruikt heb haalde max. 10 mbit. Heb je een specifieke reden om zelf een router te bouwen? Ik heb hier zelf een relatief goedkope router in gebruik die Gigabit haalt op z'n WAN-poort en heb de DNS en DHCP-functies uitgeschakeld welke ik laat doen door een Raspberry Pi 2 met Pihole. Het enige wat mijn router nu nog doet is routen en meer niet. Losse acces-points in huis verzorgen de wifi.

    • @pahtriac
      @pahtriac 5 років тому

      @@basvandersluis5662 ik had een oud dual cpu moederbord met 2 100Mb netwerk kaarten aan de muur op zolder geschroeft. W2K + Sambar server en een FW dit werk deden. Doch jaar geleden is die overleden. dus ben weer overgestapt naar de Ziggo router :( De vrouw was er niet happy mee dat ik een ander slachtoffer (^^) aan de muur wilde gaan schroeven. dus keek ik naar andere opties, ik hoorde dat Ubuntu 64 SE voor de Pi4 uit was gekomen dus wilde ik daar mee gaan experimenteren. doch een dual Eth voor de Pi4 is blijkbaar een struikelblokje als je niet van dongles houd

  • @nicopatico
    @nicopatico 4 роки тому

    hi, you're using a pi0 or a pi0W?

    • @basvandersluis5662
      @basvandersluis5662  4 роки тому +1

      It doesn't really matter, but the Pi I used in the video was a non-W version.

    • @nicopatico
      @nicopatico 4 роки тому

      @@basvandersluis5662 thanks

  • @jonnyc2.047
    @jonnyc2.047 6 років тому

    True true why not just add a USB? Hub. But USB hub with power supply include it with the hub so it has extra power because you're well aware USB for connected us BS you just get one with its own power supply, there are about 15 dollars for a nice win 5 to 10 of them. Cause they all have their own power supply can still use your ethernet that you want to use thats faster and still have mouse and all that

  • @linuxamrit
    @linuxamrit 6 років тому

    Greetings from India, Thank you soo much for showing a wonderful teaching stuff, Can you please tell me can we attach 10/100/1000Gbits Ethernet Module, if yes, and you know about that device name please mention here ...

    • @basvandersluis5662
      @basvandersluis5662  6 років тому +1

      Thanks. I don't think that the GPIO ports are fast enough for 100 or even 1000 Mbit ethernet. If you want faster, you can go for a USB Ethernet module, but that is theoretically limited to 480 Mbit (max USB2.0 speed), but the Pi is probably not fast enough to reach that. Anyway, it's faster than the 10Mbit half duplex module of this video. :)

    • @linuxamrit
      @linuxamrit 6 років тому

      in GPIO pins can we attach USB3.0 ?

  • @yigitkadir3649
    @yigitkadir3649 5 років тому

    good video thanks :D

  • @Renodox
    @Renodox 6 років тому

    Could you add this to a pi 3 to get a secondary Ethernet port?

    • @basvandersluis5662
      @basvandersluis5662  6 років тому

      Yes, but a cheap usb ethernet adapter is the best choice for the Pi 3, if you want a secondary adapter.

  • @AdditiveAvery
    @AdditiveAvery 7 років тому +1

    is it reliable?

    • @basvandersluis5662
      @basvandersluis5662  7 років тому

      Yes, I have found it very reliable. I've had open connections for days, using this unit. Never have I had any network issues because of this unit. The only thing which caused the Raspberry to hang was drawing to much power from other GPIO pins.

    • @AdditiveAvery
      @AdditiveAvery 7 років тому

      Thank you for the reply. Where did you end up purchasing yours from? I need a couple hundred of these, and I have found Alibaba to be the cheapest, but the boards may look slightly different. How do I pick the best one? Average price on Alibaba is $2.25 USD when bought in bulk.

    • @basvandersluis5662
      @basvandersluis5662  7 років тому

      I bought mine from eBay. If you need that much, I would buy a couple of these units from different sites and sellers and see which one is best and then order the large amount.

    • @AdditiveAvery
      @AdditiveAvery 7 років тому

      Bas van der Sluis what would be the best way to setup a test to check reliability?

    • @basvandersluis5662
      @basvandersluis5662  7 років тому

      I am not a systems administrator, but my guess would be setting up a ping to a server in the local network. Let it run for a couple of days (or hours) and check the amount of packet loss. Also, I think that stressing the CPU a couple of times while doing this ping is a good idea, because the CPU is mainly responsible for the GPIO pins.

  • @solaceonline
    @solaceonline 7 років тому

    Are you Cptn Duck?

  • @matzmatz4148
    @matzmatz4148 6 років тому

    Nice Video, a lot of stuff explained ,but also a bit too long.