# Porting Arduino Serial (PS2) Keyboard Library

**URL:** <https://community.particle.io/t/porting-arduino-serial-ps2-keyboard-library/8131>\
**Category:** Libraries\
**Created:** [November 14, 2014, 9:34pm UTC](https://community.particle.io/t/porting-arduino-serial-ps2-keyboard-library/8131 "2014-11-14T21:34:48Z")\
**Posts on this page:** 5\
**Page:** 4

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [November 21, 2014, 5:20pm UTC](https://community.particle.io/t/porting-arduino-serial-ps2-keyboard-library/8131/62 "2014-11-21T17:20:31Z")

</div>

here it is: 😄

> [@kennethlimcp](#):
>
> @btheye, USB interface is not that easiy to interface with the core since the STM32F103B does not come with OTG capabilities. The Serial/PS2 version will be much easier to implement!

---

<div class="post-metadata">

**Author:** ![btheye](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@btheye](https://community.particle.io/u/btheye)\
**Post date:** [November 21, 2014, 5:25pm UTC](https://community.particle.io/t/porting-arduino-serial-ps2-keyboard-library/8131/63 "2014-11-21T17:25:47Z")

</div>

Does the [USB host shield library](https://github.com/otelconsulting/spark-usb-host) not give OTG capabilities used with a [USB host shield](http://www.circuitsathome.com/products-page/arduino-shields) and the [Spark shield-shield](https://store.spark.io/?product=shield-shield)?

---

<div class="post-metadata">

**Author:** ![btheye](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@btheye](https://community.particle.io/u/btheye)\
**Post date:** [November 21, 2014, 7:24pm UTC](https://community.particle.io/t/porting-arduino-serial-ps2-keyboard-library/8131/64 "2014-11-21T19:24:49Z")

</div>

I have found a bad connection! I will fix it and let you know the results.

---

<div class="post-metadata">

**Author:** ![btheye](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@btheye](https://community.particle.io/u/btheye)\
**Post date:** [November 21, 2014, 8:20pm UTC](https://community.particle.io/t/porting-arduino-serial-ps2-keyboard-library/8131/65 "2014-11-21T20:20:17Z")

</div>

@kennethlimcp We have serial output! My next objective is to make the data transmission occur over WiFi - I need to do some research on the best way to to accomplish this, options being: Spark.publish, Spark.variable, TCPServer/TCPClient, or UDP. I am not too concerned about byte limits, but I will need to push the data from the Spark Core by taking an action such as scanning a barcode (as opposed to a time-driven process), does that limit my options or should I delve into each to see which fits my needs best?

---

<div class="post-metadata">

**Author:** ![maxstralka](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@maxstralka](https://community.particle.io/u/maxstralka)\
**Post date:** [April 27, 2016, 8:10pm UTC](https://community.particle.io/t/porting-arduino-serial-ps2-keyboard-library/8131/66 "2016-04-27T20:10:59Z")

</div>

Gosh, thank you! You just saved me a ton of time!

[Previous page](https://community.particle.io/t/porting-arduino-serial-ps2-keyboard-library/8131.md?page=3)
