Skip to main content

Questions tagged [atmega]

0 votes
0 answers
74 views

How to calibrate the internal RC oscillator off of a 32768 Hz crystal serving Timer2? void OSCCAL_calibrate(void) //This version specific to ATmegaXX8 (tested with ATmega328) { unsigned char ...
kellogs's user avatar
  • 136
0 votes
1 answer
269 views

I wrote a small blink program for an ATMega8U-DIP I bought recently. The source is this, #ifndef F_CPU #define F_CPU 16000000 #endif #include <avr/io.h> #include <util/delay.h> int main(...
Ayush's user avatar
  • 121
0 votes
2 answers
83 views

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 ...
cerouno's user avatar
  • 11
1 vote
0 answers
42 views

I am interested in hooking up a nano to an RC receiver. I want the nano to mirror the PWM input and output on another pin when a specific command is given via serial. I also want to send the received ...
FourierFlux's user avatar
1 vote
1 answer
376 views

I am relatively new to arduino and coding in general and im just looking for a code to write a single string of binary code e.g.; "01000111101" To a specified output pin instead of copying ...
Arbadatduino's user avatar
2 votes
1 answer
284 views

I realized that on the atmega boards the bootloader is programmed into the chip. I'm curious, when compiling a sketch how does the compiler/assembler differ from compiling a standard C program for a ...
FourierFlux's user avatar
0 votes
1 answer
235 views

So, I'm trying to burn the bootloader onto an ATMega 8A with an Arduino Mega 2560 as ISP. I made the necessary connections, and got this error: C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/...
Zelix75's user avatar
  • 13
0 votes
1 answer
137 views

I use a homemade board that hosts a PIC16F1829 and an ATmega328P on the same board. We use the ATmega328P with the Arduino IDE and the PIC with the MPLABX IDE for about 100 EE students a semester at ...
Paul Emery Morton's user avatar
1 vote
2 answers
115 views

I tried to do a simple program using the ATmega16 microcontroller, the program is to toggle two LEDs the first one by using timer0 interrupt and the other using timer2 interrupt.
Ebraheem Ali Abd Al-Maksod's user avatar
1 vote
1 answer
442 views

I have an ATMega168 that I am programming via my Arduino Uno as ISP. I can burn the bootloader and transfer a hex file just fine, but I can't seem to be able to change the fuse bits. I found a lot of ...
beast.caged's user avatar
1 vote
0 answers
1k views

I try to run an atmega328p as a i2c slave. even with the bare minimum the slave acts as its not wired at all: NACK is transmitted after request (see logic analyzer). The master should read a constant ...
micro_'s user avatar
  • 21
0 votes
2 answers
1k views

My Arduino Nano Every runs at 16Mhz (but the 4809 can support internal 20Mhz). I know it may be possible to alter the boards.txt file and set it to build for 20Mhz. However, I can't find the boards....
raddevus's user avatar
  • 442
2 votes
1 answer
1k views

If you go to the official Arduino Nano Every page and click the Tech Specs tab, you'll see that it lists it as running at 20Mhz. Turn On Verbose Compile However, if you go into the Arduino IDE and go ...
raddevus's user avatar
  • 442
0 votes
1 answer
75 views

I've need to control some leds which draw 300mA with an arduino (actually an atmega) and after some searching I think the following is the circuit I need, but I'm not really sure if the power source ...
SantiMar's user avatar
1 vote
1 answer
812 views

Arduino Nano Every schematic informs us that we can use ATMega4809's pins PF03 and PF02 to communicate via I2C. ATMega4809 manual says in page 19 that in order to use those pins as I2C we need to use ...
Miguel's user avatar
  • 209

15 30 50 per page