# Windows GPIO input?

**URL:** <https://discourse.nodered.org/t/windows-gpio-input/80207>\
**Category:** Hardware\
**Created:** [1 August 2023 08:35 UTC](https://discourse.nodered.org/t/windows-gpio-input/80207 "2023-08-01T08:35:33Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![MDAR](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mdar/32/10700_2.png) [@MDAR](https://discourse.nodered.org/u/MDAR)\
**Post date:** [16 August 2023 06:42 UTC](https://discourse.nodered.org/t/windows-gpio-input/80207/6 "2023-08-16T06:42:54Z")

</div>

I agree that hooking up your expensive PC directly is a risk.

But as you're using NodeRed, a simple £20 ESP device seems like a good option.

I am a big fan of the M5stickC-Plus for all kinds of tasks.

$10 M5StickC

> **[M5StickC ESP32-PICO Mini IoT Development Kit](https://shop.m5stack.com/collections/m5-controllers/products/stick-c)**
>
> M5StickC is a mini M5Stack, powered by ESP32. It is a portable, easy-to-use, IoT development board. The open source code & engineering communities that will help you maximize your benefits in every step of the developing process Internet of...

$20 M5stickC-Plus

> **[M5StickC PLUS ESP32-PICO Mini IoT Development Kit](https://shop.m5stack.com/collections/m5-controllers/products/m5stickc-plus-esp32-pico-mini-iot-development-kit)**
>
> M5StickC PLUS supports WiFi and LCD display, built-in esp32-PICO-D4, 6-Axis IMU, infrared, RTC, Microphone, LED, IMU, Buttons, PMU, etc, compatible with UIFlow/MicroPython/Arduino. It's a portable, easy-to-use, open-source, AIoT Development Kit, and...

For example

> [@RGB565 Color Space (mainly for SPI TFT screens)](https://discourse.nodered.org/t/rgb565-color-space-mainly-for-spi-tft-screens/80574):
>
> #RGB565 #RGB888 #RGB #mqtt #M5Stick #ESP32 #gpio #colorpicker I've got a couple of [M5StickC-Plus](https://shop.m5stack.com/collections/m5-controllers/products/m5stickc-plus-esp32-pico-mini-iot-development-kit) devices [image] and have them working with the NodeRED [aedes MQTT broker](https://flows.nodered.org/node/node-red-contrib-aedes), using JSON payloads. example :- {"LED":true,"LEDrate":200,"beep":true,"beepPitch":2000,"bgColour":-1,"colour":-2,"screen":2,"message":"Hello World","SerialDebug":false,"encLED":0xff0000} From there I can read the status of both button, adapt the screen content, set the LED and Beep. I've even included the ability to use […

While the flow and script I've created are a terrible overkill for what you're looking for, it would work perfectly.

There is a Grove port on the bottom of the M5StickC devices, which I've used as 2 GPi pins, to detect 0v contact closures.

The Arduino Script is configured for MQTT **and** Serial (via USB) communication, using a JSON structure.

I'm happy to share the script and sample Flow.

My longer term plan is to adapt my script to work with the smaller M5 Atom S3

> **[ATOMS3 Dev Kit w/ 0.85-inch Screen](https://shop.m5stack.com/products/atoms3-dev-kit-w-0-85-inch-screen)**
>
> AtomS3 is a esp32 development kit based on esp32S3 chip, integrated WiFi function, and 8M FLASH; 0.85 inch IPS screen; Programmable button function,built-in 5V to 3.3V circuit, 6-axis gyro sensor MPU6886.This esp32 board can used as smart home...

---

_[View the full topic](https://discourse.nodered.org/t/windows-gpio-input/80207)._
