Arduino

A

Arduino

Official Arduino Discord - Discuss all things Arduino!

Join

hardware-help

coding-help

official-product-help

project-showcase

general-help

pcb-help

adafruit-help

official-product-help

robotics-help

sensors-help

coding-help

hardware-help

esp-help

pi-help

i2c-serial-help

"Compilation error: grpc: error while marshaling: string field contains invalid UTF-8"

hi, im pretty new to coding and i have a problem with the compilation of my code for Arduino: when i open the code in arduino ide and once its loaded click on verify everything compiles without errors but when i change anything e.g. put a space character somewhere(even in another file) it outputs the following error: grpc: error while marshaling: string field contains invalid UTF-8...

i got exit status 1 and bunch of errors

can someone say how to fix this
No description

A problem while socket

I have a program where i use socket to communicate with my pc and raspberry pi i send through the computer data which is 2 numbers and like 1800,2200 for example i use Arduino to control the data and then i send it to pi but after a while my pi just says too many values to unpack i tried to put time.sleep(0.1) but still happens

How do I communicate between Arduino and OpenCV?

Hi, I've made python program using OpenCV that tracks my robot and creates a destination for the robot to move to. How do I bridge the python file into my Arduino code, such that my robot moves to the destination? My idea was feeding my motors the x and y coordinates for where my robot is, and where it needs to go. BUT, how can I achieve this? I realize this is not an OpenCV discord, but perhaps anyone here has had some experience with this before? any help is greatly appreciated, thanks in advance!:)...

Oled Oval Eyes

// Emotion overlay if (currentEmotion == EMOTION_HAPPY) { // Happy: draw an upward curved arch using small overlapping circles int radius = 4; int step = 2; // spacing between circles...
No description

ESP 32 locking up

I am using an esp32 to create an airsoft bomb where the players have to use switches and a keypad to disarm a bomb which plays an explosion sound when the timer runs out. the problem is if I enter the code wrong 3 times, it locks up and refuses to continue. I have to restart the whole thing. To be honest I used Chat GPT to help me with the code. it works perfectly other than the issue of it locking up....

RP 2040 - PIO programming in Arduino IDE on linux

I've got a few Picos, I'd like to try programming PIO. Quick search shows mostly micropython tutorial (which are useless to me), or 1-3 years old tutorial for windows workflow. Can anyone point me to a good tutorial for programming PIOs on linux within Arduino IDE preferably, or explain how to get started?...

Double output in 16x2 LCD low level implementation

I'm interfacing an LCD with an atmega328p and programming it in assembly. the problem is I'm getting double characters printed in each iteration of the print loop. also, there's a "garbage" byte at the beginning. code: https://pastebin.com/Xdw4MSw7
No description

Serial Monitor

I am making a CNC machine from DIY Machines on Youtube and I am getting zero response from the Serial Monitor—how do I fix that?
No description

Receiving incorrect data through Serial

I'm trying to interact with UART using assembly, but I can't seem to get it to print the right data. the main things to look at are putc and puts. everything works fine only if I used one of them and not both in one program....

How do I code the Adafruit Mini LED Arcade Buttons?

As the title mentions, i'm wondering if there was a library or some examples when coding the mini led arcade button from adafruit. https://www.adafruit.com/product/3491...

Bluepad32 issue with Whitelist

I'm using Bluepad32 4.1.0 with arduino IDE 2.3.6 When pairing a controller with a whitelist (i made sure its the right one) I get : DS4: Failed to create virtual device Control not allowed: address not allowed I am modifying a sketch to use for a competition, which is why I'm trying to implement the whitelist....

My setup is looping? LEDs and oled going crazy..

idk why but my LEDs blink and my oled goes on and off really fast

BASIC STEPPER CONTROL WITH PI AND WAVESHARE STEPPER HAT

I have tried for hours to get the stepper motor to just spin a couple of times with cpp and all it does currently is lock the motor. there are no wiring issues because im literally using a waveshare stepper hat so it couldn't get any simpler. I had no problem with arduino and individual a4988s in the past either. ``` include <lgpio.h> #include <unistd.h> // for usleep...

I'm trying to make an override code

So, for context, I am making a system where the servo motor is constantly on an automatic sweeping motion. The micro:bit sends an analog signal from pin 0. If its high, it will activate an override code Problem is... the override code doesn't work. And the servo either freezes or the override doesn't activate....
No description

Code not working

my code isnt wokring. I cant see my website https://github.com/AltRavenAR/HackProjects For soime reason it doesnt even show up on github...

Accessing arduino cloud api via python giving error 405

Hi all! I'm trying to access my arduino cloud via the python api. I tried following the tutorial in the docs at https://docs.arduino.cc/arduino-cloud/api/arduino-iot-api/ however when I use the script they suggest on there it get an error 405 with reason: Method Not Allowed. (see full stacktrace below). I've checked my api keys and even making the same request through postman which all seems to work fine (mostly). I do have an organization so im wondering if the issue is because theres no clarification for personal vs org account but i'm not entirely sure how i'd add that. I can add the python code if you're curious (its essentially the copy paste from the website). Thanks in advance! Stacktrace: ``` Exception when calling ThingsV2Api->list_things: (405)...

Need help in Adruino Uno + MPU6050 + SIM800L EVB

I have a current project but can't seem to make it work. Here's what I want to do. (MPU6050 detects a movement, then it will trigger a buzzer that will run for about a few seconds. Then it will send SMS alert to my phone.) It would be better if there's a turn on and off switch for the whole system. Thank you!...

Recording sound as .wav

so I am trying to make arduino uno code that records audio on SD from A0 when button A1 is pressed but I am getting wierd files that can't be played can any one tell me why?