6 votes
Accepted

lcd.createChar() only allows for 8 custom characters

These displays only allow up to 8 custom defined characters. The hardware just only has the character RAM for at most 8 characters. They will be mapped to char codes 0 to 7 and 8 to 15. The character ...
user avatar
  • 1,059
2 votes
Accepted

Arduino create Json Array with double values and 2 decimal point

You defined the rounding function round_range(), but never used it. You want to round the numbers that you are putting into the array within the JSON document: rangeValues.add(round_range(buffer_range[...
user avatar
  • 35.5k
1 vote

Round to first significant digit

First of all, let me clarify that there is nothing “decimal” in a float: a float is a binary (not decimal) floating point number. The Serial.println() function does a binary-to-decimal conversion for ...
user avatar
  • 35.5k
1 vote

Externally powering Arduino while reading voltage off it via USB

Pin 13 is a digital pin, it does not have the capability to read voltage. You need to use one of the analog pins to read voltage, they are prefixed with the letter "A" (A0 for example). You ...
user avatar
  • 1,416
1 vote
Accepted

What is my code lacking that the servo rotates non-stoppingly? Servo should rotate 180 when distance is <= 50 and 0 when this condition is not true

Checking your program I found two errors IMHO. Please see the comments in the copied code below. The one also pointed out by @EdgarBonet definitely prevents your program from working correctly. The ...
user avatar
1 vote

Displaying multiple temperature outputs w/Thermistors

Here is my proposal: Sum the readings (samples) of each sensor(thermistor) and store the sum in an array. Then divide each sum by the number of samples that were taken. Instead of computing one ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible