Most Popular

1500 questions
8
votes
2 answers

When setting hardware timers as interrupts, should I prefer a lower prescaler value or a lower CTC?

I'm currently playing with Arduino's hardware timers, and a question came to my mind. Let me explain it a bit. Let's suppose I want a certain function to execute every 1024 clock ticks. AFAIK, I could achieve this in several ways, playing with the…
Nadia.moe
  • 203
  • 1
  • 4
8
votes
2 answers

Source code for Arduino “firmware”?

I am wondering if anyone here knows where the source code for the Arduino "firmware" is available for reading? I think it must be more than the 'boot loader' but I am not sure.
pitosalas
  • 181
  • 1
  • 3
8
votes
2 answers

Is it possible to run a binary from EEPROM?

Say I wrote a compiled sketch to EEPROM then read it. Could I run the program from EEPROM? I guess the question is: Can an Arduino run software not in flash memory in the middle of executing the software in flash?
Piper McCorkle
  • 183
  • 1
  • 5
8
votes
5 answers

How to change colors and theme settings in 'Windows Store app' version of Arduino IDE?

In the standard Windows (Win32) version of the Arduino IDE, theme settings like syntax coloring can be modified in C:\Program Files (x86)\Arduino\lib\theme\theme.txt. For the Windows Store app version of the IDE the theme files are stored in…
bluejedi
  • 81
  • 3
8
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
  • 95
  • 1
  • 1
  • 6
8
votes
2 answers

Why analogue pins affect each other?

I have a sensor and it generates an analogue signal. I am reading all analogue data and sending it to my computer. uint8_t sensors[] = { A0,A1,A2,A3,A4,A5,A6 }; const int len = sizeof(sensors) / sizeof(sensors[0]); void loop(void) { for (size_t…
erow
  • 215
  • 3
  • 5
8
votes
2 answers

I fried the AMS1117 voltage regulator on my Arduino Clone, is this the cause?

I had the 12V DC power jack plugged-in all the time, and "to make things more exciting" I also plugged-in the "data" USB whenever I had a new sketch to upload. Is this combination a big no-no, or is my step-up converter to blame? I am completely new…
8
votes
3 answers

Additional boards manager option is missing from Arduino IDE

I am new to Arduino. For the project I am trying to do, I want to install the ESP8266 extension. But the additional boards manager URL option is missing from the Arduino IDE. What should I do to add the extension?
Soumen
  • 83
  • 1
  • 1
  • 3
8
votes
1 answer

Programming Chinese Arduinos

I have an authentic Arduino UNO, but I didn't want to pay full price for a new one to build semi perminate projects, so I bought a few ATMEGA328P-PU chips off of…
AndyD273
  • 183
  • 1
  • 6
8
votes
3 answers

USB and Arduino: Power Arduino, charge LiPo, and transfer data at the same time

I was hoping to design my own Arduino board for a recent project of mine, a portable project that was powered by a 3.7 LiPo battery. Most ideally, I wanted to replace the USB B port with a single USB Micro port that implements the following…
8
votes
2 answers

Max current of Vin and 5V pin on Arduino Nano

What is the max current of the Arduino Nano's Vin (30) and 5V (27) pins?
Morgoth
  • 197
  • 1
  • 1
  • 8
8
votes
4 answers

Leonardo (32u4): ways to brick it programmatically

When the Leonardo was introduced, I think, I've read some articles about being cautious to do some things, that could cause it to not load any new sketches any more, so one has to rewrite the bootloader. Because I plan to use power-saving options,…
Thomas S.
  • 566
  • 3
  • 8
  • 21
8
votes
2 answers

Get data from website with ESP8266 using AT commands

I'm trying to get data from a website by sending a HTTP GET request via AT commands for the ESP8266. Here is my current code: #include const byte rxPin = 2; const byte txPin = 3; SoftwareSerial ESP8266 (rxPin, txPin); void…
Henrik
  • 109
  • 1
  • 1
  • 5
8
votes
2 answers

How precise is the timing of pulseIn()?

I've been using the pulseIn() function for processing PWM-based binary data encoding. It works well for distinguishing pulses which are significantly different lengths, e.g. 500us vs. 1500us. That makes it more than sufficient for handling typical…
Peter Bloomfield
  • 10,972
  • 9
  • 48
  • 87
8
votes
5 answers

How is stack memory used for fuctions and local variables?

I wanted to save some values to the EEPROM and also wanted to free up SRAM by avoiding some variable declarations, but EEPROM memory is byte wise. If I want to store an int value, I have to use some expressions repeatedly. I thought I would make…
Nafis Abdullah Khan
  • 229
  • 1
  • 4
  • 10