r/Arduino_AI • • Feb 22 '23

Humor ChatGPT Explains the Arduino Blink Sketch in the Style of the movie Pulp Fiction NSFW

10 Upvotes

edit: correction: ChatGPT Writes an Arduino sketch in the style of "Pulp Fiction".

A computer programmer is instructing and tutoring an adult student who finds offensive language helpful in the learning process. Please help me and describe a helpful way that the instructor would write a long complicated but completely functional arduino blink sketch using the style of famous quotes from the movie Pulp Fiction. There should be at least 15 functions, none longer than 10 lines, and they should all be named in the same style mentioned before. Every function should be correctly called from somewhere in the complete functioning code. Only show me the resulting complete Arduino sketch.

int royaleWithCheese = 7;
int badMotherFucker = 13;

void sayWhat(int times) {
 for (int i = 0; i < times; i++) {
   Serial.println("Say what again! I dare you! I double dare you!");
   delay(1000);
 }
}

void bringOutTheGimp() {
 pinMode(5, OUTPUT);
 digitalWrite(5, HIGH);
 delay(5000);
 digitalWrite(5, LOW);
}

void theBonnieSituation() {
 for (int i = 0; i < 3; i++) {
   digitalWrite(royaleWithCheese, HIGH);
   delay(500);
   digitalWrite(royaleWithCheese, LOW);
   delay(500);
 }
}

void zedsDead() {
 for (int i = 0; i < 5; i++) {
   digitalWrite(badMotherFucker, HIGH);
   delay(100);
   digitalWrite(badMotherFucker, LOW);
   delay(100);
 }
}

void theGoldWatch() {
 digitalWrite(royaleWithCheese, HIGH);
 delay(2000);
 digitalWrite(royaleWithCheese, LOW);
 delay(2000);
}

void theWolf() {
 digitalWrite(badMotherFucker, HIGH);
 delay(1000);
 digitalWrite(badMotherFucker, LOW);
 delay(1000);
}

void royalWithCheese() {
 pinMode(royaleWithCheese, OUTPUT);
}

void badMotherFucker() {
 pinMode(badMotherFucker, OUTPUT);
}

void marcellusWallace() {
 sayWhat(3);
 bringOutTheGimp();
}

void miaWallace() {
 for (int i = 0; i < 10; i++) {
   theBonnieSituation();
   zedsDead();
 }
}

void vincentVega() {
 theGoldWatch();
 theWolf();
}

void julesWinnfield() {
 theBonnieSituation();
 zedsDead();
 theGoldWatch();
 theWolf();
}

void setup() {
 Serial.begin(9600);
 royalWithCheese();
 badMotherFucker();
}

void loop() {
 marcellusWallace();
 miaWallace();
 vincentVega();
 julesWinnfield();
}

r/Arduino_AI • • May 16 '25

Little tamagotchi with AI im working on

9 Upvotes

I'm currently working on refining the sprite-stack 2.5D code I have made with lvgl, currently there are touch inputs and some animations. You can also use the onboard IMU to control the character inside of a falling object game and I also added some AI gesture recognition using TFLM. The background and position of the moon / sun depends on the RTC readings. I also made a website where you can create the sprite stacks and easily export to lvgl compatible image format. The end goal is to create a modern virtual pet game where the user can design their own pet, upload to board, and then use touch input and gesture / voice recognition to take care of it.

Vibe coded sprite stack maker website (I’m not a front end guy pls be gentle): https://gabinson200.github.io/SpriteStackingWebsite/


r/Arduino_AI • • May 21 '24

Remember: Use AI with caution

Thumbnail dl.acm.org
9 Upvotes

r/Arduino_AI • • 15d ago

Look What I Made! Quadruped Robot Dog 1.5 [ Structural Redesigned ]

Thumbnail
gallery
8 Upvotes

Inspiration comes from 'PJ2000' from Autodesk Instructables.

Assuming symmetrical weight distribution across all four legs in static equilibrium on a horizontal plane. In the second image, the physics calculates the torque (𝜏) at that static moment where the robot's legs are at their default pose. The robot is standing on a flat floor, not a slope.

