Questions tagged [avr]
AVR is the family of microcontrollers used in Arduino boards.
263 questions
0
votes
1
answer
100
views
PS4 not recognizing Leonardo as a controller
I have created a modified AVR core based on ArduinoXInput's custom core but for PlayStation instead, to emulate a DS4 controller on HID-capable boards like the Leonardo. Using USBTreeView and online ...
0
votes
1
answer
56
views
How to modify the Leonardo's HID descriptor
I'm trying to make an Arduino Leonardo work with a PS4 following a similar approach as ArduinoXInput with its modified AVR core. However, even though I managed to add the device and configuration ...
-1
votes
0
answers
58
views
C++ source code for avr compatible with STL
I have been trying to integrate ArduinoCore-avr in a little project for a few days, but I don't seem to be able to make it work.
Here you will find where I am at, and a link to the repo. The error I ...
-1
votes
2
answers
90
views
ATtiny402-SSNR minimum hardware requirement
I am using an ATtiny402-SSNR in a project. I have never used AVR MCUs before, so I need a minimum hardware requirement schematic for this chip. I could not find a schematic for this on the internet.
...
0
votes
2
answers
82
views
I need help with code with two IR sensors using ATMega16
I'm working on a ball-counting project using two IR sensors to detect balls entering and exiting a room, but I'm currently stuck. I need help refining the logic in my while loop. Here's how I want it ...
0
votes
1
answer
68
views
Why does the ADC report 0 in this sketch?
This sketch always reports 0 for the ADC reading.
I think this is going to turn out to be something silly, but I cannot find the source. I've reviewed the sketch ADC lines carefully and they seem ...
1
vote
0
answers
601
views
I just downloaded the Arduino IDE and it doesn't compile any code
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\Kareem\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\...
1
vote
1
answer
489
views
Need Digistump library for QWERTY keyboard and Fixes for my issues!
Hello there🖐 I am trying to install Digistump library to support ATTiny85 by digispark. But I am encountering a problem when trying to install Digistump AVR boards after adding an additional board ...
2
votes
2
answers
543
views
How .data + .text section can be = How much flash the final program will consume
I could not understand one point related with Arduino code.
Let's say i have following code
void setup()
{
Serial.begin(9600);
Serial.println("foo");
}
void loop()
{
}
When i ...
5
votes
1
answer
340
views
Pin Change Interrupt Flag timing on 1284P
I want to ask about pin change interrupts on a 1284P chip using MightyCore. I have a question about the timing of multiple interrupts on one port. Specifically, if I am servicing a PCINT vector and ...
3
votes
1
answer
676
views
Arduino Uno R3 assembly code to push a button and turn on a LED
I've been trying this for days without success...
I need to turn on a LED on portb when a button in portd is pushed. Cabling works, I've tested it with Arduino IDE and it works like a charm.
This is ...
2
votes
2
answers
518
views
Barebones AVR - Connecting RESET pin to Vcc
I want to build my first barebones AVR circuit.
I plan on NOT having a RESET button. For this reason, is it valid if I connect the ATMEGA's RESET pin to Vcc directly?
What I mean by this, is that in ...
1
vote
0
answers
380
views
fatal error: avr/io.h: No such file or directory (on Windows 11)
So I'm using arduino 1.8.18 installed on zip file. I am using the HardWire library. The project is the STM32 quadcopter by joop brokking. http://www.brokking.net/ymfc-32_downloads.html
complete error -...
1
vote
2
answers
253
views
What's Memory Allocation technique in Arduino
I am currently working on an assignment for my embedded systems course, and my professor has asked us to determine the memory allocation technique employed in Arduino. Specifically, I need to identify ...
1
vote
1
answer
197
views
Checking a thing about interrupts
If I disable interrupts (for example noInterrupts or cli) and enable them (interrupts or sei for example) later, would interrupts which would have executed in the window in between fire by the ...