Most Popular

1500 questions
17
votes
2 answers

Split up Arduino code into multiple files using Arduino IDE

I am working on a very long code that requires multiple functions defined. I want to split the code into two files as main code ("Feeder_Control" in the screenshot) and functions ("connections" in the screenshot) How to import the second file into…
17
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
  • 941
  • 3
  • 19
  • 32
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,292
  • 7
  • 30
  • 51
17
votes
6 answers

How do I resolve "avrdude: stk500_recv(): programmer is not responding"?

Whenever I try to program my Arduino UNO Rev.3, I'm seeing the following error avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not…
Evan Carroll
  • 455
  • 1
  • 6
  • 16
17
votes
3 answers

Use all pins as digital I/O

Increase the number of digital pins There are many posts that explain how to use more than just the standard pins on the various Arduinos, but none of them properly explain the limitations and problems. Arduino Uno: 1. You can use the analog…
cocco
  • 451
  • 5
  • 7
  • 16
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,365
  • 10
  • 34
  • 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,365
  • 10
  • 34
  • 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,365
  • 10
  • 34
  • 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,365
  • 10
  • 34
  • 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
  • 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