# PS/2 keyboard interface availability

**URL:** <https://community.particle.io/t/ps-2-keyboard-interface-availability/1038>\
**Category:** Firmware\
**Created:** [December 27, 2013, 10:13pm UTC](https://community.particle.io/t/ps-2-keyboard-interface-availability/1038 "2013-12-27T22:13:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/andy/32/20994_2.png) [@andy](https://community.particle.io/u/andy)\
**Post date:** [December 27, 2013, 10:13pm UTC](https://community.particle.io/t/ps-2-keyboard-interface-availability/1038/1 "2013-12-27T22:13:59Z")

</div>

I’m looking to interface a barcode scanner to a sparkcore. The barcode scanner uses the [ps/2(AT)](http://retired.beyondlogic.org/keyboard/keybrd.htm) keyboard interface. There are some [libraries](http://playground.arduino.cc/Main/PS2Keyboard) available for the atmel based arduinos, but I’m not having any luck finding ones that will work with the Sparkcore. Any one have any thoughts on how to go about doing this?

---

<div class="post-metadata">

**Author:** ![timb](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/timb/32/1913_2.png) [@timb](https://community.particle.io/u/timb)\
**Post date:** [December 27, 2013, 11:22pm UTC](https://community.particle.io/t/ps-2-keyboard-interface-availability/1038/2 "2013-12-27T23:22:39Z")

</div>

Have you tried that Arduino Library? At first glance I don’t see anything that would really prevent it from working. Grab Version 2.3 of the library, paste the contents of PS2Keyboard.cpp, PS2Keyboard.h and Simple\_Test.pde—in that order—into a blank Spark Build document.

---

<div class="post-metadata">

**Author:** ![andy](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/andy/32/20994_2.png) [@andy](https://community.particle.io/u/andy)\
**Post date:** [December 30, 2013, 1:43pm UTC](https://community.particle.io/t/ps-2-keyboard-interface-availability/1038/3 "2013-12-30T13:43:21Z")

</div>

Good thought timb. I just assumed it was hardware dependent. I’ve decided to use a raspbery pi to accomplish this in the near term, but plan use Sparkcore as a follow up project. I’ll dig into this again when I get on that path.
