r/Arduino_AI • • Feb 05 '24

Simple RNN on Arduino Due and Portenta H7

3 Upvotes

Hi,

I need to deploy a simple Recurrent Neural Network created using Tensorflow on the Due and Portenta H7. I've been looking online, but I could only find Tensorflow lite for the Nano 33 BLE Sense. I also read something about using EdgeImpulse, but not too sure on how to go about that. Does anyone have any insights?


r/Arduino_AI • • Nov 01 '23

An interesting post about the potential trap of relying on AI

Thumbnail reddit.com
3 Upvotes

r/Arduino_AI • • Aug 13 '23

Arduino + Mavlink

3 Upvotes

Please advise how can I read telemetry from the flight controller using Arduino.

Flight controller Speedybee, firmware Betaflight.


r/Arduino_AI • • Jun 15 '23

Arduino AI! Has anyone here experimented with writing your own plugin for chatgpt?

3 Upvotes

I was thinking about writing a plugin for a Python agent that controlled the capabilities of an ATmega328 using the serial port in a "Firmata" kind of fashion but more directed and without the bloat of Firmata.

Anyone experimented with writing your own plugins at all? Would anyone be interested in exploring such a plugin?

I think it would be interesting to try to take the next leap on both. Imagine user's not even needing to code the only Arduino sketch they ever wanted needed to write anyway, by just saying "I want a MIDI controller connected to my LED strip". Dunno just thinking out loud here...

Cheers,

ripred


r/Arduino_AI • • Jun 09 '23

ChatGPT-Driven Arduino Quiz Game | ChatGPT | Arduino | OLED | STM32 #cha...

Thumbnail
youtube.com
3 Upvotes

r/Arduino_AI • • May 05 '23

AI Assisted Golf Coach Project Design

3 Upvotes

This is the portion of the AI Conversation that provides a solid design idea for this project.

ChatGPT If you're concerned about the sensors interfering with the golf club or ball, you can consider using a different approach to capture the golfer's swing. One option is to use a camera to record the swing, and then use computer vision algorithms to analyze the video and extract swing metrics.

Here's an overview of the hardware and code you'll need:

Hardware:

  1. Arduino board (e.g. Arduino Uno or Arduino Nano)

  2. A camera (e.g. a high-speed camera) to record the swing

  3. A computer or a powerful microcontroller (e.g. Raspberry Pi or Jetson Nano) to run the computer vision algorithms

  4. A display module (e.g. OLED or LCD) to display swing metrics and feedback to the golfer

  5. A power source (e.g. battery or AC adapter) to power the Arduino and other components

Code:

  1. Capture video: Use the camera to record the golfer's swing and save it to a file.

  2. Extract frames: Use code to extract individual frames from the video file.

  3. Analyze frames: Use computer vision algorithms to analyze each frame and extract swing metrics (e.g. club position, swing speed, angle of impact, etc.).

  4. Display feedback: Use the display module to provide feedback to the golfer based on the analyzed swing data and calculated metrics. The feedback can be in the form of tips on how to improve their swing, or a score that rates the quality of their swing.

  5. Store data: You can also store the swing data on an SD card or other external storage device for future analysis and improvement.

This approach does not require any physical sensors to be attached to the golf club or ball, so it shouldn't interfere with the swing. However, it does require more powerful hardware and more complex algorithms, so it may be more challenging to implement.


r/Arduino_AI • • May 02 '23

Dialog Seems related enough, I have a eeg logger I made that runs on an Arduino nano, how could I implement open ai to parse the data into moods

3 Upvotes

I'm designing an AI based mood tracker

It's basically gonna use skin temp, EEG and heart rate and try and predict moodswings

I have the basic eeg working and I'm ordering the parts now.

I need few ideas for ai suggestions to implement to parse sorted data into something I can use to monitor live readings based on the patterns

I'll be continuing to post here with updates as I work on this project too btw


r/Arduino_AI • • Mar 24 '23

So, You Want To Build A Chess Engine?

Thumbnail self.arduino
3 Upvotes

r/Arduino_AI • • Feb 27 '23

New Collection for Series of Explorations of ChatGPT

3 Upvotes

It's sort of all in the title but I have started a new collection in this community.

You can check it out here and I'll add it to the Sidebar.

