Most Popular
1500 questions
19
votes
5 answers
I'm using too much RAM. How can this be measured?
I would like to know how much RAM I am using in my project, as far as I can tell, there's no way to actually work that out (other than going through and calculating it myself). I have got to a stage in a rather large project where I have determined…
Madivad
- 1,332
- 8
- 26
19
votes
3 answers
Arduino program only works when run as root
Uploading simple sketches seems to work when I run the Arduino program as root (sudo). I would like to run it as a regular user. Has anyone faced the same problem before and fixed it?
Here is what I obtained from lsusb:
$ lsusb
Bus 002 Device 022:…
feverDream
- 291
- 1
- 2
- 5
19
votes
6 answers
Powering Arduino with car batteries
Presumably, one powers an Arduino board with car batteries for long-term operation away from the power grid.
How can this be done, and what are the most (1) economic, and (2) reliable ways to do this? Specifically, do any additional risks to short…
0xF2
- 522
- 2
- 8
- 19
19
votes
4 answers
How can higher current devices (motors, solenoids, lights, etc.) be controlled by an Arduino?
I'm looking for a broadly applicable solution, one that can be adapted to a variety of projects.
I'm currently working on several projects that each require controlling devices ranging from 800mA to 2A from an Arduino Uno. One controls stepper…
jlbnjmn
- 938
- 2
- 9
- 15
19
votes
5 answers
How much can I recurse? How much can I recurse? How much ca!@#QFSD@$RFW
The Arduino Uno board has limited RAM which means it has a limited call stack available. Sometimes, recursion is the only quick option to implement a certain algorithm. So, given that the call stack is severely limited, what would be a way to find…
asheeshr
- 3,687
- 3
- 24
- 61
19
votes
2 answers
Would an infinite loop inside loop() perform faster?
When you're writing a typical sketch, you usually rely on loop() being called repeatedly for as long as the Arduino is running. Moving in and out of the loop() function must introduce a small overhead though.
To avoid that, you could presumably…
Peter Bloomfield
- 10,842
- 9
- 46
- 87
19
votes
2 answers
CLion + Arduino
Please, help me to set up Clion + Arduino.
Clion has an Arduino plugin which I've installed. Here is some instruction on Github but I'm fully noob about cmake and other things which are talking about in instruction. I have only used Arduino IDE…
Kvach
- 301
- 2
- 3
- 5
19
votes
3 answers
List of Arduino board preprocessor #defines
When one selects a board within Arduino IDE, a preprocessor definition is added to one of the behind-the-scenes files.
After a lot of hunting and some good fortune I found that the format of this definition is:
#define…
CharlieHanson
- 1,400
- 1
- 9
- 25
19
votes
4 answers
Parse JSON with arduino to turn on LED
Hi i'm trying to parse JSON resposne from webserver in my arduino in order to turn on and off a LED light. I'm using the wifi client repeating example to make a get request to my server:
http://arduino.cc/en/Tutorial/WiFiWebClientRepeating
Here is…
user1424508
- 387
- 1
- 3
- 9
18
votes
1 answer
What's the 2nd ICSP header for in Arduino Uno R3?
Looking at my Arduino Uno R3 board and its reference design schematic I noticed that there's a second ICSP 6-pin header. In the schematic, the connector I'm referring to is named ICSP1.
What's that for?
What useful things can an average Arduino…
Ricardo
- 3,290
- 2
- 23
- 52
18
votes
4 answers
What is the maximum power consumption of the Arduino Nano 3.0?
What is the maximum power consumption (in mW) of the Arduino Nano 3.0, when it is running in its default state (at 16MHz, no LEDs removed) and powered by an external regulated 5V supply so it bypasses the built in voltage regulator?
This will give…
Nyxynyx
- 1,319
- 4
- 20
- 25
18
votes
2 answers
Does Arduino Uno R3 require cooling in a closure?
I was looking at getting an enclosure to house my Arduino Uno R3, but I'm not sure if I should also attach a fan. Does anyone have experience with this? It doesn't look like much heat is being generated, but with no ventilation except some slits…
B.K.
- 291
- 4
- 10
18
votes
4 answers
Compatibility between Arduino and Arduino clones
In a project I am using a Seeeduino v3.0 as an Arduino clone. On the seeeduino website it says that
It is based on the Duemilanove schematic, 100% compatible to its existing program, shield and IDEs.
In fact I never had any problems with shields…
A.Schulz
- 437
- 1
- 6
- 9
18
votes
6 answers
Smaller and cheaper alternative to Arduino Uno for permanent projects
I have played a bit around with a Arduino Uno that came in a kit with a breadboard and components. Soon I would like to make some more permanent things.
I would prefer a smaller and cheaper unit than the Arduino Uno but that is almost as easy to use…
Andy
- 283
- 1
- 2
- 7
18
votes
2 answers
Should all unused analog input ports be tied to ground for accurate A2D measurements?
I am using the A0 port on my Arduino Uno to read the voltage output from an LM35 temperature sensor. I observed that the reading fluctuates a lot if I leave the remaining analog input ports A1 to A5 floating. Would floating analog inputs affect the…
Kavka
- 326
- 2
- 9