Most Popular

1500 questions
4
votes
1 answer

How do you convert a formatted print statement into a string variable?

I'm using the following routine to print the current time on the com port. I would like to capture this as a string so I can display it using ePaper. void printLocalTime() { time_t rawtime; struct tm timeinfo; …
Simon Markham
  • 43
  • 1
  • 1
  • 3
4
votes
1 answer

How to listen to multiple server ports with ESP8266?

I'm using WeMos D1 R2. I'm trying to listen to both ports 1992 and 1993. This is my current code: #include WiFiServer server_1992(1992); WiFiServer server_1993(1993); void setup() { Serial.begin(9600); WiFi.begin("MySSID",…
MoonFan
  • 43
  • 1
  • 5
4
votes
5 answers

Arduino Yun external antenna

Can someone help me understand how the external antenna IPX connector actually stays connected to the Yun? Do I have to "force" it in so it snaps in? I've been somewhat gentle with it in fear I'll break something. However when I get close to getting…
Pat
  • 217
  • 1
  • 5
  • 10
4
votes
1 answer

Interrupt fires a random number of multiple times for one pulse

This is my first time posting on this forum. I have tried to format this question properly, but let me know if I need to correct anything. I searched to see if someone else had a similar problem, but let me know if someone has already answered this…
4
votes
2 answers

Is there alternative to arduino IDE program ESP8266 and ESP32 with arduino toolchain?

I use ESP8266 and ESP32 with arduino toolchain rather than pure arduino hardware. Arduino IDE is standard and proven but what are the other IDE and advantage/disadvantage ?
E.Racineux
  • 107
  • 1
  • 2
  • 11
4
votes
5 answers

What does Arduino do in 15ms?

I was wondering why there is a 15 ms delay between each iteration of a the main loop. Code: The following code shows the execution time expressed in microsec between each loop void setup() { Serial.begin(9600); } void loop() { …
UserK
  • 559
  • 1
  • 11
  • 24
4
votes
2 answers

Why do people complain when I call my functions voids?

I have posted questions about "my void loop" or "my void setup" and people complain that they aren't really voids. But they are! See this example code: void setup() { pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); // turn the…
Nick Gammon
  • 38,883
  • 13
  • 69
  • 125
4
votes
1 answer

Turn off the second builtin Nodemcu 0.9 led

I'm making a low energy consumption device so I'd like to turn off all the led when I'm idle. Unfortunately the nodemcu turn on a blue led while I'm idle (during delay(ms)) Here is my code: #define LED 16 void setup() { initialSetup(); …
Timmy
  • 195
  • 2
  • 12
4
votes
1 answer

How to switch an external circuit with Arduino?

I have an object with a series of led and I want to turn on and off these leds from my Arduino. The input of the LED circuit is 24v DC 100mA. What I've done is the following: I've cut a wire of this object and I connected one end to the collector…
Alessandro
  • 143
  • 1
  • 3
4
votes
1 answer

Is there a way to disable modules like ADC without a sleep mode?

I'm working on a binary watch project. I want my circuit to live off of batteries for as long as possible, so I want to decrease the power consumption of my chip. I'm using a barebones ATmega328P-PU with two 74HC595 shift registers. The ideal…
thallia
  • 43
  • 1
  • 4
4
votes
1 answer

Modbus RTU controller monitoring with arduino and RS485 module

I'm a medium user in Arduino. I baught a pHmeter controller with RS485 output (MODBUS RTU protocol). I want to get pH value read by the controller over RS485 module and Arduino. According the controller's manufacturer, we should operate as…
Teddol
  • 85
  • 1
  • 2
  • 8
4
votes
4 answers

Elegant solution for refreshing TFT display content?

I'm currently drawing black boxes over old content before displaying constantly refreshing content on my display, so for instance to display temperature: if (sensorTemp != nowTemp){ nowTemp = sensorTemp; …
Streamline
  • 75
  • 1
  • 2
  • 9
4
votes
3 answers

Can I force Arduino not to be powered by USB?

I'm building a 3D printer and I'm using an ATmega2560 + RAMPS board. The whole thing is powered by an ATX PSU (12v for motors and stuff, 5v for the Arduino), but when I plug in my USB cable, I can't shut the printer down, as it switches over to USB…
Valmond
  • 143
  • 4
4
votes
1 answer

Two Arduino boards - one IDE

Have been using UNO MEGA for small projects. Recently bought an UNO for other projects. Can I just go into the IDE an under Tools select UNO and a different port to do projects and rename sketches to keep track of sketches. Do not wish to use boards…
4
votes
5 answers

Powering a 5V Arduino Pro Mini with 3.3V

I want to run the 5V board at 3.3V because I can get the 5V version cheaper than the 3.3V version. I read that you can power the Arduino Pro Mini with a battery by connecting the battery to the 5V pin, bypassing the regulator. Somewhere else I read…
laktak
  • 143
  • 1
  • 6