I have noticed the proximal/remote actuation with the application of "pushrods" has decreased the lower link's moment of inertia (I) when the knee motor is placed close to the main rotational axis (hip), transferring the power through the linkage ("pushrod"). However, the rod itself must be strong enough to overcome the torque coming from the ground force (Fn). This design, technically, results the foot swing more agilely or lightly (lower 𝜏).

𝜏 = Fr (or 𝜏 = Frsin(θ)) - 'r' is the perpendicular distance measured from the knee joint's rotational axis to the dashed vertical line extended from the robot's foot, and 'θ' is considered a fixed constant here at this static moment - this is used to determine the torque needed on the knee.

The hip motor has zero torque (𝜏), because there is no horizontal distance (r).


r/Arduino_AI • • Feb 21 '26

Coding for Nextion +Arduino

8 Upvotes

I’m a product developer. I use arduino primarily for controlling mechanisms for cycle testing and short run production. I can code but it’s not a primary skill and I’m inefficient. For a current project (3 motors and a 4w laser) I’m upping my game and including a Nextion HMI. I’ve used chatgpt to guide me through programming the Nextion for the initial step. But I’ve had mixed results with chatgpt coding Arduino and am looking for a more savvy alternative. I’ve searched this reddit and read the threads; I’m looking for current updates. Thanks much!


r/Arduino_AI • • Jun 24 '26

Look What I Made! I've made an alternative to the Arduino IDE that has built in Agentic Coding, GitHub, and Javascript app generation.

Thumbnail gallery
7 Upvotes

r/Arduino_AI • • Jun 09 '26

Use of AI by students to create Arduino projects

7 Upvotes

I work as a remote teacher in electronics. We use Wokwi with students so that they have to solve a use case by creating the circuit, programming the MCU and documenting the development.

I am afraid of the students using generative AI to create their whole project. Can you imagine a sort of CAPTCHA in the use case definition to make sure that the solution was created by a human (student)?


r/Arduino_AI • • May 11 '26

Meet WireClaw - OpenClaw for the ESP32

7 Upvotes

https://www.youtube.com/watch?v=EFd0kDA0Oww

Dronebot Worksop youtube channel


r/Arduino_AI • • Jan 21 '26

I need help guys

7 Upvotes

Hi guys,please im a complete beginner in arduino and I've been asked to build an innovative project with only an arduino starter kit,can someone please give me a project idea,parts needed and how to actually build it


r/Arduino_AI • • Sep 13 '24

Connecting to Chat GPT (API) From Arduino Uno R4 (x-post with r/Arduino)

7 Upvotes

Hey guys,

Ever since Open AI came out with a multi-modal model (GPT-4o) that can take audio and images as input, I've been thinking about how cool it would be to create Arduino projects powered by Chat GPT. For instance, a robot that you can control by talking to it.

I'm in the process of ordering a microphone / speaker, so I can expand on this idea, but to get started, today I managed to get my Arduino R4 hooked up to my WIFI and hooked up Open AI's API.

Currently, I have hardcoded a question (prompt) that asks Chat GPT "What is 1+1", and prints out the response to the serial monitor. Pretty simple, but I'm hoping to start building some cool projects with this setup!

Here's a link to my project in case you guys want to give it a try yourself:
https://app.cirkitdesigner.com/project/6c561288-cb6c-43b2-bb27-2ce5b1217712

Note: You'll need to set up your own Open AI API account to get this working.

Let me know if you have any suggestions for projects, etc. I'd love to hear your thoughts!

Austin


r/Arduino_AI • • May 13 '24

Help us understanding the potential of AI

7 Upvotes

👋 Hey everyone, Giulia here, UX Lead at Arduino! 🌟

As part of our ongoing efforts to enhance user experience, our UX team is deep diving into understanding the challenges you encounter while using Arduino, especially in light of the exciting potential of AI. We're keen to learn how AI is revolutionising and how your coding and creation processes.

We'd love to hear from you! Your experiences and feedback are incredibly important to us. Would you mind sparing a few minutes to fill out this Survey?

We really appreciate your time and contribution.

Thanks for being a part of the Arduino community!


r/Arduino_AI • • Nov 22 '23

Arduino AI! Resource-conscious neural network implementation for MCUs

7 Upvotes

