Electronic – arduino – IO Pins for Computer like an Arduino

arduinocomputersiomicrocontroller

Just wanting to ask if there's a way that an old computer could be like a microcontroller. In the sence that it has a range of pins (standard, PWM and analogue), both input and out put could be emulated by the operating system.

Best Answer

If you mean a VERY old computer: the parallel port on the really old ones (IBM PC) was such an I/O port. On later ones it was a bit more complex, but could still be read and written by a simple I/O instruction.

On current PCs things are not that simple any more, and there are layers upon layers of hardware and software between the CPU and pins that go to the outside world.

If you want to play with I/O pins: get a bare micro-controller (PIC, Cortex M0, AVR), or a development board (Arduino is a popular one), or a Raspberry Pi.