Inmalyze Documentation

This guide shows how to use the Inmalyze send(TX)/receive(RX) system in your microcontroller project for serial communication at 9600 baud, with the option to increase the baud rate in future updates.

What is Inmalyze?

Inmalyze is an all-in-one real-time monitoring and visualization tool that lets you easily track sensor data and system performance from your microcontroller — no extra software or complicated setup required. Designed for robotics and embedded projects, it helps you visualize, analyze, and log live data effortlessly. With our custom Inmalyze Library, you can instantly send (TX) and receive (RX) named data from your microcontroller.

Core Functions

Sending Data (TX)

Use the send function to transmit a key-value pair to the dashboard:


send("KEY_NAME", value);

Receiving Data (RX)

Use the get function to read incoming values by the key name. It returns -1 if no new value for that key is available:


int value = get("KEY_NAME");

TX and RX Arduino Code Example

This sketch sends a random temperature (TEMP), receives a switch state (LED), and receives a slider value (ServoA).

Example Arduino Code

#include <Inmalyze.h>
#include <Servo.h>  // Make sure you have already downloaded the Servo library

#define SERVO_PIN 9
const long SEND_INTERVAL = 500; // 0.5 seconds

Servo myservo;
unsigned long previousMillis = 0;

void setup() {
  Serial.begin(9600);
  pinMode(LED_BUILTIN, OUTPUT);
  myservo.attach(SERVO_PIN);
  randomSeed(analogRead(A0));
}

void loop() {
  // --- Receive LED switch state (Serial Key: LED) ---
  int ledState = get("LED");
  if (ledState != -1) {
    digitalWrite(LED_BUILTIN, ledState == 1 ? HIGH : LOW);
  }

  // ---  Receive Servo slider value (Serial Key: ServoA) ---
  int angle = get("ServoA");
  if (angle != -1) {
    angle = constrain(angle, 0, 180);
    myservo.write(angle);
  }
  
  // --- Send Temperature (Serial Key: TEMP) every 500ms ---
  unsigned long currentMillis = millis();
  if (currentMillis - previousMillis >= SEND_INTERVAL) {
    previousMillis = currentMillis; 
    
    int simulatedTemp = random(20, 36);
    send("TEMP", simulatedTemp);
  }
}

Dashboard Widget Setup

To connect the Arduino code to your dashboard:

1. Connect to Arduino

Click the 🔴 Offline button in the dashboard and select your Arduino's serial port. Connection only works in the Chrome browser due to its support for the Web Serial API.

2. Add Widgets