Connecting Raspberry Pi to PIC16F887 using UART on both

Home Forums Raspberry Pi Connecting Raspberry Pi to PIC16F887 using UART on both

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11881
    Omotoso Omoniyi
    Participant

    Hi guys, i have followed the tutorials on

    1.  Using UART of PIC Microcontroller – MPLAB XC8 at https://electrosome.com/uart-pic-microcontroller-mplab-xc8/

    2. Using UART on raspberry Python. Link at https://electrosome.com/uart-raspberry-pi-python/

    The project i am working on will have me send pure strings(texts) from raspberry Pi to PIC and vice versa using UART, I have wired the circuit as expected but the message i am getting on the raspberry Pi and on the PIC is sort of garbled. I do not know what is responsible for this, please does anyone have an idea of what i should do to get the messages in the write format. Thanks!

    #11918
    Ligo George
    Keymaster

    Hi,

    Check the following.

    1. Ground of both Raspberry Pi and PIC should be made common.
    2. Baud rate, Parity Bits, Number of bits should be same
    3. Raspberry Pi output is 3.3V while PIC is 5V (3.3V PIC is also available). So you should use level shifting to prevent any possible damages to Raspberry Pi.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
>