The Message Monitor extracts specially tagged text from the serial stream. It lets you pull out logs, specific data or messages from all the other serial data. Using Channels, you can setup several different windows and send different text to each one. For example, you might have a debug channel and a data log channel.
The Message Monitor supports sending commands, auto-scrolling, time-stamped lines etc. See Serial Monitoring Overview for more information.
It also talks! Using our Arduino library, messages sent to the message monitor can be spoken to you.
Sending Data from an Arduino to the Message Monitor
The Message Monitor looks for special commands in the serial stream to find the data it should display.
On the Arduino, you can send these commands using our Arduino Message Monitor Library.
After you install the MegunoLink Arduino library:
- Add
#include "MegunoLink.h"
to the top of your Arduino program - Create a
Message
variable - Call
Send
to send values, orBegin()
andEnd()
to send chunks of text
This simple example sends the current voltage on analog channel 0 to a Message Monitor every 2 s.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#include "MegunoLink.h" void setup() { Serial.begin(9600); } void loop() { Message Msg; Msg.Send("ADC0", analogRead(0)); delay(2000); } |