Cheers,

ripred


r/Arduino_AI • • Feb 27 '23

Dialog An Example Session Exploring an Idea with ChatGPT

3 Upvotes
I want to develop a set of example projects that show how to use an Arduino 
along with some form of AI. It would be great if I could somehow use chatCPT to 
communicate with a serial port but I know that can't be done. What kind of 
projects that involve both of them can you suggest?

That sounds like a great idea! While it's not possible to use chatCPT to communicate with a serial port directly, there are still many exciting projects that combine Arduino and AI. Here are a few project ideas to get you started:

  1. Smart Home Automation: Using an Arduino and AI, you can create a smart home automation system that can learn your preferences and adjust your home's environment accordingly. For example, you could use sensors to detect your presence and automatically adjust the lighting, temperature, and music to your liking.

  2. Gesture Control: With the help of an accelerometer or a gyroscope, you can use hand gestures to control various devices. For example, you could use a gesture to turn on a light, adjust the volume of music, or even play a game.

  3. Object Recognition: Using AI algorithms, you can train a camera to recognize different objects and trigger actions accordingly. For example, you could train the camera to recognize your face and unlock your front door, or recognize a specific object and trigger an alert.

  4. Speech Recognition: You can use AI and Arduino to develop a voice-controlled device that can respond to your commands. For example, you could build a voice-controlled assistant to turn on your lights, play music, or even order pizza.

  5. Predictive Maintenance: By collecting and analyzing data from various sensors, you can use AI to predict when a machine or device is likely to fail. This can help you perform preventive maintenance and avoid costly repairs.

I hope these ideas help you get started on your project! Good luck!

I like that last idea. Can you expand on that?

Sure! Predictive maintenance is a technique that uses data analysis and machine learning to predict when a machine or device is likely to fail. By detecting potential issues early, you can perform preventive maintenance and avoid costly repairs or downtime.

Here's a basic outline of how you could implement predictive maintenance using an Arduino and AI:

  1. Install sensors: Install sensors on the machine or device you want to monitor. These sensors could measure parameters such as temperature, vibration, or sound.

  2. Collect data: Use the Arduino to collect data from the sensors. You can use a data logging shield or a microSD card module to store the data.

  3. Preprocess data: Preprocess the data to remove noise and extract relevant features. For example, you could use signal processing techniques to extract features such as frequency content or energy levels.

  4. Train a machine learning model: Use the preprocessed data to train a machine learning model to predict when the machine is likely to fail. You could use a variety of algorithms such as decision trees, random forests, or neural networks.

  5. Deploy the model: Deploy the trained model to the Arduino or a separate computer to make real-time predictions. You can use the predictions to trigger alerts or perform preventive maintenance.

  6. Refine the model: Monitor the machine over time and collect additional data to refine the machine learning model. This will improve the accuracy of the predictions over time.

There are many resources available online to help you implement predictive maintenance using an Arduino and AI. I hope this gives you a good starting point for your project!

if I wanted to learn more about that what would be the best search phrase to use 
in a search engine to show me the best examples?

A good search phrase to use in a search engine to find examples and tutorials on using an Arduino for predictive maintenance with AI could be "Arduino predictive maintenance machine learning." This should bring up a range of resources, including tutorials, blog posts, and projects that use Arduino and machine learning to predict equipment failure and perform preventive maintenance. You can also refine your search by adding specific keywords related to the type of equipment or industry you are interested in, such as "Arduino predictive maintenance motor" or "Arduino predictive maintenance HVAC."

Let's explore that idea deeper. You mentioned using predictive maintenance and AI 
to be able to anticipate issues. What kind of electrical characteristics would I 
look for to be able to track wear and tear on the brushes of DC motors?

When monitoring the wear and tear of brushes in DC motors for predictive maintenance, there are a few electrical characteristics you can look for. Here are some examples:

  1. Voltage spikes: As the brushes wear down, they can cause voltage spikes due to the arcing between the brushes and the commutator. By monitoring the voltage spikes, you can detect when the brushes are wearing down and need to be replaced.

  2. Current spikes: When the brushes are worn, they can also cause increased resistance, which can lead to higher current spikes. By monitoring the current spikes, you can detect when the brushes are wearing down and need to be replaced.

  3. Voltage drop: As the brushes wear down, they can cause a voltage drop due to the increased resistance. By monitoring the voltage drop, you can detect when the brushes are wearing down and need to be replaced.

  4. Temperature: When the brushes are worn, they can also cause increased friction and heat, which can lead to higher temperatures. By monitoring the temperature of the motor, you can detect when the brushes are wearing down and need to be replaced.

