Most Popular

1500 questions
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,370
  • 2
  • 24
  • 53
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…
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
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
  • 938
  • 1
  • 9
  • 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
  • 543
  • 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,350
  • 7
  • 33
  • 51
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
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
  • 133
  • 1
  • 5