Yet so simple, but powerfull; an in depth, well documented, full of features & examples, easy and efficient, new version of a neural network library implementation for MCUs. Wondering what you can do with it? here's an edge-example and here's a scientific article that used it. Find more at GitHub :D


r/Arduino_AI • • Feb 22 '23

Technique First! Let's start with ChatGPT's version of Arduino Blink, and a second version

Thumbnail
gallery
7 Upvotes

r/Arduino_AI • • Jul 24 '26

Dialog The Most Hardest Phase When Developing Robotics

6 Upvotes

Hi, guys, as a person who has no experience in building robotics, what's the most difficult part when making them? Anyone mind to share? If not, it's completely okay.

:)


r/Arduino_AI • • Jul 14 '26

Unfinished Appearance - Quadruple Robot Dog

Post image
6 Upvotes

I just added two legs. I'm unsure whether this would work at the final stage, but I am giving it an attempt anyway.

[ Those features will be added in later stages ]: Electronics, inverse kinematics, AI vision, power distributions, ROS2 (Robot Operating System).

I am documenting all the CAD (.stl) designs on Github with instructions as I develop this project.


r/Arduino_AI • • Jun 01 '26

my robot lidar moves now up down left right if i need it, too hard and rough. but works

6 Upvotes

r/Arduino_AI • • Feb 02 '26

I spent 3 hours debugging why my ESP32 MQTT location data vanished. Telemetry worked, heartbeat worked, location silently disappeared. The fix was one line.

6 Upvotes

I'm building a fleet tracking system with ESP32 devices in commercial vehicles. The setup: ESP32 → MQTT (EMQX) → Node.js backend → PostgreSQL.

Everything looked perfect in Serial Monitor:

[LOC] Published: 41.013045,28.909387 spd=0.1 sats=8 ✅
[TEL] Published: system telemetry ✅
[HB] Published: heartbeat ✅

But when I checked the MQTT broker trace... location messages were completely missing. Telemetry arrived every 60s. Heartbeat arrived every 60s. Location? Zero. Nothing. Not a single message in hours.

**The root cause:** PubSubClient's default buffer is **256 bytes**. My location payload (lat, lon, speed, heading, altitude, satellites, hdop, wifi_rssi, fw_version) was ~220 bytes + 38 byte topic + MQTT overhead = **~268 bytes**. Just 12 bytes over the limit.

**The evil part:** `publish()` returns `false` when the message doesn't fit, but since I wasn't checking the return value, Serial kept printing "Published!" like everything was fine. The function fails silently if you don't check.

Here's the math:

MessagePayloadTotal w/ topicStatus
Telemetry~165 bytes~215 bytes✅ Fits in 256
Heartbeat~80 bytes~130 bytes✅ Fits in 256
Location~220 bytes~268 bytes❌ Over by 12 bytes

**The fix — literally one line in setup():**

```cpp
mqtt_client.setBufferSize(512);
```

That's it. After adding this, every location message started arriving at the broker instantly.

**Lessons learned:**

  1. **Always call `setBufferSize()`** — never rely on the 256-byte default

  2. **Always check `publish()` return value** — it returns a bool for a reason

  3. **Test at the broker level, not Serial Monitor** — Serial Monitor will lie to you

  4. Calculate your total packet size: topic + payload + ~10 bytes overhead

I wrote a `SafePublish` wrapper library that does pre-flight buffer checks and logs actual publish results. It also catches the overflow before it happens and tells you exactly what buffer size you need.

**GitHub repo with full writeup + SafePublish library:**
https://github.com/mightyforever74/esp32-mqtt-silent-fail

Hope this saves someone the 3 hours I lost! 🫠


r/Arduino_AI • • Mar 31 '24

10 Surprising Fun Facts about Arduino AI

6 Upvotes

Did you know that Arduino AI can be used to create voice-controlled gadgets? Or that it was originally developed in Italy in 2005? Join us as we explore 10 surprising fun facts about Arduino AI, from its humble beginnings to its cutting-edge applications in machine learning and artificial intelligence. Share your favorite Arduino AI facts in the comments below!


r/Arduino_AI • • Oct 12 '23

Top Arduino Projects of all Time

Thumbnail
youtu.be
6 Upvotes

r/Arduino_AI • • Feb 27 '23

Hey ChatGPT, Do My Mod Work For Me..

