Most Popular

1500 questions
6
votes
2 answers

Arduino command line vs. Arduino builder

I'm working on adding my Arduino to continuous integration and I came across two different possible ways of doing this, Arduino command line, and arduino-builder. Can someone explain why the arduino-builder tool exists separately from calling…
Bob
  • 175
  • 7
6
votes
2 answers

Why need a delay between readings?

When I learn the tutorial in Analog Read Serial Digital Read Serial both of the code examples have a line of code of delay(1) and I cannot understand the comments clearly: delay(1); // delay in between reads for stability The stability…
Victor He
  • 123
  • 2
  • 6
6
votes
2 answers

Why is my SRAM so quickly filled? There are not more than 60 bytes

I have just gone through all my code. At max I use 60 bytes. I have done everything in order to minimize its usage - I even store booleans as bits, not bytes! What could be happening here? The only thing that comes to my mind are extremely large…
SlowerPhoton
  • 195
  • 7
6
votes
1 answer

RePaper 2.7" eInk Display with Arduino Due

I got a RePaper 2.7' eInk display that unfortunately doesn't support Arduino Mega because of its limited SRAM capacity (8k bytes). I am porting the library to Arduino Due because of its sufficient RAM capacity (96 KB in two banks: 64KB and 32KB). I…
6
votes
1 answer

Understanding global variables on Arduino

I am rewriting a set of LED manipulation functions to be more object oriented, and I have found that, mysteriously, my global variable memory space has been over consumed, despite a reduction of the use of global variables. I played around with a…
watusimoto
  • 61
  • 2
6
votes
5 answers

How to dim background LEDs on TFT display with ILI9341

I have bought a 2.5" TFT shield online, which is equipped with the ILI9341 controller. I need to dim the intensity of the background LEDs to match ambient light. This particular shield does not provide a pin to control the intensity of the LEDs with…
kxtronic
  • 394
  • 2
  • 4
  • 8
6
votes
3 answers

"EVERY_N_MILLISECONDS"

One of the FastLED examples that I've seen was using code that looks like this: EVERY_N_MILLISECONDS( 300 ) { transition_step(); } I've copied it and successfully used it in the same context - but I have no idea what it is or how it works. A…
Lefty
  • 325
  • 2
  • 4
  • 11
6
votes
1 answer

How to install Arduino IDE on Raspberry Pi

How do you install the Arduino IDE on the Raspberry Pi running an ARM version of Ubuntu or Raspbian? There doesn't seem to be any official ARM release. Both distros have an "arduino" package in their standard repos, but it only includes an ancient…
Cerin
  • 1,618
  • 2
  • 24
  • 41
6
votes
1 answer

Compute yaw from magnetometer and accelerometer

I use an Arduino and a 9 DOF sensor (gyroscope, accelerometer and magnetometer) and I'm trying to use the pitch, roll and yaw that the sensor gives me to rotate an object in unity. I managed to correctly compute pitch and roll (the z and x axis in…
BAmadeusJ
  • 163
  • 1
  • 6
6
votes
5 answers

433mhz range optimization

I would like to get the best range possible from my 433MHz modules. After A LOT of searching and reading, I'm convinced I should be able to cover 10m indoors with free line of sight. [update] After some tips in the comments I changed a few things.…
Thijs
  • 432
  • 1
  • 6
  • 21
6
votes
1 answer

A good water flow meter to monitor home usage with Arduino

I'm searching for a good water flow meter to add to my home controller project with Arduino. I have been searching in several pages and I only found some devices that work for low flow. I need to control the water usage in my home and I thought to…
Juan Antonio
  • 181
  • 5
6
votes
2 answers

How to properly use volatile variables in Arduino?

I was doing a small project with an Arduino Uno. It involved interrupts as I am using encoders to measure how much the differential wheel system moves forward. My robot moves only forward. So I use only a single channel from each encoder. Here are…
daltonfury42
  • 165
  • 1
  • 2
  • 7
6
votes
2 answers

How to measure voltage with Arduino analog input

I'm totally new to Arduino and to electrodynamics in general. I'm wondering what happens if I connect my digital pin to an analog input on Arduino, and make digitalWrite and analogRead on the according pins. Here are the options I can think…
roman-roman
  • 163
  • 1
  • 5
6
votes
3 answers

Issue sharing MISO with multiple RC522 RFID Readers

so for about the last 8.5 hours (almost non-stop) I have been trying to figure out one issue and I have exhausted every search I could possibly think of. I'm building a puzzle that requires 5 RFID readers on the 1 Arduino, but for the sake of…
Jesse Mount
  • 61
  • 1
  • 1
  • 3
6
votes
1 answer

What killed it? Arduino in resin

I made a simple circuit controlled by the ATMEGA IC then tried to encase it in resin. It died. What is the thing that caused it to die? I've had other circuits working fine in resin. I want to try again, what steps can I take to prevent this? I've…
futurebird
  • 425
  • 4
  • 15