Connect Arduino to PC as a device

Hi, I have one idea, but I don't is it possible or not.
Main idea:

  1. I connect the arduino to the computer
  2. Windows should detect device and open window same as i insert CD-disk
  3. Than i can run a windows programm from my arduino
    Is it possible to do it?

Is it possible to do it?

The way you describe it? No.

The Arduino is recognized as a USB device. There are already drivers that know how to read from and write to the Arduino. You would have to replace those drivers to make the Arduino do something else. Then, you'd have an interesting time uploading a new sketch to it.

If you knew how to write such a driver, you wouldn't have needed to ask the question.

Ok, thanks. I hoped that there is some easy way, but it’s not.

viacheslav_zh:
2. Windows should detect device and open window same as i insert CD-disk

There are some dev boards that show up as a drive and you can upload to them just by copying files to the drive. Arduino doesn't do that because it would actually make things way more complicated for beginners than simply clicking the "Upload" button in the Arduino IDE. Also, it wouldn't really be practical on the classic Arduino boards.

viacheslav_zh:
3. Than i can run a windows programm from my arduino

For some very non-standard definition of "windows programm" and "arduino", that might be possible. But really, no it's not possible.

It sounds like you're looking for more of a single board computer, or maybe MicroPython/CircuitPython.