raspberry pi pico - interfacing with ps2 keyboard with pio

  Рет қаралды 4,386

Brenden Adamczak

Brenden Adamczak

Күн бұрын

Пікірлер: 13
@ErTnEc
@ErTnEc Жыл бұрын
Nice example, although not sure if I'm missing something? I've connected a Model F AT keyboard to my RP2040, I can read the scancodes just fine, but when trying to send 0xED to set the LED, the keyboards response is 0xFE (Resend).
@brendenadamczak9283
@brendenadamczak9283 Жыл бұрын
Interesting? Do you have a logic analyzer to grab whats happening?
@ErTnEc
@ErTnEc Жыл бұрын
@@brendenadamczak9283 thanks, I actually figured it out not long after my comment.. Whenever you call atk_send_command, you are only ever adding the parity bit when you send the LED state itself, but when you send initial commands (such as PS2_COMMAND_SET_LED), you're not adding the parity bit to the command, so the keyboard fails to acknowledge it.
@fredrikbergquist5734
@fredrikbergquist5734 2 жыл бұрын
Looking at Gist I can’t find the code for the PIO
@brendenadamczak9283
@brendenadamczak9283 2 жыл бұрын
so the pio code is here github.com/brendena/atkPico/releases/tag/v0.1
@salmantechnologies282
@salmantechnologies282 Жыл бұрын
Here You are Using Pi_pico as a Device right and our pc will be the host or both host or device kindly tell me about i am learning USB protocol
@brendenadamczak9283
@brendenadamczak9283 Жыл бұрын
Yep i'm using the pico as a device in this video. In USB there can be lots of usb device but only one host. So if you plugging a usb device into you pc then it's going to be a device.
@fredrikbergquist5734
@fredrikbergquist5734 2 жыл бұрын
Really nice! Is the timing dependent on clock speed? I am overclocking the Pico, will that be a problem?
@brendenadamczak9283
@brendenadamczak9283 2 жыл бұрын
Should work at different speeds. The code has a clock to calc the proper divide.
@syrus3k
@syrus3k 5 ай бұрын
Lol, I've been bashing my head against a wall and it's very obvious now from your video that I'm putting 5v into the PICO's GPIO with clock and data pins hence it's not working.. whoops.
@csbluechip
@csbluechip 11 ай бұрын
Another awesome video ...sadly I want to pretend to be a PS/2 mouse/keyboard ...but much was learned :)
@brendenadamczak9283
@brendenadamczak9283 11 ай бұрын
Got you covered here too! kzbin.info/www/bejne/d4Wqi3dodt55ocU
@csbluechip
@csbluechip 11 ай бұрын
@@brendenadamczak9283 You Star! :)
Pi Pico + KMK = the perfect combo for Custom Keyboards
7:41
Jan Lunge
Рет қаралды 85 М.
#220 PICO and PIO: First Look - far easier than you might 💭 think
21:51
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Battery Power Monitoring on Raspberry Pi Pico W  | DrJonea.co.uk
14:27
Dr Jon EA Ltd
Рет қаралды 1,4 М.
UART | Raspberry Pi Pico Workshop: Chapter 4.2
11:57
Core Electronics
Рет қаралды 6 М.
What Happens When You Connect A PS2 To A Raspberry Pi? | PSX-Pi SMB Share
13:57
Macho Nacho Productions
Рет қаралды 439 М.
This is how you destroy Raspberry Pi
9:10
Jeff Geerling
Рет қаралды 541 М.
PicoMiteVGA: Raspberry Pi Pico Boot-to-BASIC Microcomputer
23:58
ExplainingComputers
Рет қаралды 132 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 1,1 МЛН
Transform an old broken Keyboard to a Macro Keyboard
8:11
NerdCave
Рет қаралды 63 М.
How does a USB keyboard work?
34:15
Ben Eater
Рет қаралды 3,3 МЛН