Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [atmega]

ATMega is a family in the AVR series of Atmel microcontrollers. This is the main microcontroller of the Arduino prototyping platform. Please Specify the specific part number in your question.

0
votes
0answers
33 views

How to set mfrc522 antenna to lower frequency

I have "Electronic Hotel Door Lock" It work with NXP mfrc522 module with mifare 1K card and have work with 2*1.5v battery. with this battery "Electronic Hotel Door Lock" open door for 4 month. I ...
0
votes
0answers
22 views

IC enable pin control with Atmega 328p

I want to control the FP6293 ICs enable pin with the Atmega 328p pin PD5 (configured as digital out). The EN pin (active high) on the IC is rated at max 6V with a minimum HIGH voltage of 0.96V. As the ...
0
votes
1answer
55 views

I can't get WDT (watchdog timer) working on ATmega2560

I have a running application on the ATmega2560 and it is working OK. Now, I wanted to implement Watchdog feature in order to reset the chip when the application takes longer to operate for some reason....
3
votes
3answers
207 views

Choosing the right microcontroller [closed]

How do you choose a micro-controller for your project? My hardware requirements are : I2c SPI ADC channels SMD package 3.3V operating voltage A few GPIOs. There are so many microcontrollers ...
0
votes
2answers
64 views

Atmega328 doesn't respond after power loss while uploading program

While uploading program to atmega328 I accidentally disconnected it from power. After that I get "target doesn't answer" message while trying to upload. I am using USBasp programmer, connections are ...
1
vote
0answers
32 views

Not All I/O Pins Work for Nixie Driver on Arduino MEGA and ATMEGA1284PU

I am tearing my hair out, and help would be immensely appreciated. I am developing a nixie RPN calculator. I am using nixies being driven by K155ID1 nixie drivers, connected to an ATMEGA1284PU. I ...
0
votes
2answers
96 views

Software needed for ATMEL ATMEGA8A-PU microcontroller in Ubuntu 18.04? [duplicate]

A few days ago I discovered a ATMEL ATMEGA8A-PU microcontroller and I wanted to write code on it . But I don't know what software to use in Ubuntu 18.04 for the microcontroller. Can I use the Arduino ...
0
votes
0answers
55 views

Update Mega328 Transistor Tester with Arduino Uno micro controller

I'm trying to update Mega328 Transistor Tester with Arduino Uno micro controller. Here is my Uno and Mega328 connection and Avrdude setting, including particular error: avrdude.exe: verification ...
5
votes
2answers
425 views

Trying a PWM audio application. I can't figure out why I'm getting a loud beep overlapping my sound

I want to play some short audio clips (they range from 50ms to 100ms) from my atmega168 microcontroller and output it to a cheap speaker. I was following this tutorial but because I'm using a ...
0
votes
0answers
23 views

Bare ATMEGA328P - Clock using TIMER 1, PWM on TIMER 0 and TIMER 2

I am stuck on an issue. Like the title says, I am trying to generate 2 different PWM signals on TIMER 0 and TIMER 2, while I am using the interrupt on TIMER 1 to count the time. I tried several ...
1
vote
2answers
72 views

How to correctly send the data I received via I2C over UART?

I am using an atmega328p and writing firmware to display the data I receive via i2c in putty. I read the data I receive as follows: ...
0
votes
1answer
25 views

How To Program Atmega256rfr2 using ISP?

I have a new custom built PCB circuit incorporating an atmega256rfr2 chip. I really can't program the chip using AVRISP MK11 based programmer (Olimex brand). But it can program the Atmega328p DIP chip ...
9
votes
1answer
161 views

Do the new “PB” variants of ATmega have a bug in the brown-out detector?

We've been using ATmega48/88/168/328 microcontrollers successfully for many years in many of our products. We have now considered to switch from the A and PA variants to the new PB variant (because we ...
0
votes
1answer
38 views

.dw directive in AVR assembler

the piece of code below is mentioned in 8-bit AVR's instruction set as an example to explain the LPM instruction. ...
1
vote
1answer
62 views

ATmega328p PIN reading

...
0
votes
1answer
115 views

AVR Can Write I2C, but Fails to Read (Fails to Write Register Address)

I'm using an ATMega328 DIP Package with a TLE493D(A0) (and manual) 3-axis hall effect sensor. I've done successful reads/writes to other I2C devices (AT42QT2120), but I'm having issues with the TLE493....
0
votes
2answers
58 views

