Most Popular
1500 questions
12
votes
2 answers
Installing a different firmware on Arduino
Is it possible to upgrade the firmware on an Arduino so that it can do more things such as change undervolting/ overvolting in order to provide more processing power. To do this you would have to most likely re flash the chip itself, so how would…
JVarhol
- 1,823
- 2
- 17
- 22
12
votes
3 answers
Writing C Program outside of Arduino IDE?
I like the idea of using the Arduino IDE for simple projects and for getting started with Arduino, but the consensus I've gotten so far is that it is for those who are new to Arduino and/or programming in general.
My understanding is that it is…
smeeb
- 499
- 2
- 10
- 21
11
votes
3 answers
How to call C functions from Arduino sketch?
I would like to know if there is a way to call functions that are contained within C files using an Arduino sketch?
My C file declares and defines a function. To save putting the messy function definition into my Arduino sketch, I'd like to call…
user_name
- 317
- 1
- 3
- 11
11
votes
4 answers
SAM3X8E (Arduino Due) Pin IO registers
How do the IO registers of Arduino Due work?
On Arduino Uno just set DDRx, then PINx to read, PORTx to write, I'd like to do the same thing with an Arduino Due, but it has many more registers, such as PIO_OWER, PIO_OSER, PIO_CODR, PIO_SODR, etc. I…
Alex
- 305
- 1
- 3
- 8
11
votes
3 answers
Arduino Mega timeout communication with programmer error
I have an Arduino Mega 2560 and it was working fine until about lunch time when I started getting this error:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
I know it isn't the code…
bladepanthera
- 356
- 2
- 3
- 14
11
votes
3 answers
Why are the pin numbers of the diagrams and of the code different?
If I search Google for "arduino nano pin numbers", all results show that the pin number of D2 is 5. But that did not work. I searched for some sample codes, and they were 3 for D3 and 5 for D5, etc. So, in codes, the pin number for Dn is n. Then…
Damn Vegetables
- 337
- 2
- 8
11
votes
2 answers
3.3V, 5V and 9V pins on Arduino
On my Arduino Uno R3 and Arduino Mega R3, there are 5V and 3.3V pins.
However on this page Introduction to the Arduino Board, there is a 5V and 9V pin but no 3.3V pin. The page at Arduino: What Adapter? also mentions a 9V pin.
Why is there a…
Nyxynyx
- 1,319
- 4
- 20
- 25
11
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
- 513
- 2
- 6
- 11
11
votes
1 answer
Split up Arduino code into multiple files using Arduino IDE
I am working on a very long code that requires multiple functions defined. I want to split the code into two files as main code ("Feeder_Control" in the screenshot) and functions ("connections" in the screenshot) How to import the second file into…
Salitha Indrajith Pathiraja
- 113
- 1
- 1
- 5
11
votes
7 answers
Does a delay in a loop save energy?
I've noticed most example snippets always have a delay in the loop even if it's not needed for proper execution of the program.
I can only assume this is added because people copy and paste without understanding what's going on but it got me…
Ryan Detzel
- 305
- 5
- 10
11
votes
3 answers
Hiding WLAN password when pushing to GitHub
I have started to use GitHub to store Arduino code. However some of my code uses the SSID and password for my WLAN which I don’t want published.
A common way of handling this in non-embedded programming is to use a configuration file, but that…
Andrew Doble
- 123
- 1
- 5
11
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
- 123
- 1
- 1
- 6
11
votes
2 answers
Cheap Wired Multipoint Mesh Network
I'm looking to make a 15 x 15 grid of load sensors and RGB LEDs for an interactive dance floor. Each node will be driven by an arduino and the entire floor will be managed by a RaspberryPi. I'm trying to figure out the best way to have the nodes…
Jeremy Gillick
- 471
- 1
- 3
- 8
11
votes
2 answers
What is the purpose of the I/O pin capacitor on the AVR microcontroller?
What is the purpose of the capacitor on the I/O pins on the ATmega328 (I imagine it's on other AVR microcontrollers as well)? Is it to reduce noise from other parts of the microcontroller?
lemontwist
- 364
- 4
- 16
11
votes
2 answers
How to manage dependencies?
I want to include a dependency like Logging. On its page it says:
Download zip file
Put the Logging folder in "libraries\".
I don't want to believe (with a Maven mindset) that this is the way we manage dependencies in Arduino projects. That means,…
Markus Malkusch
- 213
- 2
- 6