How To Add Keyboard To Your Meshtastic Node
Learn how to easily integrate the M5Stack CardKB Keyboard into your Meshtastic Node, transforming it into a standalone communication device. Follow step-by-step instructions and adapt the process for various Meshtastic devices. Start typing and sending messages directly from your node today!
In this guide, we're going to show you how to add M5Stack CardKB Keyboard into your current ESP32 Lora Meshtastic Node setup. This process can be adapted for other ESP32-based devices with a few tweaks. By adding a keyboard to your node, you'll transform it into a fully independent unit. Now, you'll be able to send messages and even control some functions (though support may be limited) directly from the node itself, without relying on a phone. Let's get started!
Hardware
Now let's get started with the hardware you need:
- 1x M5Stack CardKB - AliExpress Price: 10.00 USD
- 4x Female to Female Pin Connector AliExpress Price: 0.42USD | Amazon US Price 5.49USD
Assembly
Now that we have all the hardware ready to go, let's dive into the wiring. To ensure compatibility with all Meshtastic devices, we need to understand the wiring diagram for the CardKB. After connecting the cable (HY2.0-4P) to the connector on CardKB, we will cut off the other end and solder female headers to it or you can use the naked cable to be soldered directly to your board. The CardKB comes with a connector featuring four cables: Black for Ground, Red for 3.3 volts, Yellow for SDA, and White for SCL. With this knowledge in hand, we can easily adapt the CardKB to work with any Meshtastic device. We need to locate the SDA, SCL, 3.3 volts, and Ground pins on our board. Once we've identified these pins, we can connect them to the corresponding cables from the CardKB connector. This ensures that the communication and power between the CardKB and our Meshtastic device are properly established.
M5Stack CardKB - Heltec V3 Lora ESP32 Meshtastic Node
- Black -> GND
- Red -> 3.3V
- Yellow -> Pin 41
- White -> Pin 42
M5Stack CardKB - Lilygo T-Beam Meshtastic Node
- Black -> GND
- Red -> 3.3V
- Yellow -> Pin 21
- White -> Pin 22
M5Stack CardKB - Lilygo TTGO Meshtastic Node
- Black -> GND
- Red -> 3.3V
- Yellow -> Pin 21
- White -> Pin 22
M5Stack CardKB - DIY ESP32 Meshtastic Node
- Black -> GND
- Red -> 3.3V
- Yellow -> Pin 21
- White -> Pin 22
Once all the wiring is completed. Double-check your connections and ensure they match the suggested layout before proceeding to the next steps.
Meshtastic Settings
On the Sensor Device
- Open Meshtastic App (IOS for this guide)
- Go to the Settings page
- In the Module Configurations section navigate to Canned Messages
- Enable Canned messages.
- On Configuration Preests droplist choose M5 Stack Card KB
- Lastly, press Save
Once you've completed the setup, you're all set to dive into the convenience of typing and sending messages directly from your node. No more relying on external devices or smartphones; with the addition of the M5Stack CardKB Keyboard, your node becomes a standalone communication device.
In conclusion, by adding the M5Stack CardKB Keyboard to your Meshtastic Node, you've unlocked a new level of independence and convenience in your mesh communication system. With just a few simple steps, you've transformed your node into a fully standalone device capable of sending messages and controlling functions directly, without the need for a phone or other external devices.