Frequencies in atmega (uC)

I want to use an atmega328p with nrf24l01 + wireless module and communicate it with an arduino nano with nrf24l01 +. My question is this, if I use different frequencies in the microcontrollers, will ...
1
vote
0answers
65 views

Can't manipulate array with atmega8

I am quite new to AVR programming and I am currently having some troubles with arrays. I am trying to write an Arduino code that will be run on a Atmega32u4. The goal is to communicate with a AX12-A ...
0
votes
1answer
66 views

Resistor between GND and + 5V in Arduino

I design a board based on ATMEGA328P (as in Arduino UNO). Now I am busy creating a power line. My controller will be installed on the electrical panel, so I need to provide a reliable, noise-resistant ...
0
votes
1answer
81 views

Bit rate of uart communication

I have a setup which communicates between PC(windows) and Atmega2560 using UART. On PC side I am using Pyserial. From the PC I am sending a paragraph of text byte-by-byte to Atmega2560. The UART ...
1
vote
1answer
63 views

Creating chained digital current loop

I need to send some digital data and power for long distance (around 60 meters) using only 3 wires. Data speed is low, something like 100bps is enough, 1000bps would be perfect (12.5Bps and 125Bps). ...
1
vote
1answer
109 views

Using Atmel Studio 7 to program Arduino Uno

I will like to use AS7 IDE to program the Arduino board, for start Im using Arduino UNO with ATMEGA328P-PU chip. Im using Windows 10 professional First I used the Arduino IDE in order to run/...
0
votes
1answer
42 views

Different I/O pins of same PORT of ATMEGA8 not providing exact output [closed]

I have written code to switch ON/OFF some LED light connected different I/O pins of same PORT (i.e PORTD) of atmega8 microcontroller. This process is performed using android app by sending different ...
1
vote
2answers
37 views

SPI between ATmega32 and ATmega328 is not working

I have been trying to accomplish connecting ATmega32 and ATmega328 using SPI Hardware connections: ...
0
votes
0answers
22 views

Deploying program from Atmel Studio or Avr dude to Atmel “XMEGA-A3BU Xplained”

Im attempting for the last 3-4 days to connect the Atmel dev board to the computer in order to either load the .elf or hex file to the bootloader in order to turn on the LED based for an assignment. ...
0
votes
1answer
49 views

Have I bricked my ATMEGA3328p by setting

I was playing around with setting the "system clock prescalar" (CLKPR). I'm now in a situation where I can see that the clock is 244.9KHz, using my logic analyser and the "Clock output on PORTB0" ...
0
votes
1answer
42 views

Using UDRIE0 interrupt in ATmega168

I only have some limited knowledge in interrupts. This is what I understand about following ISR functions ISR(USART_RX_vect) will get called when a new data ...
1
vote
2answers
103 views

What is the application of capacitor between Vcc and GND [duplicate]

This is a schematic mo ATmega328P used circuit. It has paralleled two 100nF capacitors between Vcc and GND. (C8 and C9) What is the function of this two capacitors and why they are paralleled?
1
vote
1answer
113 views

AVR ATMEGA328p Blinking Example

I wanted to test a simple blinking script on my ATMEGA328p. The breadboard setup (tested and works fine). But the LED does not blink. I probed the voltages across the board and they are showing up ...
3
votes
2answers
148 views

SPI Flash Memory with ATMega1284

I have connected a SST26VF064B 8Mb flash memory IC to an ATMeag1284 as shown in the following diagram. My plan is to talk to it using SPI. Note that all capacitors in the schema are 100nF. When ...
1
vote
1answer
71 views

AVR - strange communication between ATmega8A and bluetooth module

I'm using ATmega8A-PU AVR microcontroller, and HC-05 bluetooth module on a breadboard. What I'm doing here, is to connect to BT module from my mobile phone and toggle the LED state by sending ...
0
votes
1answer
46 views

LCD module not initializing

I've got a project where I need to use an LCD module, so I started pondering around with one (1602A). So far I've wired it up with my microcontroller which is an Atmega168PA and written an ...
3
votes
2answers
159 views

How to test a CPU watchdog on board?