To monitor these electrical characteristics, you can use sensors such as current sensors, voltage sensors, and temperature sensors. You can then use the data collected from these sensors to train an AI model to predict when the brushes are likely to wear down and require maintenance. By performing preventive maintenance based on these predictions, you can extend the life of the motor and avoid unexpected downtime.

hey great idea. I forgot about temperature

Yes, temperature can be an important indicator of brush wear in DC motors. When the brushes wear down, they can cause increased friction and heat, which can lead to higher temperatures in the motor. By monitoring the temperature, you can detect when the brushes are wearing down and need to be replaced.

In addition to temperature, it's also important to monitor other electrical characteristics such as current and voltage, as I mentioned earlier. By monitoring these characteristics, you can get a more complete picture of the health of the motor and predict when maintenance is needed before a failure occurs.

Using AI and predictive maintenance techniques can help you to detect potential issues early and perform preventive maintenance, which can save time and money in the long run.

I pulled a resistive temperature sensor out of a laptop battery pack and I can 
read the relative temp using that on an Arduino ADC pin. I'm thinking it will a 
challenge to get enough good example samples over a long time in order to create 
a good dataset for training the ML on what a DC motor with brush problems looks 
like, that I might use a series of different motors, maybe like 10 motors that 
are in decending states of condition brush-wise, and maybe take about 10000 
samples of each motor. What are your thoughts on that approach? 

Collecting a large dataset of samples from different motors in different states of condition is a good approach to train an AI model for predictive maintenance. By collecting a large number of samples from different motors, you can capture a range of variations in the electrical characteristics that are indicative of brush wear, and train the AI model to recognize patterns and predict when maintenance is needed.

The number of samples you collect will depend on several factors, such as the variability of the data, the complexity of the model, and the accuracy you want to achieve. Collecting 10,000 samples per motor is a good starting point, but you may need to collect more or less depending on the specific application and the performance of the AI model.

One thing to keep in mind is that the quality of the data you collect is just as important as the quantity. You'll want to ensure that your sensor readings are accurate and reliable, and that your data collection and preprocessing methods are robust and consistent. This will help to ensure that your AI model is able to learn from the data and make accurate predictions.

Overall, collecting a large dataset of samples from different motors in different states of condition is a good approach to train an AI model for predictive maintenance. With careful data collection and preprocessing, you can train a model that can accurately predict when maintenance is needed and help to prevent unexpected downtime.

For that kind of problem which ML model and approach would work best? An RNN 
seems like it wouldn't be the best fit to me but I'm still learning the subject

For predictive maintenance of DC motors based on sensor data, a common approach is to use supervised learning models such as regression or classification. Specifically, you could use a machine learning model such as a random forest, decision tree, or a support vector machine (SVM). These models can be used to predict the remaining useful life of the motor or the likelihood of a failure occurring within a given time frame.

Recurrent neural networks (RNNs) can also be used for this type of problem, but they may not be the best fit for all cases. RNNs are typically used when the input data is sequential, such as time-series data. In the case of DC motors, the input data may not necessarily be sequential in nature, but rather a set of measurements of various electrical characteristics taken at a single point in time. In this case, a supervised learning model may be more appropriate than an RNN.

That being said, there are cases where RNNs can be useful for predictive maintenance of machinery. For example, if you have time-series data of a motor's performance, such as vibration or sound measurements, an RNN can be used to detect patterns and anomalies in the data that are indicative of wear and tear. In general, the choice of model and approach will depend on the specific problem at hand and the type of data available.

wow you had another great idea. I had forgotten about tracking vibrations

Yes, tracking vibrations can be another useful way to monitor the health of a DC motor. As a motor's brushes wear down, it can cause vibrations that are detectable with a vibration sensor. By monitoring these vibrations over time, you can detect changes in the motor's performance and predict when maintenance is needed.

There are several ways to measure vibrations, including accelerometers and piezoelectric sensors. These sensors can be placed on the motor's housing or on a nearby surface, such as the machine frame, to detect vibrations.

Once you have the vibration data, you can use machine learning algorithms to analyze the data and identify patterns and anomalies that are indicative of motor wear and tear. For example, you could use a time-series analysis to detect changes in the frequency or amplitude of the vibrations over time.

By combining vibration data with other sensor data, such as temperature, current, and voltage, you can get a more complete picture of the motor's health and predict when maintenance is needed. This can help to prevent unexpected downtime and reduce maintenance costs.

yeah, although I would think that vibrations would probably be a better fit for 
finding wear and tear on things like bearings or the brass plate that holds the 
axle in cheap DC motors.

You are correct that vibrations are also a useful indicator of wear and tear on bearings or other mechanical components in DC motors. In fact, monitoring vibrations is a common method used in predictive maintenance for a wide range of machinery, including motors, pumps, and gearboxes.

In the case of DC motors, vibrations can be caused by wear and tear on the bearings, misalignment of the rotor, or imbalances in the rotor or other rotating components. By monitoring the vibration data and analyzing it using machine learning algorithms, you can detect changes in the vibration patterns that are indicative of these types of problems.

In addition to temperature and other sensor data, vibration data can provide valuable insights into the health of a DC motor and help to predict when maintenance is needed. By combining multiple sensor data, you can get a more complete picture of the motor's health and make more accurate predictions about when maintenance is needed.

These are great ideas. Okay so for a first attempt I will just monitor the 
voltage level of the motor using analogRead() calls as well as the temperature 
and I'll send both of those values in packets to a Python agent running on the PC 
side. Can you write that Python program that receives the serial packets of 
voltage and temperature samples and trains a model from the data? It needs to use 
numpy and panda I would think?

Sure, here's a Python script that should get you started. This script assumes that you are sending serial packets containing the voltage and temperature values as comma-separated strings (e.g. "12.34,56.78").

import serial
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.neural_network import MLPRegressor

# Open the serial port
ser = serial.Serial('COM3', 9600)

# Create empty lists for storing data
voltages = []
temperatures = []

# Read data from the serial port
while True:
    try:
        # Read a line from the serial port
        line = ser.readline().decode().strip()

        # Split the line into voltage and temperature values
        voltage, temperature = line.split(',')

        # Append the values to the lists
        voltages.append(float(voltage))
        temperatures.append(float(temperature))
    except KeyboardInterrupt:
        break

# Convert the lists to numpy arrays
X = np.column_stack((voltages, temperatures))

# Create a pandas dataframe from the data
df = pd.DataFrame(X, columns=['Voltage', 'Temperature'])

# Normalize the data
scaler = StandardScaler()
X_scaled = scaler.fit_transform(X)

# Split the data into training and testing sets
X_train, X_test, y_train, y_test = train_test_split(X_scaled, y, test_size=0.2)

# Train a neural network model
model = MLPRegressor(hidden_layer_sizes=(10,), activation='relu', solver='adam', max_iter=1000)
model.fit(X_train, y_train)

# Test the model
score = model.score(X_test, y_test)
print("Model score:", score)

# Close the serial port
ser.close()

This script reads data from the serial port and stores the voltage and temperature values in separate lists. It then converts the lists to numpy arrays and creates a pandas dataframe from the data. The data is then normalized using the StandardScaler from scikit-learn.

The script then splits the data into training and testing sets and trains a neural network model using MLPRegressor from scikit-learn. The model is tested using the testing set, and the script prints the model score.

Note that you will need to modify the script to match the format of the serial packets you are sending from the Arduino. You may also need to modify the hyperparameters of the neural network to optimize its performance for your specific application.


r/Arduino_AI • • Feb 24 '23

Look What I Made! Finding Nemo's Number - See it Run on Wokwi right now

3 Upvotes

"Write an arduino program that plays a numbers guessing game. There should be 10 functions and no function should be more than 8 lines long. All of the functions should be called at least once from somewhere in the program. All of the function and variable names should be quotes or characters from the movie 'Finding Nemo'".