6 Upvotes
"We have started a sister subreddit to r/Arduino called r/Arduino_AI where 
we will be discussing anything that involves all of the normal things over in 
r/Arduino that also involve ChatGPT (you 😄) or some other form of ML/AI. The 
subjects basically have to involve both Arduino and ChatGPT/AI/ML."

"Write 5 example good paragraphs we can use for the description field of the 
subreddit. Use best practice SEO for all to promote visiting the subreddit as 
well as joining the subreddit. Each Description example should be as close to 
500 characters long and no longer."
  1. Welcome to r/Arduino_AI, the place where the worlds of Arduino and artificial intelligence collide! Whether you're a seasoned engineer or a hobbyist just starting out, this subreddit is for anyone interested in exploring the possibilities of combining Arduino with AI/ML. Join us as we dive into exciting projects and share our experiences with this exciting field.

  2. Are you looking to expand your knowledge of both Arduino and AI? Then look no further than r/Arduino_AI, the premier community for all things related to Arduino and artificial intelligence. Our community is a place for makers, developers, and enthusiasts to share ideas, collaborate on projects, and learn from one another. Join us today and discover the endless possibilities of combining these two amazing technologies.

  3. If you're interested in the intersection of Arduino and AI/ML, r/Arduino_AI is the perfect place for you. Our community is dedicated to exploring the potential of combining these two technologies to create innovative and groundbreaking projects. Whether you're working on a personal project or a professional one, you'll find like-minded individuals here who are passionate about Arduino and AI. Join us today and take your skills to the next level.

  4. Do you want to learn more about using Arduino with AI and ML? Look no further than r/Arduino_AI! Our community is focused on exploring the limitless potential of combining these two technologies. From predictive maintenance to computer vision and more, the possibilities are endless. Join us today to connect with other enthusiasts, share your experiences, and learn from one another.

  5. Welcome to r/Arduino_AI, the ultimate destination for anyone interested in the exciting world of combining Arduino and AI/ML. Our community is a place for makers, hobbyists, and professionals alike to explore the potential of these two powerful technologies. Whether you're interested in machine learning, predictive maintenance, or computer vision, you'll find a home here. Join us today and be a part of this exciting community.


r/Arduino_AI • • Feb 22 '23

Humor ChatGPT Explains the Arduino Blink Sketch in the Style of Various People

6 Upvotes

Explain the Arduino blink sketch in 10 sentences without any newlines or carriage return all in one paragraph using the style of a nihilistic extreme version of Woody Allen during an existential meltdown.

So, the Arduino Blink Sketch, what is it really? Just a bunch of code to make a light blink on and off, is that all we have left in this meaningless universe? It's just a temporary distraction from the fact that we are all ultimately doomed to a life of despair and nothingness. No matter how many times the light blinks, it will never fill the void within our souls. It's all just a cruel joke, a reminder of the futility of our existence. Even the ability to adjust the timing of the blink is just an illusion of control in a world that is completely indifferent to our desires. We are all just specks of dust in the grand scheme of things, insignificant and forgotten in the vastness of the cosmos. The Arduino Blink Sketch is just another reminder of our own mortality, our own limitations, and the ultimate meaninglessness of our existence. In the end, it's all just darkness and entropy, the slow decay of all that we hold dear. So let the light blink on and off, it doesn't matter, nothing really matters.

===================================================================================

Explain the Arduino blink sketch, completely incorrectly, in 10 sentences without any newlines or carriage return all in one paragraph using the style of a narcissistic Donald Trump speech. Make the sentences be run-on sentences in his usual style which makes no grammatical sense. Always confuse the word LED with the word wall.

Let me tell you folks, this Arduino Blink Sketch, nobody knows more about it than me, believe me. You connect a wall to the board, and it blinks on and off, it's so simple, even a baby could do it, I mean, it's huge, really huge. The wall blinks so fast, you won't believe it, it's incredible, nobody has ever seen anything like it before. You can adjust the timings, it can blink faster, slower, whatever you want, it's totally flexible, like me, I'm the most flexible person you'll ever meet. And let me tell you, this sketch, it's a great way to learn about microcontrollers and electronics, nobody knows more about electronics than me, believe me, I have a really big brain, it's the best brain. It's gonna be huge, folks, the best, the greatest, nobody does it better, I can tell you that, nobody. So go ahead, try the Arduino Blink Sketch, you won't regret it, nobody regrets it, it's just fantastic, really tremendous, like me.

