CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 12:34:25 GMT
content-type: text/html; charset=utf-8
cf-ray: 965c2bb7fb0cc464-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=65a473c1-7e95-4079-a98e-e6382511ef5e; expires=Mon, 27 Jul 2026 12:34:24 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 8c485590-3db4-4406-ba0e-8fa9169630a9
x-worker-origin-response-time: 483000000
x-dns-prefetch-control: off
set-cookie: prov=65a473c1-7e95-4079-a98e-e6382511ef5e; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=lM.UgQigWH9uaE0qSQV_.1fxI5evWhzYhAhsOutWDu0-1753619665-1.0.1.1-f_oWzUJ7InsZ3msAQwFjY6Si01bXwU_SC1vjY5nUgUD39KoeVOBYtvmFzpjCDhdudncpmuqUKcMPNizMAdOkO6AtSjceRbKU8GLm9VFqO8I; path=/; expires=Sun, 27-Jul-25 13:04:25 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=TzB2fd137tK9hlX7uSXqNsBriEMo009qTU_g9JKNQLQ-1753619665136-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'programming' Questions - Arduino Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [programming]
The process of designing and writing source code as part of a program (or sketch) for Arduino. For questions about uploading code to an Arduino board, use the [uploading] tag instead.
1,678 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
88
views
Reading JSON from Arduino via Serial Missing Parts of Message
I have a project (Digital Dashboard for a Motorhome) in Pi that reads JSON data from an Arduino board and sends it via Serial.
The Pi gets the JSON data, makes some adjustments and then sends it to an ...
1
vote
1
answer
92
views
include directive for external libraries
I added the Adafruit_GFX_Library to my Windows.
I used Arduino IDE, Tools > Manage Libraries > Install.
In preferences, Sketchbook location is set to d:\Alex\Hobbies\Electronic\Learning Arduino\...
0
votes
2
answers
91
views
How do I read data from a 32 bit I2C register address?
I'm having trouble reading the I2C data from the CPS8200, that has a 32 bit Register Address. Since I'm not too familiar with I2C register addresses more than 8 bits, and right now I'm not sure if I'm ...
0
votes
1
answer
73
views
Stepper motor not moving
this is my second Arduino project and I am trying to figure out why my stepper motor is not moving. I was able to get a basic 28byj-48 stepper motor to work using stepper.h and some sample code.
Now I ...
1
vote
1
answer
52
views
When I run my for loop the serial monitor is giving very strange results
This is unfinished code for driving a 4 digit 7 segment display. When I run my data function that should output the data to send to the shift register, I get a very weird output.
0 00111111
1 00111111
...
0
votes
4
answers
116
views
Adding multiple or's in line to condense amount of if lines
I have edited my question for more clarity. I am including the whole sketch. I tried to do a shorter version of my sketch, for this question, which had some typos in it and the way it was wouldn't ...
0
votes
1
answer
77
views
`sprintf` of %04d and %03x at the same time on Arduino
I have this code, work fine!
uint32_t id , id2;
char s[64]; // Should be enough
...
id2 = id = CAN.getCanId();
sprintf (s, "%04d : ", id ); // !!! HERE !!!
Serial.print(s);
the ...
0
votes
0
answers
78
views
ESP8266 Not Booting Properly on First Power On – Works After Restart
I'm working on an ESP8266-based water level monitoring system using an ultrasonic sensor and an I2C LCD. The problem I'm facing is that sometimes the ESP8266 does not boot properly when powered on for ...
3
votes
1
answer
90
views
Using a while loop in setup function to read sensor data
I have an Arduino vehicle and I upload projects to it that I want them to function once I use a strong light on a light sensor attached to A4 analog pin. So far, I have used the following code:
void ...
-1
votes
3
answers
121
views
Can you set up Arduino code to run once for a model display?
Rather hesitant to ask this question, as I have read a few comments on here that I feel are rather condescending. But at the same time some have been very helpful.
I have been building small scale ...
0
votes
0
answers
108
views
Initializing both I2C devices of a RP2040 Rpi Pico with Earle Philhower Core
I'm using the Arduino IDE (v1.8.19) with the Earle Philhower core to program a Raspberry Pi Pico (RP2040) board.
I2C bus 0 of the Pico (pins 4 (SDA) and 5 (SCL) are coupled to a first MCP23017 port ...
0
votes
2
answers
85
views
Difference Between delay() and a while Loop with millis() in Arduino?
What are the practical differences between using delay() versus a while loop with millis() for timing in Arduino projects? I assumed both methods are blocking, but I'm not completely sure.
Example ...
0
votes
1
answer
182
views
Questions about ATMega8A including burning my hex files
I wrote a small blink program for an ATMega8U-DIP I bought recently. The source is this,
#ifndef F_CPU
#define F_CPU 16000000
#endif
#include <avr/io.h>
#include <util/delay.h>
int main(...
-1
votes
1
answer
58
views
Musicbox freezes or can no longer find songs (FeatherRP2040, VS1053, Neokey1x4 x 2, RotaryEncoder)
I have a problem with my code for a music box that has the following features.
Using two neokey1x4 I can switch between folders on the SD card and press play/pause, stop, next song, previous song. ...
-1
votes
2
answers
290
views
Open drain without pull-up
Looks like I didn't make myself clear, sorry. Update to clarify things / TL;DR version:
4 Arduino UNO pins are connected to respective DE-9 pins, responsible for UP, DOWN, LEFT, RIGHT directions
...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
arduino-uno × 570
c++ × 210
serial × 133
arduino-mega × 127
arduino-ide × 125
c × 102
sketch × 95
sensors × 90
arduino-nano × 63
esp8266 × 60
led × 59
library × 54
motor × 47
lcd × 45
code-review × 41
array × 38
pins × 38
string × 37
interrupt × 34
servo × 32
communication × 32
timers × 29
button × 24
bluetooth × 24
atmega328 × 23
more related tags
Hot Network Questions
- edge to curve endpoint move/transform to normal direction
- Humans on alien planet get tailed by silent humanoids
- Regenerative cooling of rocket engine turbine's blades
- Source for Adam naming the angels
- Do TeX engines support Shavian OpenType fonts?
- In Fantastic Four 2025 shouldn't this thing have taken years?
- Symbols for A.P. Morse's book in Set Theory
- Why did the Holy Spirit send Jesus to the wilderness to be tempted by Satan?
- how is it possible for a player to have crossed 2400 and secure 3+ IM norms to stay FM
- Why am I winning always? A coincidence perhaps?
- Are classified documents subject to a subpoena in discovery?
- How should one pronounce plural French-derived German words?
- Has the Silver Surfer's clothing (or lack thereof) ever been addressed in the comics?
- What is the meaning of 'Tel.......,qui......'
- Were the Fantastic Four the only superheroes on Earth-828 in The Fantastic Four: First Steps?
- When did the OEIS get even better?
- How can my dwarves keep humans from reverse engineering their technology?
- leftmargin in enumerate
- How to extend an MDF shelf?
- "I met a monk and philosopher." How many people did I meet?
- Can Spi flash memory's contents be corrupted from heat?
- Are you required to protect trade secrets revealed to you even if you didn't sign an NDA?
- Why does Gaza Humanitarian Foundation (GHF) not distribute more food in Gaza?
- Is this a violation of open source?