# Wired communication to Pi Pico

**URL:** <https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358>\
**Category:** General\
**Created:** [22 November 2024 15:16 UTC](https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358 "2024-11-22T15:16:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sammachin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sammachin/32/5121_2.png) [@sammachin](https://discourse.nodered.org/u/sammachin)\
**Post date:** [22 November 2024 15:16 UTC](https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358/1 "2024-11-22T15:16:55Z")

</div>

I need to send some 'commands' to a pi pico device thats running some custom micropython code over a wired connection from Node-RED running on a RasPi.

Anyone got a good solution to this, I only need a few basic state switch comands so simplest would be to wire 3-4 GPIO lines across and just set one of them high depending on the mode I need to activate on the Pico.

Or maybe a serial connection via GPIO??

Something else?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [22 November 2024 15:23 UTC](https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358/2 "2024-11-22T15:23:04Z")

</div>

This topic talks about mqtt with micro python, it may help [How to receive MQTT data using Subscribe and callback](https://discourse.nodered.org/t/how-to-receive-mqtt-data-using-subscribe-and-callback/86596/1)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [22 November 2024 15:29 UTC](https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358/3 "2024-11-22T15:29:09Z")

</div>

That thread seems to be assuming wifi.

Does MQTT work over a serial port?

---

<div class="post-metadata">

**Author:** ![sammachin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sammachin/32/5121_2.png) [@sammachin](https://discourse.nodered.org/u/sammachin)\
**Post date:** [22 November 2024 15:38 UTC](https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358/4 "2024-11-22T15:38:13Z")

</div>

> [@jbudd](#):
>
> Does MQTT work over a serial port?

No, MQTT relies on a network stack (and a broker) so way more overhead than would be needed for a local wired connection!  
Also the Pico doesn't have a network interface (its not a PicoW)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 February 2025 15:39 UTC](https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358/5 "2025-02-20T15:39:03Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
