Skip navigation
With a webcam and a raspberry pi emulating a keyboard and mouse, you can have AI drive a computer…
0:00 / 0:23

With a webcam and a raspberry pi emulating a keyboard and mouse, you can have AI drive a computer…

Matt Ferrante

@ferrants2.4K followers

Visit on X
871 likesDownloadOriginal post

44,689 views

With a webcam and a raspberry pi emulating a keyboard and mouse, you can have AI drive a computer and that computer has NO IDEA

60 Comments

Comments from the original post on X (Twitter)

  • Parham Beheshti's profile picture

    @parhamdb

    I use usb nanokvm (~$50) to drive a computer from another one. There is an ethernet version as well.

    36 likes

  • Matt Ferrante's profile picture

    @ferrants

    I should get one of those

    8 likes

  • Parham Beheshti's profile picture

    @parhamdb

    Very very useful.

    4 likes

  • Parham Beheshti's profile picture

    @parhamdb

    Sorry,thats ethernet, i have this one:

    2 likes

  • Michael Hu's profile picture

    @Michael_AI_Hu

    键鼠 HID 是树莓派直接模拟的话,从画面到动作大概隔多少毫秒?

    5 likes

  • Matt Ferrante's profile picture

    @ferrants

    Depends on the task, it makes scripts for things it wants to do repetitively, so that’s quick. But otherwise it needs inference.

    3 likes

  • interpt's profile picture

    @interpt_co

    But why would the computer care??

    5 likes

  • Matt Ferrante's profile picture

    @ferrants

    the computer wouldn't

    5 likes

  • Frit🅾️ Pendej🅾️'s profile picture

    @vwapster

    @interpt_co When's the last time you asked it about it's feelings? You should care more. You can't just treat computers like they're just replaceable hardware.

    1 like

  • interpt's profile picture

    @interpt_co

    @ferrants I don’t care about the wasted token, I always say “please” and “thank you” to my agents, just in case…

    3 likes

  • David Nix's profile picture

    @david_nix

    Dude what?!

    3 likes

  • Matt Ferrante's profile picture

    @ferrants

    Now that I have it working, I can think of exactly what I’ll do with this. Kinda wild

    6 likes

  • Boris K's profile picture

    @kpoxo6op2

    Watch out for crowdstrike which detects Linux devices

    3 likes

  • Victor Mora's profile picture

    @victormora

    love this. any more details on how this works?

    3 likes

  • Matt Ferrante's profile picture

    @ferrants

    Webcam to a more capable computer, though could go to the rpi. Main computer runs hidctl on the pi over ssh, which writes raw USB HId reports to the rpi’s devices. AI runs on the bigger computer to decode what to do, references webcam. But I want to tighten it up.

    12 likes

  • Victor Mora's profile picture

    @victormora

    thanks for the info. please keep going with this project.

  • Kadrian Stahley's profile picture

    @KadrianStahley_

    Wow. Impressive

    3 likes

  • Geopolitics of Romania's profile picture

    @GeopolRomania

    🤨 You need neither a webcam or an external raspberry pi. Just ask the AI from one computer to tunnel through and take control of the other computer on the same Network (it'll use VNC if it's a Windows computer, if not figure out another tool) and take screenshots instead of using a webcam.

    2 likes

  • Matt Ferrante's profile picture

    @ferrants

    That would be pretty clear on the controlled computer though, which is fine, but not what I was trying to demonstrate

    8 likes

  • Geopolitics of Romania's profile picture

    @GeopolRomania

    Not sure what you mean by "would be pretty clear" but it's able to get past Captchas for instance. No problem.