Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial connection (UART) not clear in readme.md #3

Open
FollyMaddy opened this issue Mar 7, 2021 · 3 comments
Open

Serial connection (UART) not clear in readme.md #3

FollyMaddy opened this issue Mar 7, 2021 · 3 comments

Comments

@FollyMaddy
Copy link

FollyMaddy commented Mar 7, 2021

Hi Graham,

First of all, It's really great what you are doing here, amazing !

I had to overcome some troubles,but now I have a picture on the monitor.
So that's really nice !

I am now trying to send keyboard events to the pico from my rpi4.
Reading your readme it's a bit unclear what pins I have to use for this.
Do I have to use gpio21 of the pico to receive the uart communication ?
And, do I have to use gpio14 of the rpi4 to send the uart communication ?

With using the forwarder :
It's not directly clear to me what the ttydev / ttyUSB0 device is.
Perhaps a dumb question, but Is it the keyboard the ttydevice ?
Or is it an USB-SERIAL(UART) dongle to communicate with the pico ?
And, can I use a gpio pin of the rpi instead ?

What do I have to do to get it working (using the gpio pins would be nice) ?

@kilograham
Copy link
Owner

ah good point; i'm so used to having a UART set up

https://datasheets.raspberrypi.org/pico/getting-started-with-pico.pdf section 4.5 tells you how to setup (though as you realized you need to use pin 20/21 on the Pico not 0/1)

@FollyMaddy
Copy link
Author

Thanks.
Seems I am in the good direction, because I already read some of that section.
I will look deeper into that.
Will let you know how it goes.

@FollyMaddy FollyMaddy changed the title uart connection not clear Serial connection (UART) not clear in readme.md Mar 9, 2021
@FollyMaddy
Copy link
Author

FollyMaddy commented Mar 9, 2021

It's working !
But there is no info in the forwarder window, is this correct ?

Can you put the next information in your readme.md ?

First enable the serial port in raspi-config and reboot the RPI.

Make the connections :
RPI <=> pico
GND (Pin 14) <=> GND (Pin 28) (it works without this, if the pico is connected in the USB of the RPI)
GPIO15 (UART_RX0, Pin 10) <= GP20 (UART0_TX, Pin 26) (it works without this)
GPIO14 (UART_TX0, Pin 8) => GP21 (UART0_RX, Pin 27) (important)

Use the sdl_event_forwarder with this command :
./sdl_event_forwarder /dev/serial0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants