Most Popular

1500 questions
17
votes
1 answer

How do I convert a float into char*?

Asked this question on Electrical Engineering Stack Exchange and was directed here: Pretty self explanatory; how would I go about converting a float into a char*? I have code in which the float 'resistance' is constantly being updated. I would like…
higgsboson
  • 173
  • 2
  • 2
  • 6
17
votes
6 answers

What happens if there is a runtime error?

What happens if there is a runtime error in a program? Will execution of the program just stop? Is there some way I can get the Arduino to tell me what the error is?
The Guy with The Hat
  • 5,232
  • 7
  • 29
  • 51
16
votes
6 answers

How can I get the source files for Arduino libraries?

I've been looking for a while inside Arduino's files to find the core library. However, I haven't found them yet. Where on my hard drive can I obtain the core library files (.cpp and .h) necessary for all Arduino code? Looking around on Google, I…
Anonymous Penguin
  • 6,285
  • 10
  • 32
  • 62
16
votes
5 answers

How cold or hot can my Arduino Uno get?

The Arduino Uno Page doesn't say the temperatures that it can operate in. I'm thinking about placing it outdoors. How can I make sure my Arduino Uno is safe in weather that can reach -20 to 105 degrees Fahrenheit? (-26 to 40 degrees Celsius).
Anonymous Penguin
  • 6,285
  • 10
  • 32
  • 62
16
votes
4 answers

Is my Arduino dead or is it just its processor?

I have a problem with my Arduino. I can't upload any sketches to it (it gives me the error avrdude: verification error; content mismatch), but the LEDs are still blinking. Do you think that the whole Arduino is dead or is it just the chip ? EDIT : I…
Pop Flamingo
  • 335
  • 1
  • 2
  • 8
16
votes
2 answers

How precise can I get Arduino using rotary encoders?

Stepper motors are often pricey for a large motor. However, with a powerful, standard DC motor and a rotary encoder, you can "simulate" a stepper motor. How accurate are rotary encoders with Arduino just with a basic loop and not much other code? Is…
Anonymous Penguin
  • 6,285
  • 10
  • 32
  • 62
16
votes
1 answer

How can I sense when someone is sleeping with my Arduino?

Ignore the stalker-like title. I am thinking about creating a project with Arduino that can sense you sleep habits, when you're asleep, and how much you sleep. It would be convenient to not have to turn it on/off at night; it should know how to do…
Anonymous Penguin
  • 6,285
  • 10
  • 32
  • 62
16
votes
2 answers

How many times can I upload a program or sketch to my Arduino Uno Clone Board?

I'm about to work on my very first project using arduino (I'm just about to buy one next week), and one of our professor says that we can only upload a program or sketch in an Arduino Uno Board for approximately 8 times. He also added that if we're…
A. Raymundo
  • 161
  • 1
  • 7
16
votes
1 answer

Arduino Nano no serial port for MacBook Air 2013

Problem I have an Arduino Nano connected via a USB cable (Type A to Mini Type B) to my MacBook Air (Mid 2013 Model). The PWR LED is on while the arduino is connected. Opening the Arduino software, pulling down the Tools > Serial Port menu does not…
Mecha
  • 391
  • 1
  • 3
  • 10
16
votes
4 answers

All the differences between Arduinos: Pro Mini & Pro Micro

I'd like to know the differences between these two boards: Arduino Pro Mini and Arduino Pro Micro. Even if I've read this and this related post, it is not clear enough. I've always used the Arduino Uno or Leonardo and I'm a little bit scared of…
nkint
  • 461
  • 3
  • 9
  • 22
16
votes
4 answers

Burning Arduinos one after another

I very accidentally caused a short-circuit to two completely different cheap (under 4$ each) Arduino Uno clones, rendering Windows sound alert for unplugged USB several times. This subsequently led to a problem with uploading code and not blinking…
Edenia
  • 369
  • 2
  • 7
16
votes
1 answer

Convert int to char[]

I'm looking to convert an int value to a char array. currently I've found the following will return [number] int num = [number] str = String(num); str.toCharArray(cstr,16); Serial.println(cstr); However, per Majenko's The Evils of Arduino Strings I…
ATE-ENGE
  • 931
  • 3
  • 19
  • 32
16
votes
3 answers

Does the Node MCU v3 (LoLin) not have a builtin led?

Trying a simple led blinking program I could not get the builtin led on a LoLin Node MCU v3 working. The LED_BUILTIN constant is set to pin 16 / GPIO16 / D0. Reading several articles and QA I think that the Node MCU boards are supposed to have a the…
Jan H
  • 271
  • 1
  • 2
  • 7
16
votes
3 answers

Arduino powering from 9V battery

Yesterday afternoon I have left my Arduino running on a fresh Alkaline 9V battery (+ connected to Vin, - connected to GND). Today morning (16 hours later) the LCD display was no longer visible, and when I measured the volatage, I saw the battery was…
Suma
  • 341
  • 1
  • 3
  • 18
16
votes
2 answers

The use of 4.7kOhm resistor with DS18B20 temperature sensor

I was using a temperature sensor DS18B20 with Arduino. I've read that you should connect the digital input line and the 5V line with a 4.7kOhm resistor - like in the picture. Can someone explain why do we need to do this? And why this resistance?…
kamilazdybal
  • 305
  • 1
  • 2
  • 7