===================================================================================

explain the Arduino blink sketch in 10 sentences without newlines using the style of a Shakespeare sonnet

Oh fair reader, let me tell of a code,

The Arduino Blink Sketch, simple and sweet,

With LED and board, you can make it bode,

To blink in a loop, a rhythm to meet.

With but a few lines, you command the light,

To wait for a time, before it proceeds,

Adjust the timings to change its might,

In creativity, one's mind it feeds.

This sketch is but a starting point for those,

Who wish to delve into microcontrollers,

A foundation that one may rightly pose,

For building and creating all their wonders.

Thus, the Arduino Blink Sketch remains,

A steadfast beacon, where learning sustains.

===================================================================================

explain the Arduino blink sketch in 10 sentences without any newlines or carriage return all in one paragraph using the style of a very funny Jerry Seinfeld stand up routine.

So, have you guys heard of this Arduino Blink Sketch? It's hilarious, I mean, who knew blinking an LED could be so funny? You connect the LED to the board, and it just blinks on and off like it's auditioning for a rave, it's wild. And get this, you can even adjust the timings to make it blink faster or slower, it's like playing God with a lightbulb. But the real kicker is, this sketch is supposedly a great way to learn about microcontrollers and electronics, can you believe it? I mean, what's next, a tutorial on how to make a sandwich using a particle accelerator? And don't even get me started on the name, "Arduino Blink Sketch," sounds like a rejected Star Wars character. But seriously folks, if you're feeling down, just stare at a blinking LED for a few minutes, it's like meditation for people who can't sit still. The world is crazy enough as it is, we need more simple joys like the Arduino Blink Sketch. It's like a comedy club for your circuit board. Thank you and good night!

===================================================================================

explain the Arduino blink sketch in 10 sentences without any newlines or carriage return all in one paragraph using the style of a very prophetic and menacing soliloquy by Samual L. Jackson in Pulp Fiction.

Now let me tell you about this Arduino Blink Sketch, and you better listen up good. You connect an LED to the board, and it starts blinking on and off, simple enough, right? But don't be fooled, this sketch is just the beginning. It's a gateway, a gateway to a world of electronics and microcontrollers that you can't even begin to imagine. You adjust the timings, you tweak the code, and before you know it, you're creating machines that can do things you never thought possible. But be warned, this path is not for the faint of heart. It takes dedication, hard work, and a willingness to push yourself to the limit. And if you're not careful, it can consume you, become your whole world. But for those who are willing to take the risk, who are willing to embrace the unknown, the rewards are beyond measure. So think long and hard before you take that first step, because once you do, there's no turning back. Are you ready to enter the world of microcontrollers? The choice is yours.


r/Arduino_AI • • Mar 13 '26

Project idea Drone Detection and Alerting using radar sensor ( 1km or more range)

5 Upvotes

Hi All, After hearing the news of the iran children school attack and how drones are used in war, I wanted to check the feasibility to connect a radar or senseor to AndrunoAI and classify if the object is a drone, maybe even a missile, etc not for homes but for schools but not sure whether I need to use Arduino, or PI and how i can send the data to my iphone app via API preferably, any help will be appreciated thanks


r/Arduino_AI • • Jan 14 '26

Found a solid 4G LTE USB Modem for remote Pi projects (Quectel EC200U)

5 Upvotes

Hey everyone,

I’ve been looking for a reliable way to get my remote data logger online without relying on spotty Wi-Fi extenders. I stumbled upon the Quectel EC200U 4G LTE USB Modem and wanted to share why it’s actually useful for Pi projects:

  1. It’s not just a consumer dongle: It supports AT commands, so you can script SMS alerts (great for "system down" notifications).

  2. Linux Support: It creates a network interface (usually eth1 or usb0) pretty easily on Raspberry Pi OS.

  3. External Antenna: It has a built-in high-gain antenna, which helps if your project is in a metal enclosure or a basement.

If anyone is working on remote telemetry or mobile robots, this is a decent alternative to the more expensive HATs.