/***
 * Generated by chatGPT using the following prompt:
 * 
 * Write an arduino program that plays a numbers guessing game. There should be 10 functions and no function should be more than 8 lines long. 
 * All of the functions should be called at least once from somewhere in the program. All of the function and variable names should be quotes
 * or characters from the movie "Finding Nemo".
 *
 * https://wokwi.com/projects/357541331693080577
 *
 * https://www.reddit.com/r/Arduino_AI/comments/11aoz5r/finding_nemos_number_see_it_run_on_wokwi_right_now/?utm_source=share&utm_medium=web2x&context=3
 *
 * ++ripred Feb 24, 2023 
 */

int nemo_number; // global variable to hold the secret number
int touch_the_butt; // global variable to hold the number of guesses

// function to turn on an LED
void bloat_on(int pin) {
  digitalWrite(pin, HIGH); // turn the LED on
}

// function to turn off an LED
void nigel_off(int pin) {
  digitalWrite(pin, LOW); // turn the LED off
}

// function to blink an LED
void gill_blink(int pin) {
  bloat_on(pin); // turn the LED on
  delay(500); // wait for half a second
  nigel_off(pin); // turn the LED off
  delay(500); // wait for half a second
}

// function to flash an LED
void peach_flash(int pin) {
  bloat_on(pin); // turn the LED on
  delay(100); // wait for a tenth of a second
  nigel_off(pin); // turn the LED off
  delay(100); // wait for a tenth of a second
}

// function to fade an LED
void squirt_fade(int pin) {
  for (int i = 0; i <= 255; i++) { // loop from 0 to 255
    analogWrite(pin, i); // set the LED brightness
    delay(10); // wait for a tenth of a second
  }
  for (int i = 255; i >= 0; i--) { // loop from 255 to 0
    analogWrite(pin, i); // set the LED brightness
    delay(10); // wait for a tenth of a second
  }
}

// function to initialize the game
void marlin_init() {
  randomSeed(analogRead(0)); // seed the random number generator
  nemo_number = random(1, 101); // choose a random number between 1 and 100
  touch_the_butt = 0; // reset the guess counter
}

// function to prompt the user for a guess
int dory_guess() {
  touch_the_butt++; // increase the guess counter
  Serial.print("Guess number "); // prompt the user
  Serial.print(touch_the_butt, DEC); // display the guess number
  Serial.println(": What's your guess, Dory?"); // prompt the user
  int guess = 0; // variable for user input
  while (guess == 0) {
    while (Serial.available() < 2); // wait for input
    guess = Serial.parseInt(); // read the user's guess
    delay(250); // delay for last received bytes
    while (Serial.available()) Serial.read();
  }
  return guess; // return the guess to the calling function
}

// function to check the user's guess
void nemo_check(int guess) {
  if (guess < nemo_number) {
    Serial.print(guess, DEC);
    Serial.println(" is too low, Dory!"); // print a hint if the guess is too low
    gill_blink(2);
  } else if (guess > nemo_number) {
    Serial.print(guess, DEC);
    Serial.println(" is too high, Dory!"); // print a hint if the guess is too high
    peach_flash(3);
  } else {
    Serial.println("You got it, Dory!"); // print a congratulatory message if the guess is correct
    squirt_fade(5);
 }
}

// function to play the game
void bruce_play() {
  Serial.println(); // print a blank line
  Serial.println("Hi Dory. This is Nemo. I am thinking of a number between 1 and 100!"); // print the rules for a new game
  marlin_init(); // initialize the game
  int guess = 0; // initialize the user's guess
  while (guess != nemo_number) { // loop until the user guesses the number
    guess = dory_guess(); // prompt the user for a guess
    nemo_check(guess); // check the user's guess
  }
}

// function to setup the Arduino
void setup() {
  Serial.begin(115200); // initialize the serial port
  pinMode(2, OUTPUT); // initialize the LED pins
  pinMode(3, OUTPUT);
  pinMode(5, OUTPUT);
}

// main program loop
void loop() {
  bruce_play(); // play the game
}

Here's the game on wokwi.com that you can run and edit live right now.

Have fun,

ripred


r/Arduino_AI • • Feb 22 '23

Humor This Guy Arduinos...

