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.

0 votes
2 answers
2k views

The following code reads the DHT22 temperature and humidity values, assuming the pin value as the sensor's host pin. When the temperature drops below 0°C, this code returns inadequate values in the ...
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 ...
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 ...
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 ...
1 vote
4 answers
770 views

How do I connect the cables in order to program the Arduino Pro Mini with the CP2102 usb interface? The TX, RX and GND is easy, but I am not sure about the RST, DTR, DST, etc. When I try cables like ...
9 votes
3 answers
8k views

I am making an interface project that, when plugged into a computer, shows up as both USB flash storage and can type like a keyboard when some physical buttons on the board are pressed. I have seen ...
4 votes
1 answer
122 views

Python/Arduino Beginner here... I have a DFplayer I am trying to hook to my Arduino and I want to hook it up through the regular pins instead of the RX and TX pins, but I've not been able to find ...
2 votes
1 answer
115 views

I am trying to make a battery load cycler to charge and discharge a battery repeatedly for a certain amount of cycles and here is my code: bool in_charge_mode; int cycles = 0; float cutoffvoltage = 2....
0 votes
1 answer
341 views

I'm trying to port the MFRC522 Arduino library (from GitHub) to the ARM MCUs. My problem is with the PCD_ReadRegister function: /** * Reads a number of bytes from the specified register in the ...
-2 votes
2 answers
2k views

int scvVal = 6; int drvVal = 9; int sensorVal = A1; void setup() { Serial.begin(9600); pinMode(6, OUTPUT); pinMode(9, OUTPUT); } void loop(){ sensorVal = analogRead(A1); Serial....
1 vote
4 answers
12k views

I just received a RC522 board and since i am new to RFID, I tried out some examples from "Arduino RFID Library for MFRC522". Here's one of them rfid_default_keys /* * -------------------------------...
1 vote
1 answer
220 views

I am learning ESP32 network programming and I started by writing a simple telnet server. It uses a WiFiServer object to listen on port 23 and just log anything it receives to the serial monitor. ...
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 ...
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 ...
0 votes
2 answers
2k views

I'm fairly new to this, and I haven't been able to find any answers after searching repeatedly. I have a Startscreen() function that I run during my setup sequence, and within that function i use ...

15 30 50 per page
1
2 3 4 5
112