Most Popular
1500 questions
21
votes
3 answers
Arduino Pro Mini (3.3V version) input voltage range / tolerance
I have a few Arduino Pro Mini clones (cheap Chinese stuff) and would like to power them with 12V power supply (same as fan voltage). According to the Arduino Pro Mini spec the RAW pin can take 3.35-12V (3.3V model). In practice this means a 12V PSU…
DominicM
- 597
- 3
- 7
- 13
21
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
- 467
- 1
- 6
- 9
21
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
- 978
- 2
- 9
- 15
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,982
- 9
- 48
- 87
21
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
- 331
- 2
- 3
- 5
21
votes
1 answer
How does serial communications work on the Arduino?
With reference to the Arduino Uno, Mega2560, Leonardo and similar boards:
How does serial communications work?
How fast is serial?
How do I connect between a sender and receiver?
Please note: This is intended as a reference question.
Nick Gammon
- 38,901
- 13
- 69
- 125
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,847
- 3
- 26
- 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
- 7
- 21
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
2 answers
When should I use a transistor, mosfet, and when should I use a relay?
I am used to relays some, and they are useful, especially for large loads like a incandescent light bulb or other 120V AC device. However, it seems like overkill to use a relay for a bunch of LEDs linked together (parallel) that use 60 mA (too much…
Anonymous Penguin
- 6,365
- 10
- 34
- 62
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
- 1
- 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,847
- 3
- 26
- 61