# Serial port

**URL:** <https://forum.makecode.com/t/serial-port/549>\
**Category:** Arcade\
**Created:** [September 18, 2019, 3:53pm UTC](https://forum.makecode.com/t/serial-port/549 "2019-09-18T15:53:19Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gus/32/28_2.png) [@Gus](https://forum.makecode.com/u/Gus)\
**Post date:** [September 18, 2019, 3:53pm UTC](https://forum.makecode.com/t/serial-port/549/1 "2019-09-18T15:53:19Z")

</div>

What are the options for using serial ports with Arcade?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [September 18, 2019, 8:16pm UTC](https://forum.makecode.com/t/serial-port/549/2 "2019-09-18T20:16:45Z")

</div>

For now, go to pxt.json, edit as text and add `"serial": "*"` in the list of dependencies.

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [September 19, 2019, 9:46am UTC](https://forum.makecode.com/t/serial-port/549/3 "2019-09-19T09:46:46Z")

</div>

Note that codal’s serial is meant for slow speeds. If you try to run it above 115k (or maybe even at) you may loose some characters. I started working on an alternative high-speed DMA-based interface a while ago, but didn’t get very far - James didn’t like my hack and I didn’t have time to do it properly. See [https://github.com/lancaster-university/codal-samd/pull/25](https://github.com/lancaster-university/codal-samd/pull/25) (this is for SAMD but the same principle would apply on STM)

---

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [November 28, 2019, 9:04am UTC](https://forum.makecode.com/t/serial-port/549/4 "2019-11-28T09:04:33Z")

</div>

> [@peli](#):
>
> For now, go to pxt.json, edit as text and add `"serial": "*"` in the list of dependencies.

Nice. I was actually curious about this as I would like to use a Wifi module on the edge connector of the meowbit.

I looked at the code and was wondering about `SerialDevice internalCreateSerialDevice(DigitalInOutPin tx, DigitalInOutPin rx, int id) { `. Does the `id` indicate it is possible to have more than one serial connection defined?

---

<div class="post-metadata">

**Author:** ![bosnivan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bosnivan/32/637_2.png) [@bosnivan](https://forum.makecode.com/u/bosnivan)\
**Post date:** [February 19, 2020, 5:11pm UTC](https://forum.makecode.com/t/serial-port/549/5 "2020-02-19T17:11:38Z")

</div>

Hi! Do we have some documentation or example(s) for serial usage?  
@gbraad, I also want to connect Meowbit to WiFi module. If you already did it, can you share your code? I short with time. Thanks.

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [February 19, 2020, 5:14pm UTC](https://forum.makecode.com/t/serial-port/549/6 "2020-02-19T17:14:48Z")

</div>

Serial is currently not implemented on stm32. Hopefully I can take a look at it in the next few weeks.

---

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [March 1, 2020, 2:28pm UTC](https://forum.makecode.com/t/serial-port/549/7 "2020-03-01T14:28:45Z")

</div>

Never got around this; focus has been on other stuff due to the situation in China.

---

<div class="post-metadata">

**Author:** ![infchem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/infchem/32/1095_2.png) [@infchem](https://forum.makecode.com/u/infchem)\
**Post date:** [June 29, 2020, 6:57am UTC](https://forum.makecode.com/t/serial-port/549/9 "2020-06-29T06:57:21Z")

</div>

Can I just remove `15` in arcade.cfg to use the GPIO15 pin for UART0\_RXD, like `BTN_DOWN4=` ?

---

<div class="post-metadata">

**Author:** ![infchem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/infchem/32/1095_2.png) [@infchem](https://forum.makecode.com/u/infchem)\
**Post date:** [July 5, 2020, 2:39pm UTC](https://forum.makecode.com/t/serial-port/549/10 "2020-07-05T14:39:59Z")

</div>

Answer to myself: yes

---

<div class="post-metadata">

**Author:** ![AnsonMustang](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ansonmustang/32/2878_2.png) [@AnsonMustang](https://forum.makecode.com/u/AnsonMustang)\
**Post date:** [December 30, 2020, 3:12am UTC](https://forum.makecode.com/t/serial-port/549/11 "2020-12-30T03:12:07Z")

</div>

Any update on this?  
I want to connect KOI AI camera to the meowbit

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [December 30, 2020, 10:30am UTC](https://forum.makecode.com/t/serial-port/549/12 "2020-12-30T10:30:33Z")

</div>

Unfortunately it never happened. PRs are welcome though!