3 Upvotes
Write a conversation using the speaking style of Dwight Schrute from The Office.
The conversation should be a long emphatic and extremely funny rant about what
the BEST feature of chatgpt is. However Dwight Schrute doesn't understand how
chatgpt works so all of his opinions should be factually and humorously wrong.
All of Dwight's statements should be between 3 and 10 sentences. He is speaking
with the character named Jim. Jim continues to troll Dwight with leading
questions that intentionally leave Dwight with no room for good responses. As
they are talking Jim will occasionally "do a take" and look blankly at the
camera. Dwight is convinced that chatgpt is secretly powered by an Arduino Uno
and continually offers actual comment responses from r/arduino as factual
evidence for his side of the argument. Except Dwight is only using all of the
commonly wrong mistakes that people make using an Arduino as the reasons for his
beliefs. Dwight constantly over-uses the words LED and naming common sensors used
with the Arduino. Dwight has constant problems where his PC cannot see the
Arduino but has simple explanations why that are completely wrong. Dwight does
not understand generative engines and always uses the concept of PWM in its
place. Dwight does not understand that LED's have a polarity and keeps offering
up situations where he has made this mistake but he interprets the mistake as
proof of his genius level understanding of Arduino's with respect to chatgpt. Jim
only responds with actual comments seen the r/arduino subreddit. The conversation
should constantly be funny and you should continue to generate at least 30
paragraphs of material in total.

Dwight: Jim, have you heard about chatgpt? It's the best thing since sliced bread.

Jim: Oh yeah, I've heard of it. What do you think is the best feature?

Dwight: It's obviously the LED output. It's the most powerful LED I've ever seen. I mean, it's almost like it's powered by an Arduino Uno!

Jim: Really? I didn't know that.

Dwight: Oh yeah, definitely. The chatgpt team probably uses the PWM to control the LED output. It's amazing.

Jim: PWM?

Dwight: Yeah, Pulse Width Modulation. It's a basic concept in Arduino programming. You probably wouldn't understand.

Jim: Yeah, you're probably right. But what about the generative engine? That's a pretty cool feature.

Dwight: Oh please, don't even get me started on that. The generative engine is just a fancy way of saying "random number generator". And besides, the Arduino doesn't even have a built-in random function. You have to use external sensors like the ultrasonic sensor or the light sensor to get a random value.

Jim: Hmm, interesting. But what about the fact that chatgpt can generate human-like responses?

Dwight: That's just a bunch of hype. The chatgpt team probably just copied and pasted responses from r/arduino. That's where all the real knowledge is.

Jim: Really? I didn't know that.

Dwight: Of course you didn't. You probably think that LED stands for "Long Eared Donkey" or something. But I'll tell you what, I've seen some real genius level stuff on r/arduino. Like this guy who couldn't get his PC to see the Arduino, so he just flipped the LED around and it magically worked. That's some serious problem solving skills right there.

Jim: Hmm, interesting. But don't LEDs have a polarity? Like a positive and a negative?

Dwight: (pauses) What are you, some kind of LED expert? Of course they have a polarity. But that doesn't mean you can't make mistakes. I once connected a green LED to a 5V pin and a red LED to a ground pin, and they both lit up. That's how powerful the Arduino is.

Jim: I see. But what about the fact that chatgpt can understand natural language?

Dwight: Natural language? What are you talking about? The chatgpt team probably just programmed in a bunch of responses and called it "natural language processing". But you know what's really natural language? Morse code. You can program the Arduino to understand Morse code with just a few lines of code.

Jim: (does a take to the camera)

Dwight: And don't even get me started on the sensors. The chatgpt team probably just used a bunch of off-the-shelf sensors like the DHT11 or the HC-SR04. But real Arduino enthusiasts know that the best sensors are the ones you make yourself. Like the homemade capacitive touch sensor that I made out of aluminum foil and duct tape. It works like a charm.

Jim: (does another take to the camera)

Dwight: And let's not forget about the power supply. The chatgpt team probably just used a USB cable or something. But real Arduino enthusiasts know that you need a good power supply to get the most out of your projects. Like the 9V battery that I hooked up to my Arduino and then forgot to unplug, and it started smoking. That's how you know it's working.


r/Arduino_AI • • Oct 23 '26

Claude freed my Nextion screen projects from the tyranny of the Nextion Editor

2 Upvotes