The watchdog of an ATMEL ATXMega128 should have been enabled with fuses. It triggers a reset, if the timer was not reset within the configured time span. I want to be sure, that it is enabled and ...
-1
votes
0answers
100 views

Use an NPN transistor for 12V logic

I want to steer this led strip: aliexpress link With my atmega. Since I will be connecting it to a car, the 12V power will be easily supplied from the OBD2 port directly, but I will need to send data ...
0
votes
0answers
123 views

ATMega168 UART weird characters

I'm learning AVR programming using this book I was able to run and get output using the code provided along with the book. I use Proteus to simulate the output, since I don't have controller in hand. ...
0
votes
3answers
134 views

GPIO state of MCU (AVR) with no supply voltage

In general: what state do the GPIOs of a MCU (an AVR in my case) have when there is no supply voltage and the MCU is "off". Am I right that the pins are floating as there isn't any "reference" for the ...
0
votes
2answers
60 views

Atmega88p with shift register 74hc595

I need to use a shift register to control multiple leds, but I need to control each one individually. The idea would be to send a buffer with the data, however I need to have several active leds and ...
0
votes
1answer
45 views

DMX receiver 40V signal

I am creating a DMX receiver circuit. The dmx that is received from a controller (USB DMX dongle) is converted via a transceiver (SN75176BP) to a signal which can be understood by an ATMEGA328P. I ...
0
votes
2answers
88 views

ATmega 32 Clock Frequency Issue

I'm currently using ATmega32 device with external clock speed of 16 MHz . the problem when i use a delay of for example 16,000 ms in the software, it actually delays only a 1000 ms in actual world. I ...
0
votes
2answers
89 views

Atmega 8 on Arduino Uno

For a uni project I am tasked with programming embedded C onto an ATMEGA 8 uC, and there aren't enough development boards for everyone to use at uni, so I have an ingenious solution. I have several ...
1
vote
3answers
964 views

Increase memory of an ATmega32

I bought an ATmega32 IC recently, but now I found out the program I wrote in Atmel Studio reports an error due to an overflow of memory. It is 134.1% over the recommended memory of this chip. Are ...
2
votes
1answer
294 views

Atmega naming scheme (324p vs 328p)

I am looking into AVR chips (big fan) for a personal project. I need capabilities similar to Arduino Uno, so I recently compared Atmega 328p and Atmega 324p. To my surprise the 324p has significantly ...
-3
votes
1answer
122 views

need c program for 5 minutes timer [closed]

i am building a project for a cycling bath in which the motor goes up and down. the micrlimit switch senses up & down position. once switch is activated motor cuts off and timer starts. after 5 ...
0
votes
0answers
23 views

chaning fuse bytes in stimuli file in atmel studio simulator

I'm writing a stimuli file for debugging a code wrote for atmega168PA. In this stimuli file I want the lower fuse byte to be set automatically so I don't have to do it manually every time. I know that ...
0
votes
1answer
67 views

Why PINxn with pullup reads zero when nothing is connected to it?

Consider the following C-program: ...
0
votes
2answers
320 views

avrdude: error: program enable: target doesn't answer. 1

Before I can program my ATmega32 through USBasp but now only in 30 times or more try I can program ATmega32. I get this error ...
0
votes
1answer
64 views

Mitigating unknown error in power analysis of ATMega328P microcontroller

Setup: Arduino Uno (ATMega328P Microcontroller) running inline assembly instructions using asm statements. Global interrupts disabled. Pin 13 (PORTB5), DDRB5 designated as output used for trigger ...
-2
votes
1answer
66 views

What command is sent from AVRDUDE to an AVR programmer for programming ATmega8

I have implemented an IoT ATMEL AVR Programmer based on protocol stk500, and I successfully connect with it wirelessly and program any ATMEL AVR Programmer through Arduino IDE, My Question is: I need ...
-1
votes
1answer
108 views

How to achieve positional servo control with an Atmega328P?

I am trying to drive my SG90 servo using the timers on the Atmega329P using phase correct PWM. I have set up my motor well enough that it rotates, but I cannot get it to stop - the servo motor just ...
-6
votes
3answers
161 views

How did my ATmega328p chips suddenly start dying? [closed]

I recently started working on a little self balancing robot using ATmega328P. I made a simple PCB with an ATmega, a L293D, terminals for 2 motors and a MPU 6050 and so on. I have a huge 25V 2200uF ...