Most Popular

1500 questions
12
votes
2 answers

Arduino as ISP without a computer

Has anyone seen or know of a method of preloading (using a computer or whatever) a firmware as data onto one arduino set up to operate as an isp and then using that arduino plug the isp interface into another and upload the firmware. To be clear -…
m3z
  • 330
  • 2
  • 9
12
votes
4 answers

Why is it considered bad practice to use the 'new' keyword in Arduino?

I previously asked this question: Is it required to delete variables before going to sleep? On that question, @Delta_G posted this comment: ... Really on a microcontroller I would create the object in a smaller scope and try to do everything in my…
Tono Nam
  • 966
  • 1
  • 10
  • 22
12
votes
3 answers

High precision timing on Arduino for serial communication

I am using an Arduino Uno to send time and voltage information over the serial port to Python to plot. However the interval timings between successive time stamps appears to be increasing over time, affecting my plotting. This is especially true…
hawkar
  • 553
  • 2
  • 6
  • 12
12
votes
2 answers

Why can I not use pointers instead of array with PROGMEM?

I'm currently changing some libraries to use flash instead of RAM for string storage so that I do not run out of SRAM on a project. Some strings in the library are declared in this manner: const char *testStringA = "ABC"; This is different to how I…
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
12
votes
2 answers

Multiple .ino files in the same sketch

Yeah yeah, I know people ask this type of thing a lot, but I couldn't find an answer anywhere. I understand that you can have multiple .ino files in one sketch, but I don't just want functions and variables separated, I want functionality. I am…
Levi Lesches
  • 233
  • 1
  • 2
  • 6
12
votes
1 answer

Does the ESP8266 somehow remember wifi access data?

Today I did some tinkering with an ESP8266, trying out OTA and writing a webserver. To find an error, I reduced the sketch to just the following lines: #include ESP8266WebServer server(80); void setup() { …
Geier
  • 233
  • 2
  • 6
12
votes
1 answer

What does the line "while (! Serial);" do in an Arduino program?

I'm new to Arduino, and I am trying a couple of tutorials. What does this line do in a program? while (! Serial);
Brendan
12
votes
1 answer

What is the relationship of an Arduino .ino file to main.cpp?

Is the .ino file an alternative from a main.cpp file? If yes, then could someone mind explaining the structure of the .ino file in main.cpp and its relationship?
Lance
  • 133
  • 1
  • 1
  • 6
12
votes
2 answers

Arduino Uno R2 and Ethernet Shield R3 compatibility

I bought an Ethernet Shield R3 for my Arduino Uno R2, but since R3 has extra pins it does not fit. Can I use the shield? Should I cut off the extra pins. What do I need to do to make it work?
tstew
  • 729
  • 1
  • 6
  • 26
12
votes
5 answers

Does an Arduino get worn out by too much command execution?

Excuse me if it is a silly question, but I couldn't find an answer. I've been wondering for a while whether an Arduino (or generally any other micro-controller) gets happy if the code is light and it does not have to execute too much operations.…
ahmadx87
  • 549
  • 2
  • 9
  • 16
12
votes
3 answers

Functions with string parameters

Inside my main loop there is this string: String string1; I have a function that will take string1 as parameter, and use it to send this string as SMS. sendSMS(string1); This is the sendSMS() function (without parameters): void sendSMS() {…
user1584421
  • 1,425
  • 3
  • 26
  • 36
12
votes
2 answers

FTDI Breakout with additional ISP connector

TL;DR - Can the six yellow ISP pins be used as a normal ISP? The usual USB-TTL FTDI breakout board looks like this: Recently, I came across a variant of the board shown below. However, what are the additional yellow header pins on this board for?…
Greenonline
  • 3,152
  • 7
  • 36
  • 48
12
votes
4 answers

Arduino Time Clock Accuracy

I'm currently trying to create an Arduino time clock by using the PJRC Time library (http://www.pjrc.com/teensy/td_libs_Time.html). I know that since most of the Arduino boards are running with a 16MHz clock and a single resonator, the time can…
KK6FSL
  • 125
  • 1
  • 1
  • 6
12
votes
1 answer

Is it OK to Serial.print(message), when the USB cable is not connected to a host PC?

Often I put a bunch of Serial.print( F("debugging messages") ) in my Arduino sketch. Normally those messages go up a USB cable to a host PC so those messages can be seen on the serial monitor. I want to install this Arduino as part of a stand-alone…
David Cary
  • 1,122
  • 8
  • 23
12
votes
4 answers

Converting three-axis magnetometer values to degrees

I have a 9-DOF sensor (MPU-9150) and I want to use its magnetometer to retrieve the rotation angle, from 0 to 359. However, its library returns three values: x, y and z. I do not know how to transform this into a single value. Is there any way to do…
Guilherme
  • 235
  • 1
  • 2
  • 10