Configure Serial Raspberry Pi 4B - UART - GPIO 14 and 15

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 46

  • @eliashanelt3027
    @eliashanelt3027 Před rokem +4

    Great video! U litterally helped launching a rocket today :)

    • @python360
      @python360  Před rokem

      Wow that's amazing, I've had a lot of nice feedback since I started the channel, but this has to be one of my favourite comments!!!
      🚀👍😎

  • @PIPOPB
    @PIPOPB Před 2 lety +1

    在網路上找了很久,終於在您這邊得到解答,感謝您的教學。
    After searching on the Internet for a long time, I finally got the answer on your side, thank you for your teaching.

  • @goodsell1322
    @goodsell1322 Před 2 lety +1

    After searching the internet forever I finally came across your excellent explanation. I wanted an Arduino to send data to the Raspi4 Rx port, instead of using the Arduino USB-B programming port to send it. Which would have tied up the programming port. Not good.
    Your simple terminal commands turned on the Raspi Rx port, and along with 'ttyS0', the link between the Arduino Tx1 and Raspi4 Rx was a success.
    Frankly, I don't understand what the heck 'cat /prod/device-tree/model' has to do with anything, but it worked.
    I can't thank you enough.
    Dave
    Apple Valley, CA

    • @python360
      @python360  Před 2 lety

      Thank you very much for the very kind comment, glad it got you working, if they are of interest I have 2 other videos of me messing about with Pi and Arduino as well:
      czcams.com/video/eXpzo8CTSuY/video.html
      czcams.com/video/tE3BokF92gc/video.html

    • @goodsell1322
      @goodsell1322 Před 2 lety +1

      @@python360 My next challenge is to have an Arduino GPIO port trigger a 30 image slide show stored on the Raspi. Preferably with full screen HDMI output from the Raspi. I've used GNUPlot in the past and it was great for plotting daily windspeed. This time I am trying to show 30 days of sunspot growth and motion across the face of the sun. The sun's rotation period is 27 days.

    • @shangavelanm1282
      @shangavelanm1282 Před rokem

      Dzzz

  • @JustSomeVideos0
    @JustSomeVideos0 Před 2 lety +1

    Thank you! I'd seen references to disabling bluetooth to get the hardware serial port working but mostly referencing the 3 and wasn't sure if the 4 was the same. Thankfully the wifi module still works (so I can use VNC over wifi to control) even though the notes at the end suggest both wifi and bluetooth are effected by PL011. My TFmini plus Lidar sensor is now outputting. Cheers.

    • @python360
      @python360  Před 2 lety

      Good, glad you got it working, thanks for the comment as well 👍👍

  • @jakeclark5184
    @jakeclark5184 Před 2 lety +2

    Thank you sir, saved me a lot of frustration and head ache!

    • @python360
      @python360  Před 2 lety

      Top man! Thanks for the comment, glad it saved you some time 😉

  • @iaroslavz2644
    @iaroslavz2644 Před 2 měsíci +1

    Thank you very much. That helped a lot.

    • @python360
      @python360  Před 2 měsíci

      Thank you for the kind comment!! 👍

  • @bruhhh2524
    @bruhhh2524 Před 2 lety +1

    thanks so much I am struggling with that from morning
    and also you are first chad engineer

    • @python360
      @python360  Před 2 lety +1

      Respect! Thank you man! 👍

  • @michaelbowles7456
    @michaelbowles7456 Před 2 lety +2

    Perhaps I misunderstood- on my v1.1 Pi 4B it only worked with ttyS0. (Using my Pi with FLdigi to control a Ham radio, so maybe the software makes a difference?). Besides that, wonderful video- I'd never have gotten it to work without it!

    • @python360
      @python360  Před 2 lety

      Yeah, the best thing to do is to issue
      $dmesg | grep tty
      And from the output you would see the appropriate tty, depending on the hardware attached .

  • @TooSlowTube
    @TooSlowTube Před rokem +1

    This refers to the Pi 4 and the Pi 4B. Are they two different models, or is the description just not used consistently?

    • @python360
      @python360  Před rokem +1

      To quote the Raspberry Pi forum : "To make this simpler, the Pi4b IS the Pi4, but takes longer to type.
      Seeing as there is currently only one model of Pi4 (the Pi4 model b), many people just refer to it as a Pi4" !! 👍

    • @TooSlowTube
      @TooSlowTube Před rokem +1

      @@python360 I see. Thanks. That does seem like asking for trouble if they ever release a 4B+ or a 4A/4A+ though :)

    • @python360
      @python360  Před rokem

      @@TooSlowTube To be honest by the time they have any stock I suspect it'll 4C !!

    • @TooSlowTube
      @TooSlowTube Před rokem

      @@python360 ThePiHut and Pimoroni have had stock of the 4B recently. I bought a 2GB 4B from ThePiHut a little over two weeks ago. If you set an in stock notification, you may get to buy one before they sell out again. If not, just set it again because they seem to come back in stock every few days.
      FWIW, I've tried MiniDexed on both the 3B v1.2 and the 4B. It gets much hotter on the 4B, even with copper heatsinks on. I don't think it really gets to idle on either so the 4B might need a fan, just to do the same thing as the 3B.

  • @user-lr5sy3fx8m
    @user-lr5sy3fx8m Před rokem +1

    Great video and I was searching for this to try exactly but when I give command on terminal to install MINICOM as per video then I get a fail with error "E: Unable to locate package minicom". I wonder what is wrong with it. Can you help please?

    • @python360
      @python360  Před rokem

      have you installed the minicom driver? sudo apt-get install minicom

  • @brian60
    @brian60 Před rokem

    I am trying this on a Raspberry Pi 4 with Ubuntu Linux flashed. When I run $pinout, the result is an error:
    Unable to initialize GPIO Zero. This usually means that you are not running
    pinout on a Raspberry Pi. If you still wish to run pinout, set the
    GPIOZERO_PIN_FACTORY environment variable to 'mock' and retry, or refer to the
    Remote GPIO section of the manual* to configure your environment to remotely
    access your Pi.......
    Thanks for hte assistance

  • @Trade_Studs
    @Trade_Studs Před rokem +1

    Sir how to communicate raspberry send A to raspberry B recived but output was same in used USB cable

    • @python360
      @python360  Před rokem

      Can you explain a bit more what you're trying to achieve?

  • @mohamedwahbi7992
    @mohamedwahbi7992 Před rokem

    hello, i do the samething but when i want to write the AT command on the command line of minicom the CLI still blocked

  • @XDjioikeir
    @XDjioikeir Před 2 lety +1

    Would this configuration work on the serial communication (GPIO) pins I.e. TX,RX ?

    • @python360
      @python360  Před 2 lety

      yes, but do not try to put more than 3.3V on any GPIO pin and don't try to draw more than 3mA per output.

  • @luigiprovencher
    @luigiprovencher Před rokem +1

    I've yet to be able to get this to work. Not getting any output on Putty terminal, GTKTerm terminal, or Screen terminal.

    • @python360
      @python360  Před rokem

      are you connecting over wifi or cable?

    • @luigiprovencher
      @luigiprovencher Před rokem

      @@python360 WiFi when setting up Raspbian on a monitor and then I guess it's still WiFi when I try connecting it to my laptop with the FTDI adapter because I don't have the Ethernet cable plugged in.

    • @python360
      @python360  Před rokem

      Did you create the 'ssh' file with the Wi-Fi said and password when you set up Caspian?

    • @luigiprovencher
      @luigiprovencher Před rokem +1

      @@python360 I didn't create any ssh file because I didn't even know that I had to. All's I did was put Raspbian on a flashdrive because I'm USB booting it and then went into the initial setup process after booting the raspberry pi and then updated it via sudo apt update && sudo apt upgrade in the terminal and then enabled the serial port via raspberry configuration app or software that's in Raspbian by default.

    • @python360
      @python360  Před rokem +1

      Ah ok, so if you have a monitor connected, go to terminal and do 'ssh-keygen' you can find full info on Google on " set up ssh" 👍

  • @andretislaric604
    @andretislaric604 Před rokem

    I followed your steps but when I type tail /boot/config.txt there is no line with enable_uart=1. What can I do?

    • @TooSlowTube
      @TooSlowTube Před rokem

      You'd need to add the line with a text editor.

  • @Trade_Studs
    @Trade_Studs Před rokem

    Sir how to communicate raspberry send A to raspberry B recived but output was same