Skip to main content

Questions 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.

2 votes
2 answers
149 views

We are trying to get two Nanos to communicate via CANbus, using MCP2515 shields. I have decided to use the autowp/arduino-mcp2515 CAN interface library for the code. I've based my code off their ...
B_Seibel's user avatar
1 vote
1 answer
234 views

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 ...
Paul Uszak's user avatar
1 vote
1 answer
96 views

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 ...
Honeybadger22's user avatar
0 votes
2 answers
138 views

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 ...
Luigi's user avatar
  • 181
1 vote
1 answer
114 views

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\...
Alex 75's user avatar
  • 121
0 votes
1 answer
127 views

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 ...
Doug Ray's user avatar
  • 109
0 votes
2 answers
207 views

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 ...
J. Street's user avatar
  • 109
1 vote
1 answer
57 views

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 ...
Daniel MacDonald's user avatar
0 votes
4 answers
165 views

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 ...
Tom Lahue's user avatar
0 votes
1 answer
90 views

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 ...
James's user avatar
  • 11
-1 votes
3 answers
156 views

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 ...
Phil Bagley's user avatar
0 votes
0 answers
127 views

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 ...
johnson veigas's user avatar
3 votes
1 answer
107 views

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 ...
Wizard's user avatar
  • 141
2 votes
1 answer
227 views

I am trying to make a digital die for my project at school. I am having trouble with the programming. I don't really know how to write code and I am not a programmer. I took inspiration from a post on ...
Urban's user avatar
  • 29
94 votes
22 answers
19k views

The basic Arduino IDE lacks a lot of the sophistication present in other IDEs such as code completion, code collapsing, folder organisation, etc. Are there other IDEs that allow programming in C or C++...
DLJ's user avatar
  • 1,149

15 30 50 per page
1
2 3 4 5
112