# Arcade - pybadge Serial - No Data Sent/Received

**URL:** https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379
**Category:** Arcade
**Created:** [January 6, 2021, 4:38pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379 "2021-01-06T16:38:34Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Grant-Archibald-MS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/grant-archibald-ms/32/2811_2.png) [@Grant-Archibald-MS](https://forum.makecode.com/u/Grant-Archibald-MS)
#### Post date: [January 6, 2021, 4:38pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/1 "2021-01-06T16:38:35Z")

</div>

I am trying to connect to the serial port on a pybadge from MakeCode Arcade I have configured the application as follows but I am not receiving any data

pxt.json - Configured to import serial

```json
{
    "name": "SerialTest1",
    "description": "",
    "dependencies": {
        "device": "*",
        "serial": "*",
        "arcade-text": "github:microsoft/arcade-text#v1.3.0"
    },
    "files": [
        "main.blocks",
        "main.ts",
        "README.md",
        "main.py"
    ],
    "preferredEditor": "tsprj"
}

```

main.js - Displays error -1012 from serialDevice.Read()

```javascript
let text : TextSprite = null
text = textsprite.create("Starting")
text.setOutline(1, 6)
scene.setBackgroundColor(0)
serial.redirect(pins.TX, pins.RX, BaudRate.BaudRate115200)
text.setText("Started12")
forever(function on_forever() {
    pause(2000)
    let byte = serial.device().serialDevice.read()
    text.setText(byte.toString())
})

```

**Pin Connections**

 ![fritzing](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9fc7c9cf0d3042ead0bd1f0a131d646877ab389a.png)

**Python Verification Code**

I have verified that text can be sent and received with the following circutpython code

```python
import board
import busio
uart = busio.UART(board.TX, board.RX, baudrate=115200)
while True:
   data = uart.read(1) # read a byte
   if data is not None:
      data_string = ''.join([chr(b) for b in data])
      print(data_string, end="")
      uart.write(data)

```

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [January 8, 2021, 8:37pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/2 "2021-01-08T20:37:41Z")

</div>

@mmoskal any ideas?

---

<div class="post-metadata">

### Author: ![Grant-Archibald-MS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/grant-archibald-ms/32/2811_2.png) [@Grant-Archibald-MS](https://forum.makecode.com/u/Grant-Archibald-MS)
#### Post date: [January 24, 2021, 10:19pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/3 "2021-01-24T22:19:06Z")

</div>

I have also raised [Serial - No Send / Receive Data · Issue #2822 · microsoft/pxt-arcade (github.com)](https://github.com/microsoft/pxt-arcade/issues/2822)

---

<div class="post-metadata">

### Author: ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)
#### Post date: [January 25, 2021, 4:01pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/4 "2021-01-25T16:01:10Z")

</div>

this should be in the microbit forum

---

<div class="post-metadata">

### Author: ![Grant-Archibald-MS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/grant-archibald-ms/32/2811_2.png) [@Grant-Archibald-MS](https://forum.makecode.com/u/Grant-Archibald-MS)
#### Post date: [January 25, 2021, 4:21pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/5 "2021-01-25T16:21:29Z")

</div>

Why is that? The device being connected to is a microbit which is working correctly. This issue relates to the pybadge which does not send or receive serial data

---

<div class="post-metadata">

### Author: ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)
#### Post date: [January 25, 2021, 5:01pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/6 "2021-01-25T17:01:19Z")

</div>

then this should be in the pybadge forum

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 25, 2021, 5:24pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/7 "2021-01-25T17:24:46Z")

</div>

The PyBadge doesn’t have its own Forum @TakeTheL08. The PyBadge (and PyBadge LC, and EdgeBadge, and PyGamer) is manufactured by Adafruit Industries, so you could go to their forums too. You could also go to their Discord, which you can find at the end of almost every blog post.

---

<div class="post-metadata">

### Author: ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)
#### Post date: [January 25, 2021, 5:27pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/8 "2021-01-25T17:27:44Z")

</div>

@Grant-Archibald-MS

---

<div class="post-metadata">

### Author: ![Grant-Archibald-MS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/grant-archibald-ms/32/2811_2.png) [@Grant-Archibald-MS](https://forum.makecode.com/u/Grant-Archibald-MS)
#### Post date: [January 25, 2021, 5:40pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/9 "2021-01-25T17:40:37Z")

</div>

@TakeTheL08 specifically this looks to be an issue in pxt-arcade and how it interfaces with SAMDSerial.cpp as part of the CODAL library

---

<div class="post-metadata">

### Author: ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)
#### Post date: [November 30, 2021, 5:50pm UTC](https://forum.makecode.com/t/arcade-pybadge-serial-no-data-sent-received/5379/10 "2021-11-30T17:50:01Z")

</div>

I tryed import serial just like yours : “serial”: “\*”,  
It’s OK in simulator, but got following error when downloading  
**The hex file is not available, please connect to internet and try again.**  
Is it because current serial implement doesn’t compatible with stm cpu (which MeoBit using) ?
