CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 14:03:28 GMT
content-type: text/html; charset=utf-8
cf-ray: 965cae2dbc0d755c-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=761b3a35-dd0f-4607-b2de-a5cf22bccdbc; expires=Mon, 27 Jul 2026 14:03:28 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: edc05533-ca8b-4b0b-adc3-c7c6d42f8b34
x-worker-origin-response-time: 401000000
x-dns-prefetch-control: off
set-cookie: prov=761b3a35-dd0f-4607-b2de-a5cf22bccdbc; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=mBfaEIdkaL.R6WQNca9ktK1VvmmMeyH8INBq4UXUoyk-1753625008-1.0.1.1-sv1tTPo7zLSAUWVRq8TkLJ72HoDmOUjDvWffXqTe2nSrDlemjv8Y2z9ftGF7qpXAj5cEQu4GrR4ZZ5ziCaFRAxjs5xwvfrIX41YBcV6tbrE; path=/; expires=Sun, 27-Jul-25 14:33:28 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=KXSLf_a_KBNSw8gDC_xT1p7PZF5c4fc3pb5BQBF59qg-1753625008695-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,679 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
5
views
Can one re-program a Leonardo Eth via its Ethernet port only?
Let's assume we have an Arduino Leonardo Eth running some sort of networking application, perhaps a very simple web server. Importantly the server is read only and static HTML. There is no ability to ...
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. ...
- 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
- What is the best interpretation of Psalm 6:4? Does "Turn" or "Return" capture the intended meaning?
- Statistics – Linear Inference – What is the moment generating function of non-central t-distribution?
- How to navigate in the Universe's Heat Death
- Still learning electronics, can you explain this voltage protector failure?
- Time Machine backup disk not writeable any longer
- leftmargin in enumerate
- How should one pronounce plural French-derived German words?
- Why am I winning always? A coincidence perhaps?
- “Unclear step in a math book for entertainment”
- A question about as ..... as comparison
- Existence of Jordan curves between a compact and an open set
- Has the Silver Surfer's clothing (or lack thereof) ever been addressed in the comics?
- Calculus Books Recommendation
- Regenerative cooling of rocket engine turbine's blades
- Balancing a Holy Water Bomb
- Why is 0.0 printed as 0.00001 when rounding upward?
- Not being introduced to the team – should I ask for it?
- What were the two colored keys on a MUPID for?
- Why are police personnel of all ranks called officers?
- Easy ways to draw vector diagrams in TikZ?
- What is the meaning of 'Tel.......,qui......'
- Blinded despite Blindsight?
- When and why is fwait necessary when using the 8087 coprocessor?
- Will this work as an XOR gate?