Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    SD card wont initialize when connected to a Serial connection

    Scheduled Pinned Locked Moved Support & Troubleshooting
    3 Posts 2 Posters 106 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JackBasson
      last edited by

      Hello, I need some troubleshooting help.
      I am reading some instruments with the arduino and then sending the data through to my SiPy via UART. This all works well the problem comes when i want to save the data on the SD card mounted on the expansion board. I have noticed that whenever I disconnect the tx line(arduino) from the P4 pin (Sipy) the sd card functions work perfectly well. When the arduino is connected to the SiPy i get initialization problems on the Sipy. The Arduino and Sipy share a common ground. Thank you in advance

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @JackBasson
        last edited by

        @JackBasson P4, P8 and P23 are needed for the SD card. You should use another Pin but P4 for UART, for instance P3 and P9. UART pins can be almost arbitrarily assigned with the pins=(TX_PIN, RX_PIN) option of uart.init() or the constructor.
        So using:

        from machine import UART
        uart=UART(1, baudrate, pins=('P9', 'P10'))

        you assign TX to P9 and RX to P10.

        1 Reply Last reply Reply Quote 2
        • J Offline
          JackBasson
          last edited by

          Robert, you are my hero! thank you so much.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom