Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

How does Arduino IDE reset a board before flashing? Why doesn't avrdude do it?

I have the beetle board, a Leonardo clone same as in this question. Using the reset pin and quick hands on the keyboard, I am able to flash with avrdude and get also the board info with a command ...
Simson's user avatar
  • 123
1 vote
2 answers
340 views

Is there a way to get about a 10ns Timer resolution from an AVR CPU?

I have an 8Mhz ATM32u4 that is able to read external pulse inputs at 125ns ticks using InputCapture3 (PC7) on its 16-bit timer. Is there a magical way (bitbanging?) to get around 10ns tick resolution ...
TommyS's user avatar
  • 71
1 vote
1 answer
228 views

Input Capture with Sleep Enabled on ATM32u4 board only works every second reading in SLEEP mode

In short: I have an Input Capture code and a Power-Saving code combined into one program. Both are adapted from Nick Gammon's examples that work fine independently. When I combined them into one ...
TommyS's user avatar
  • 71
0 votes
1 answer
977 views

USB upload to Pro Micro (32u4)

My project is based around the ATMEGA32u4 microcontroller. I followed the Arduino Pro Micro schematic to design my own board layout and build a custom PCB, soldered on the components. Then I used ...
MichaelT's user avatar
  • 887
0 votes
2 answers
3k views

Burning the Bootloader on Adafruit Feather 32u4

So, the default bootloader in Arduino is oddly set to erase EEPROM with every reboot, rendering the EEPROM, well, useless. I found where the fuses are set in the boards.txt file, but getting this ...
Jim B.'s user avatar
  • 103
1 vote
1 answer
6k views

HM-10 send and receive data and checking received value

I am wondering what is wrong with my code below. I have 2 issues. The first issue, I am checking if c equals "hi" and if it does then display said hi. I currently see the output of c when it hits ...
StealthRT's user avatar
  • 259
1 vote
0 answers
1k views

Can't reset Arduino Pro Micro

I'm trying to reset an Arduino Pro Micro with a new code and it is not allowing me to. I'm using an empty sketch to upload to the pro micro but I get different error messages every time. I think the ...
Katz's user avatar
  • 129
5 votes
1 answer
4k views

Basic C++ programming, how to pass constructor argument into class?

I'm having some programming problems. So here's what's happening: In my .ino file, I have a tft variable which holds the connection to a LCD. I want to make a class which can either automatically ...
vxcheese's user avatar