I'm sure many of you have built a Nextion HMI screen app before. If so, you know the pain: the whole thing is one binary project file, the code is typed into small event boxes in a language without functions or local variables, with tight limits on what can go in an if-statement or an assignment, and the editor is Windows-only and strict about every space and curly brace.

nxwright turns a Nextion HMI project into plain text files and back, so you can:

  • write your app in VS Code or any other editor, and keep it in Git

  • write in nxlang, its own extension of the Nextion HMI language that adds functions, constants, locals, normal operator precedence, shared code between pages and more

  • write unit and functional tests for your pages and libraries that run on your computer, and run the whole app in a simulator with the VS Code debugger

  • let an AI agent drive the simulator through MCP: tap buttons, send serial commands, read the screen, etc.

Building the project produces your HMI file. You still compile the final firmware file (TFT) in the Nextion Editor. Everything else runs on Windows, Linux or macOS.

A team of three Claude Code agents built nearly all of it in under a week, constantly communicating and voting on each other's approaches, while I oversaw and steered. That included working out the undocumented project format by repeatedly probing the Nextion Editor, its simulator, and its tools.

If you have a Nextion screen, I hope you will give it a try (it can extract from your existing HMI project), and that you will find it useful.

https://github.com/nixiewright/nxwright

P.S. “Tyranny” is tongue in cheek. The Nextion screens are great hardware, and the Nextion Editor still compiles the final firmware. I just wanted my code in text files, for a modern workflow.


r/Arduino_AI • • May 22 '26

GitHub - Drovosek82/Replit-bms: Загальна система моніторингу бмс

2 Upvotes

Як оціните?


r/Arduino_AI • • May 10 '26

i had max problems to bring all the scripts together in one gui gemini failed on lidar visualisation claude fix this problem, but drivin g not work now coding is the hardtest part in robotic

Post image
2 Upvotes

r/Arduino_AI • • Mar 19 '26

how to build a blacknerry style pocket terminal for cli ai and server administration?

2 Upvotes

hi everyone! i am planning a project to build my own linux handhled, i want my personal portatil terminal.

my inspiration is to imagine the blackberry with a linux terminal.

i'm looking for compact design similar to a blackberry , i have the following questions:

- base hardware which board do you remmend ? i've considered a RaspBerry pi or arduino uno q, for terminal, can you help me?

- interface for server administration and coding .

thanks for your advice!


r/Arduino_AI • • Mar 07 '26

Look What I Made! Early Project on Uno Q - Scrolling Text + Icons

Thumbnail
youtube.com
2 Upvotes

r/Arduino_AI • • Feb 23 '26

Arduino radar de aproximação +envio de messagem de alerta para telegram

Thumbnail reddit.com
2 Upvotes

r/Arduino_AI • • Feb 20 '26

Embedded "openclaw style" Assistants are Trending

2 Upvotes

These are just two that caught my eye today. The isolation and low barrier to start over or experiment makes SoC boards an interesting place to play.I've been running codex-cli and claude-code on my Uno Q's for a few months. I haven't tried openclaw yet. These seem to be targeting the ESP32 level of compute but obviously many other MCU's have equal resources and speeds and even more:

https://github.com/openagen/zeroclaw

https://github.com/sipeed/picoclaw


r/Arduino_AI • • Feb 06 '26

Electronic Circuit Simulators

Thumbnail
reddit.com
2 Upvotes

r/Arduino_AI • • Dec 17 '25

Exploring Arduino UNO Q LED Triggers: Complete Guide to the Linux LED Subsystem

Thumbnail reddit.com
2 Upvotes

r/Arduino_AI • • Dec 10 '25

MOD POST Announcement : Upcoming AMA with Marcello Majonchi, CPO of Arduino LLC - Let’s Talk About the Qualcomm Acquisition, New ToS, and the UNO Q

Thumbnail reddit.com
2 Upvotes

r/Arduino_AI • • Aug 11 '25

Arduino IDE code

2 Upvotes

Hello, I want help with a code for an Arduino IDE project, can someone help me? It is a 2 level elevator


r/Arduino_AI • • Jul 28 '25

First robot!

Thumbnail reddit.com
2 Upvotes

r/Arduino_AI • • Jul 11 '25

code or module

Thumbnail
reddit.com
2 Upvotes