Newest Questions

11 votes
3 answers
4k views

While looking at sketches other people have written, I occasionally come across code that looks somewhat like this: TCCR1A = 0; TCCR1B = 0; TCNT1 = 34286; TCCR1B |= (1 << CS12); TIMSK1 |= (1 &...
The Guy with The Hat's user avatar
9 votes
5 answers
13k views

I'm working on a free space optics project to send data wirelessly between two points. To accomplish this I'm using an IR LED connected to an Arduino Uno that pulses with a 56 kHz carrier ...
jlbnjmn's user avatar
  • 978
5 votes
3 answers
3k views

I've been using a button to interact with a sketch (on my Uno), and it's mostly working fine. However, sometimes it seems to be detecting multiple presses when it's only pressed once. It's a small ...
Peter Bloomfield's user avatar
21 votes
4 answers
8k views

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 ...
jlbnjmn's user avatar
  • 978
13 votes
8 answers
6k views

Currently; when I start a new Arduino project with some new hardware, the first thing I do is to look for 3rd-party libraries that bring Arduino support for this hardware. The first places I look are:...
jfpoilpret's user avatar
  • 9,162
3 votes
1 answer
963 views

I'd like to be able to use Python from a sketch. According to the Arduino playground, one can use PySerial from a computer to talk with an Arduino via Python. It looks like from that page you can ...
hichris123's user avatar
22 votes
5 answers
8k views

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 ...
asheeshr's user avatar
  • 3,847
3 votes
1 answer
6k views

I have a clone of a Mega 2560, and the Chinese manufacture apparently had a broken shift key. To my annoyance, whenever I connect it to my computer it reads, arduino compatible mega 2560. With my ...
Anonymous Penguin's user avatar
92 votes
7 answers
60k views

It's been a long time I've been looking for a good answer to this question. Typically, any Arduino project but the simplest one will include: The main source code file MyProject.ino Libraries ...
jfpoilpret's user avatar
  • 9,162
14 votes
4 answers
17k views

When I compile this sketch for the Yún: int led = 7; void setup() { pinMode(led, OUTPUT); } void loop() { digitalWrite(led, HIGH); } I get: Sketch uses 5,098 bytes (17%) ...
hichris123's user avatar
6 votes
2 answers
643 views

I have Arduino Uno with SD card shield. I'm planning to log a huge amount of data from various sensors - including accelerometers and 3D compass - to the SD card. However, I have understood that ...
Olli's user avatar
  • 265
4 votes
3 answers
6k views

I've managed to adapt some code from the Arduino forums to display timecode on an LCD display. What I would like some extra help with is first is there a way of defining the one_time_max etc ...
user3316519's user avatar
21 votes
2 answers
13k views

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 ...
Peter Bloomfield's user avatar
10 votes
1 answer
4k views

I have following setup: Arduino Duemilanove Small water heater connected with optical relay (PWM is ok) Waterproof DS18B20 temperature sensor Unknown amount of water (but temperature sensor and heater ...
Olli's user avatar
  • 265
6 votes
1 answer
2k views

I'm planning to build a simple XY plotter, and have been looking at the possibility of using a pair of small 5V 4-phase steppers to provide the movement. In my research, I've often seen stepper driver ...
Peter Bloomfield's user avatar

15 30 50 per page