Most Popular

1500 questions
5
votes
2 answers

Arduino Pro Micro - switch off LEDs

I am using a Arduino Pro Micro as a keyboard (USB HID device). Each time I press a key, the RX LED and TX LED light up. Can I switch them off in software?
qubit
  • 360
  • 1
  • 4
  • 11
5
votes
2 answers

Run code once after programming

I'm using EEPROM to store project settings non-volatile. After reuploading the sketch to my board (over SPI via ArduinoISP), the EEPROM is reset to full 0xFFs and I have to manually do a "software reset" with a second switch, which initializes the…
towe
  • 865
  • 4
  • 14
5
votes
1 answer

avrdude: Error: butterfly programmer uses avr_write_page() but does not provide a cmd() method

When trying to flash my sketch, I see many errors such as: ***failed; ***failed; …
Tom Hale
  • 431
  • 6
  • 19
5
votes
2 answers

How to declare a global variable in the .h file?

I have a .h library file in which I want to declare a global variable that can be read in the program loop and in the library's .cpp file. The question is, is it possible to declare a variable in the .h file and make it global?
Delta
  • 263
  • 3
  • 11
5
votes
2 answers

What are the FLASH_ARRAY/FLASH_TABLE macros in this code?

In this code for heating monitor, there appears to be macros called FLASH_ARRAY and FLASH_TABLE. I can't find any reference to them either in this code, Arduino, or on the Internet. What do they do? FLASH_ARRAY(byte, VARIABLE_DEVICE_TABLE, …
Cybergibbons
  • 5,350
  • 7
  • 33
  • 51
5
votes
2 answers

Can't upload sketch - avrdude: butterfly_recv(): programmer is not responding

I'm trying to upload a Blink example to run on a pro-micro (leonardo) but it is not working anymore (it was just working yesterday). Steps to reproduce: Plug the device in USB port Open Blink example in Arduino IDE (version 1.8.8) Select the port…
Fnr
  • 171
  • 2
  • 2
  • 6
5
votes
1 answer

Is there any working analogue to the pair std::function and std::bind in Arduino?

Both ArduinoSTL and StandardCplusplus don't support them. They implement the version that is compatible with c++03 (not c++11). This functionality is handy when you design libraries that work with callbacks. And you do need them, if your Arduino…
Adam Ryczkowski
  • 259
  • 1
  • 5
  • 15
5
votes
3 answers

Build Infrared Camera Remote

I wish to build a remote for my Camera i.e Sony NEX 5R. It has a built in IR receiver and has several Sony as well as aftermarket remotes provided for it. Due to my interest in Micro controller design I wish to build one myself rather than use an…
5
votes
2 answers

Power on reset with arduino uno can never happen. Can this be fixed?

When an Arduino Uno is powered on, the USB chip's DTR output pin may (is, in fact) low for a while. This means that the capacitor C5 is connected from the 328p reset pin to ground. Thus, when power is applied, the reset pin is held low for 10's of…
user69795
  • 206
  • 2
  • 4
5
votes
1 answer

Problem sending string with Python to Arduino through serial port

I want to send string 50 to Arduino through serial port, the Arduino UNO seems it communicates with port COM25 but it doesnt receive the string properly: import serial # if you have not already done so ser = serial.Serial('COM25') ser.baudrate =…
floppy380
  • 245
  • 4
  • 10
5
votes
1 answer

How can I have code in a project that won't compile for Arduino?

I want to test the algorithms in my code without needing to send it to an actual Arduino board. I figured I could lay out my project like: project/ core.cpp # core algorithms core.h # header for core.cpp project.ino #…
Kevin Reid
  • 163
  • 5
5
votes
1 answer

Keyboard.h not found

I keep getting this error message: "'Keyboard' not found. Does your sketch include the line '#include '?" ... when I have already included Keyboard.h. #include void setup() { pinMode(3,INPUT_PULLUP); …
chin hui
  • 53
  • 1
  • 1
  • 3
5
votes
2 answers

Autoranging ohmmeter

Note: Before i explain my issue i would like to note that I am a beginner in electronics. Please pay attention to that when providing solutions and explanations. Thank you. I have succeeded at making an auto ranging Ohmmeter it is still ofcours…
5
votes
3 answers

Why is Serial.Write that slower when writing x+1 characters than when it is writing x characters?

Using Serial.Write() in a time sensitive application. I realize that the number of characters being written not only had an impact on the time spent writing in the buffer, but actually had a bigger impact than expected. Consider the following…
Alex Millette
  • 161
  • 1
  • 4
5
votes
1 answer

Converting a standard setup/loop sketch to a low power application?

Suppose I have a typical setup/loop style sketch, such as this one which turns on an LED when a button is pressed. How do I modify this so that it enters low power mode, awakes on the button press, and puts itself back into low power mode when its…
Mark Harrison
  • 559
  • 3
  • 14
  • 23