Most Popular

1500 questions
7
votes
9 answers

How to eliminate noise from PWM controlled 12V fan at low speed

I am trying to build a simple fan controller (single fan). So far I have successfully created a circuit which powers the fan with an external 12v DC adapter and added a transistor (NPN) to switch it on and off. The transistor is connected to a PWM…
Fieg
  • 173
  • 1
  • 1
  • 7
7
votes
7 answers

Fluctuating readings of LM35 temperature sensor (+- 5°C) with Arduino UNO

I am trying to read a LM35 temperature sensor with Arduino UNO which I got as a gift. The issue is the fact, that my readings of sensor are, well, suspicious at least - they jump with each reading some 5 °C up or down. I had used several posts how…
Rao
  • 179
  • 1
  • 3
7
votes
2 answers

Are all Arduino shields compatible with all Arduino boards?

Are all Arduino shields compatible with all Arduino boards? Like is the Wi-Fi one compatible with the Arduino Nano & Micro as well as the Uno, etc., or do I need to be careful when buying shields that they'll be compatible with my board? Also, the…
alice fey
  • 73
  • 1
  • 3
7
votes
5 answers

Can I have backup power for an Arduino device?

I have an arduino project that will work while plugged into a generic outlet. But I want to connect a battery in case the power goes out. I know there are various power sources (coin cell, polymer lithium, 9V, etc.). But if I code my project to use…
SnowboardBruin
  • 187
  • 1
  • 1
  • 8
7
votes
3 answers

Advisability of Using Bit Fields in Structs

I have to track a large amount of data (for an Arduino) in a program while taking care of a fair amount of other business. I started with a struct like this: struct MyStruct { // note: these names might as well be foo bar baz uint8_t color; …
anthropomo
  • 173
  • 1
  • 6
7
votes
3 answers

Multiple SPI device

I want to connect Ethernet board (W5100 HR911105A) to Arduino Leonardo with SPI and I also want to connect SD reader. When I test these boards separately everything working. But when I connect them on the same board the program fails at…
eszik.k
  • 121
  • 5
7
votes
1 answer

Can I change font Color and/or Type for IDE 1.5.6r2?

The program becomes harder to read (at least on my particular monitor) after upgrading. Any way to change font Color to darker color and/or Type to thicker stroke (like B in this question editor) for IDE 1.5.6r2?
EEd
  • 904
  • 1
  • 13
  • 21
7
votes
1 answer

Accessing a C++ static variable from gcc inline asm

For some reason I want to mix a bit of assembly with C++ (not C). To allow the code to be compilable using the standard Arduino IDE, I don't want to use direct assembly source. I don't want to use a wrapper C file either. My problem is as follows: I…
kuroi neko
  • 183
  • 6
7
votes
1 answer

From transfer function to arduino

This question might seem stupid, but I have been curious about it for a long time. So I am a new engineering student, and we learned a lot about "designing a controller". For example, design controller for a car steering system and so on. All the…
MechAvia
  • 171
  • 1
  • 1
  • 2
7
votes
2 answers

Analog Reference and Power Voltage

On the Arduino website it states that the analog pins read voltages from 0 to 5 volts (default) and return a value from 0 to 1023. One can also set the range with analogReference(). However, this is probably assuming the Arduino is running at 5…
user3933
7
votes
2 answers

What is actually an IC (Integrated Circuit)?

They say that you must know what IC your board has before loading a new program from the Arduino IDE and that the information is available on the top of the IC, but where is it exactly and what is an IC?
SpaceMonk
  • 353
  • 2
  • 4
  • 8
7
votes
3 answers

Can you charge and use a Li-po battery at the same time?

I have a system that uses an Arduino Uno board as a "brain". All the elements in the system are powered by a single Li-po battery (3-cell, 11.1 V, 1800 mAh). I made a circuit so the Arduino can check the battery voltage and decide when it needs to…
Miguel
  • 118
  • 1
  • 2
  • 8
7
votes
1 answer

Arduino as a real device to computer

Suppose we have a computer mouse , now when we connect it to a computer then computer understands it is a mouse which is been connected to it. Same thing happens for keyboard and many other devices. As per my understanding, the mouse has a…
7
votes
3 answers

How to know positive and negative in breadboard

I have this breadboard, and there is no indication on it about what is positive/negative on it. In comparison, this other breadboard (pic from the internet) DOES have indications: Can anyone give me a hint ?
N Sharma
  • 355
  • 5
  • 9
  • 21
7
votes
3 answers

Arduino Due vs Mega 2560

What can an Arduino Due do that a Mega 2560 can't? What can a Mega 2560 do that a Due can't? I've heard the Due is 3.3V so it can't work with most shields.
James Young
  • 85
  • 1
  • 1
  • 6