Most Popular
1500 questions
13
votes
3 answers
How to increase SD card write speed in arduino
I'm creating a data-logger system which logs data in SD card at a high speed of about 20000-30000 bytes per second. But the SD library in arduino currently writes data at about 4500-5000 bytes per second which is too slow.
I've read this hack to…
Ashish Ranjan
- 455
- 1
- 5
- 15
13
votes
2 answers
WiFi Password Safety
Are there any best practices regarding password safety? The following is taken from a wifi tutorial sketch.
#include
#include
char ssid[] = "yourNetwork"; // your network SSID (name)
char pass[] = "secretPassword"; //…
Skiddles
- 233
- 2
- 6
13
votes
3 answers
I got a missignatured ATmega328-PU. How can I fix that?
Sometime in the past, I was burning bootloaders on a fresh batch of four ATmega328-PU using the Arduino IDE (notice there's no P after 328 - it's the slightly cheaper non-picopower version of the MCU, not to be confused with the ATmega328P-PU with a…
Ricardo
- 3,390
- 2
- 26
- 55
13
votes
2 answers
Will a .ino Arduino Sketch compile directly on GCC-AVR?
Okay, we all have seen those questions all over the web such as Arduino v.s. C++, or other similar questions. And a vast majority of the answers do not even touch compilation differences other than through abstracted information.
My question aims to…
RedDogAlpha
- 190
- 1
- 1
- 9
13
votes
1 answer
Is it possible to upload previously compiled binary?
I have a number of sketches that I keep wanting to load into the Arduino but I don't necessarily need to recompile them because I haven't changed anything since the last compile. Since the compile takes a minute or 2 each time, this would save me…
Lefty
- 347
- 2
- 4
- 12
13
votes
5 answers
Reducing lag between the arduino and a processing sketch on my computer
I'm currently on project #14 of the Arduino project book.
I'm trying to control a processing sketch on my laptop using my Arduino. This is accomplished by using a potentiometer to control the background of an image.
Arduino code:
void setup(){
…
Kenneth .J
- 393
- 1
- 5
- 11
13
votes
2 answers
Making analog telephone calls?
How can we make the Arduino board interact with old, analog telephone, and to make phone calls?
I guess it involves connecting the board to the telephone with some specific cable (how it's called?)
In addition, I assume it will require us to use the…
Reflection
- 231
- 2
- 3
13
votes
6 answers
Code for one-time execution in Arduino
Question: Where do I put code if I want it to execute only once per Arduino startup?
Background: I tend to use my Arduino to perform tasks that should be executed once per power cycle. (For example, my robot should only drive forward once every…
apnorton
- 533
- 1
- 5
- 22
13
votes
2 answers
Put ATmega328 in very deep sleep and listen to serial?
I have investigated the sleeps options of the ATmega328, and read a few articles about it, and I would like to understand if there are more options.
So I would like to get as low current as possible, so that anything less that 100uA would be good -…
Curnelious
- 1
- 2
- 2
- 11
13
votes
1 answer
Can I write to Flash Memory using PROGMEM?
On the documentation of Arduino, I quote:
http://playground.arduino.cc/Learning/Memory
Note: Flash (PROGMEM) memory can only be populated at program burn time. You can’t change > the values in the flash after the program has started running.
And…
zzarbi
- 233
- 1
- 2
- 5
13
votes
1 answer
Internet connectivity for the Arduino Due using AtmelStudio?
What hardware and software solutions work and what are the tradeoffs for connecting an Arduino Due to the internet? I gather the ethernet hardware is much cheaper than WiFi hardware (€29 versus €69). In either case (wired or wireless), what…
Bob Stein
- 303
- 3
- 9
12
votes
3 answers
ATMega328P-PU and 328P-AU
im planing to make my very own arduino design based on the Arduino PRO mini. I picked this board instead of the UNO mostly because it's way more simpler compared with the UNO since the USB-to-Serial part is missing. As many of you know the MINI uses…
Meletis Flevarakis
- 382
- 1
- 3
- 12
12
votes
2 answers
On an esp8266 what is faster, 64-bit math or float math?
I need to do some math with vars from an attitude sensor (acclerometers and gyroscopes) on an esp8266. int32_t math with those vars does not have enough range and the float math operations are abyssmally slow.
I'm hoping to use a fixed-point format…
mark-hahn
- 297
- 2
- 6
12
votes
1 answer
Which C++ standard does the Arduino language support?
The "Arduino language" (as they call it) of the Arduino IDE 1 is obviously C++. Which C++ exactly?
I tried to figure it out myself (Arduino IDE 1.8.13 for Arduino Uno), but I can't conclude what C++ standard it supports.
From these tests, it seems…
Thomas Weller
- 1,058
- 1
- 8
- 22
12
votes
6 answers
Using String instead of C string, yet another attempt to touch a loaded issue
I've been reading a lot over the years why we should not use the notorious String class and how heap fragmentation is bad practice and not professional and we should never use it in our programs or we'll never enter the C hall of fame and get to be…
Nino
- 411
- 4
- 9