Most Popular
1500 questions
21
votes
8 answers
In Linux, how to identify multiple Arduinos connected over USB?
If I have multiple Arduinos connected over USB to a Linux computer, and they show up as
/tty/ACM0
/tty/ACM1
/tty/ACM2
How can I identify which Arduino is which without connecting to them via serial connection? Is there a serial number or a…
vlad b.
- 719
- 2
- 7
- 13
21
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,932
- 9
- 47
- 87
21
votes
2 answers
How many interrupt pins can an Uno handle?
I am looking at using a 7 channel RC receiver with the Arduino Uno R3. In the documentation, there are mentions of a maximum of 2 interrupt pins, whereas on certain other blogs I have seen mentions of using upto 20 pins as interrupts, with…
asheeshr
- 3,837
- 3
- 25
- 61
21
votes
3 answers
Classes and objects: how many and which file types do I actually need to use them?
I have no previous experience with C++ or C, but know how to program C# and am learning Arduino. I just want to organize my sketches and am quite comfortable with the Arduino language even with its limitations, but I really would like to have an…
heltonbiker
- 503
- 6
- 21
20
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,389
- 4
- 22
- 25
20
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,372
- 8
- 26
20
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.
- 311
- 4
- 10
20
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
- 301
- 1
- 2
- 5
20
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
- 542
- 2
- 8
- 19
20
votes
5 answers
How do I get an accurate time?
I've made a clock using an Arduino, but the time seems to drift. I am aware of the rollover issue; the clock seems to drift by about 15 minutes over the course of a week.
I'm using a custom PCB with this resonator from Digi-key. The code reads the…
John Walthour
- 323
- 3
- 8
20
votes
5 answers
Are there any signal smoothing libraries for Arduino?
I am working on a mobile robot controlled via a wireless 2.4 GHz link.The receiver is connected to the Arduino Uno which serves onboard as the main controller. The most critical (and main) input channel coming from the receiver produces a very noisy…
asheeshr
- 3,837
- 3
- 25
- 61
20
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
- 321
- 2
- 3
- 5
20
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
- 11
- 25
20
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
- 397
- 1
- 3
- 9
19
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,370
- 2
- 24
- 53