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.

Filter by
Sorted by
Tagged with
0
votes
1answer
36 views

Running AT90USB646/Atmega32u4 between 3.3V and 5V

I'm working on a battery powered project that will need the AT90USB646 µC. From the data sheet, I know it can take from 2.7V to 5.5V at 8MHz. However, apparently, lower voltages reduce power ...
2
votes
1answer
114 views

Configuring Atmega32 timer using the oscillator without prescaling gives wrong delay time

I am using AVR atmega32 microcontroller. The code below is supposed to toggle the LED connected to PORTD. The frequency of the oscillator connected to the ...
0
votes
0answers
30 views

Arduino issues on reading inputs from some buttons

I'm building a sort of joystick with atmega328p: For the moment, I have only written the code to visualize on the OLED display if we press a button or move the joystick. Let's focus on the four ...
2
votes
1answer
38 views

Arduino based triac dimmer bulb flicker fix on touching Arduino ground

I've designed a triac based dimmer circuit. It is working just fine except the bulb is flickering on dimming (working fine with full brightness). Bulb I am using is filament based and dims perfectly ...
-1
votes
1answer
44 views

Atmega resets when switching on/off relays with inductive loads

I have been developing a product that uses an atmega8a to turn on/off 5vdc relays. The layout is simple: 5v directly to relay coil, coil to npn 2n2222a transistor, transistor to ground, transistor ...
0
votes
0answers
39 views

EEPROM chip always toggling bit when reading

I have a parallel EEPROM, the AT29C020 (doc: http://pdf.datasheetcatalog.com/datasheet/atmel/DOC0291.PDF) In order to read it I'm using an ATMega8535 as it has enough pins. At first I thought reading ...
0
votes
0answers
26 views

Atmega16U4 (Hardware USB) does not show up as DFU device on device manager

I am trying to get the Atmega16U4 to show up in windows device manager. Right now, when I connect the atmega16U4 through USB to the computer it does not do anything (does not even play the USB ...
0
votes
1answer
22 views

Atmega32u4 on 5V. MISO from IC on 3.3V?

I'm running an Atmega32u4 on a 5V circuit. However, I'm also using a Bluetooth IC [MDBT40] on a 3.3V circuit that I'm setting down from 5V with a linear regulator. I'm turning both SCK and MOSI to 3....
0
votes
0answers
28 views

Generating PWM at pin PD5 of ATmega328P

I am beginner to ATmega328P programming for PWM generation. I am trying to generate a PWM wave at PD5 pin the datasheet says PD5(OC0B/T1/PCINT21). When I generate the PWM with help of timer0 overflow ...
1
vote
1answer
49 views

Can I use ceramic resonator for ATmega328p?

https://lcsc.com/product-detail/Ceramic-Resonators_ABRACON_AWSCR-16-00CV-T_16MHz-0-5-22pF_C179647.html I have been developing a project that includes ATmega328p-AU, So I have studied many circuits ...
1
vote
1answer
67 views

Does AREF pin of ATMEGA series consume any current?

I have a voltage reference in the circuit and I thought I can feed that reference to AREF pin of ATMEGA as well: The current at "1.024V" tag is around 200 uA, any current drawn by the AREF ...
0
votes
1answer
55 views

Atmega MCU freezes when nearby VSD starts. Possible causes and solutions

I have a custom PCB that uses an ATMEGA1280 MCU. The board has a few inputs and a relay output. Inputs are mostly 4-20mA measuring temperature sensors. I also measure VSD current from a VSD mounted ...
0
votes
0answers
18 views

ATMEGA128 & AD7417 Reading first channel using external reference voltage

I'm doing test work in Proteus ISIS. Where in circuit used External ADC, but there is no modeling module in the proteus. And i can't test it. This ADC using TWI(I2C) interface. ADC connection circuit: ...
0
votes
2answers
35 views

Brown-out detection with an external clock ATmega1280

I'm using ATmega1280 with an external clock and I have some questions about the "safe operating area" for preventing EEPROM corruption with BOD. The external clock is: Crystals 14.7456MHz ...
0
votes
0answers
50 views

Read specific line faster

i am working on a mp3 player project for hobby use,i use atmega644pa @12Mhz and use fatfs library via spi.Avr has no enough sram to the long file names so I tried to store long file names in a text ...
0
votes
2answers
50 views

How to calclate Rb value for NPN transistor?

Here is a part of my schematic. K pin from LCD is connected to NPN transistor. A pin is connected to Vcc, 5V. Base is connected to uController. It is Atmega16. 5V supply. I am using BC547 transistor ...
1
vote
1answer
32 views

USART and ATmega RX Problem

I'm trying to understand how USART of ATmega works. I read some pages and I've picked information about it. To test functionality I've written this code: ...
1
vote
0answers
50 views

Power supply for ATmega16

I am working with Atmega16 mc and it works on 5V. Also my project consists of IR sensors, LCD and few diodes. All of those works on 5V. I am wondering how can i power this board. I read somewhere i ...
2
votes
2answers
55 views

Why does the ATmega MCU on the Arduino board have both a flash memory and EEPROM?

I know that both are non volatile. Flash is used to store my code and EEPROM stores long lasting values (like a hard drive on PC)...
0
votes
1answer
53 views

The choice of method for constructing hardware monitoring and diagnostics

created a weight scale device. I chose the software method for diagnosing my system. How can I implement it? X1 is a load cell 5000 grams DA2 HX711 D1 Atmeaga328 D2 shift register H1 lcd display ...
1
vote
1answer
34 views

Cannot connect Arduino Uno REV3 ATmega16u2 serial connection to outside serial connection

I wanted to simply use the ATmega16u2 on my official Arduino Uno with a serial connection. I connected my Serial Board (where I can simply connect any serial connection and read it on my PC via Putty)...
1
vote
1answer
51 views

Powering TL431 from MCU output possible?

I'm designing a board with ATmega128 MCU. I have a TL431 reference connected to the ADC_REF pin, with both TL431 and the MCU connected to the same supply, 3.3 V. Now I realized one problem - since ...
0
votes
0answers
27 views

Mega2560 in circuit high voltage serial programming

Following my other question on a bricked Mega2560 I discovered that I probably locked-out myself with improper fuses values, and that high voltage programming could be the way to recover a working ...
0
votes
0answers
36 views

Bricked Mega2560 - avrdude gets only zeroes

On a Creality CR-X 3D printer (mainboard based on Atmel Mega2560-16u), an upgrade of the firmware had first failed before end when uploaded by Cura slicer via USB. After the fail, the printer became ...
0
votes
2answers
64 views

Capacitor loading lets Atmega4809 die

I have an Atmega4809 (Arduino Nano Every) connected via UART (Rx,Tx,5V,GND) to a BLDC controller. Then I have connected a little display (Rx,Tx without GND.) When it is connected everything works ...
0
votes
1answer
24 views

Digitized Voice over piezoelectric speaker

My objective is too implement a security system that is triggered when someone breaks the IR beam. This IR beam has a digital output pin. Which goes high (5V) when the beam is broken. This signal then ...
0
votes
1answer
82 views

Feedback on Schematic Design (Fully Annotated, Following Design Guidelines; with Purpose Statement and Datasheets)

Thank you for readings this. I've tried to make this post as complete and as adherent to the schematic design guideline (Rules and guidelines for drawing good schematics) as possible. I'd really ...
-2
votes
1answer
66 views

ATMEGA8-16PU as a frequency counter with I2C output with frequency range from 0.05 Hz to 7.5 MHz

Original question: I would like to know if there are already existing projects and programming that is available to use ATMEGA8-16PU as a frequency counter with I2C output with frequency range from 0....
9
votes
1answer
1k views

What is this schematic symbol with intersecting triangles? [duplicate]

What is this symbol? I think it is some kind of amplifier or buffer, but I was unable find any information using search terms like "overlapping triangles," "intersecting triangles," or "double ...
0
votes
0answers
25 views

Trouble using KS0108 graphical LCD

I run program that I was wrote in CodeVision for ATmega32 and I used a KS0108 graphical LCD. I was design the schematic in proteus. when I run the simulation I got this error: Non-existant pin [] ...
1
vote
1answer
72 views

Is battery enough to power the Atmega328, display, HX711 [closed]

I create electric scales that will work with small scales. Microcontroller: Atmega328 Display: SSD1306 Load cell + HX711 I want to charge this device using USB. To do this, I will use TP4056 (...
1
vote
0answers
80 views

Arduino Bootloader for ATmega168PA

I have burned an arduino bootloader to an ATmega168PA. I want to use the internal 8MHz oscillator for the ATmega, and I used an arduino Uno as an ISP. For that, I did the following: Created the ...
0
votes
1answer
83 views

ATMEGA328 USBasp schematic

I have some problems about programming my ATMEGA328 with USBasp programmer. I have found different schematics for the connections and I do not know which I have to use (and I'm afraid to break ...
1
vote
1answer
26 views

Question about ADC prescaler register in ATMEGA32A

As you see in datasheet of Atmega32A, it says that the bits ADPS of register ADCSRA are controlling the Prescaler of the ADC clock by dividing the frequency of external crystal on some division factor,...
0
votes
1answer
28 views

in AVR, if i use .ORG 0 with the main program , where is the interrupt vector table and .INCLUDE file data go?

I am studying AVR from the book "the AVR microcontroller and Embedded system by Mohamed mazidi" and "atmega32A data sheet" in the book, it puts samples of cade which start like this ...
0
votes
2answers
53 views

Using Atmega 328P barebone with non-standard crystal oscillator

The standard barebone setup would be with a 16Mhz crystal oscillator and 2 caps: https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard However unfortunately I only have the following crystals ...
0
votes
0answers
37 views

ATmega168 versions for low power applications

I am interested in using an ATmega168 for a simple application, which has however very strict power limitations. As a result, the important thing for me is to find the version with the least power ...
0
votes
1answer
35 views

Porting from iccavr project to Atmel studio problems with Atmega2561 8 bit MCU

I'm currently in the process of having to port a large project from ICCAVR known as the imagecraft IDE to Atmel Studio 7.0 and have had great difficulty trying to get the Atmel build of the project ...
1
vote
2answers
105 views

Programming my ATmega8 board using Arduino IDE

I made a board with an ATmega8A (SMD-TQFP package). I installed the minicore library in the Arduino IDE. Now I'm able to flash the hex file using Atmel Studio 7 and able to read serial well. But my ...
0
votes
1answer
89 views

Problems with UART in ATmega

I've been programming my atmega 328p to automate my coffe machine. The timer is set using the bluetooth module HC-06, or by a set of configuration buttons that I'm gonna develop yet (the full code is ...
0
votes
1answer
62 views

Mismatch of memory location

I am getting this error when I burn with eXtreme Burner. The LED turns on but does not blink. I am using ATmega8 AVR board.
0
votes
0answers
31 views

SPI implementation stuck on “while(!spi_is_tx_empty(WINC1500_SPI));”

I'm currently implementing a driver for the WINC1500 to be used with an ATMEGA32 MCU and it's getting stuck on this line of "while(!spi_is_tx_empty(WINC1500_SPI));". The code builds and runs but it ...
0
votes
0answers
59 views

What is XCLR and EOC

As the title says, looking at IC9 (BMP085), could someone explain why XLCR and EOC are connected to P-XCLR/P-EOP and why there is no other match in the schematic? Are these connected at all? If not, ...
0
votes
1answer
88 views

received data through UART showing on 7 segment display using ATmega16

I am writing code for Atmega16 for receiving data from another PCB through UART. I want to display the data on a 7-segment 4-digit display, but when code for UART and 7-segment is enabled the data is ...
5
votes
2answers
548 views

Does the counter of an Atmega328 still count inside interrupt handler?

When you enter the interrupt service routine of an Atmega328 that is triggered from a compare event of the TCNT and the value that is set, will the counter TCNT start counting again or rather, keep ...
0
votes
0answers
105 views

AtMega328p and TCA9548 problem

I have a custom made PCB that has an AtMega328p MCU and 4 MLX90614 IR Sensors that are being interfaced by a TCA9548 I2C Multiplexer. When I first got my hands on the board I had 10k pull-up ...
0
votes
0answers
66 views

Pin TX0 -> 1 and RX0 <- 0 on ATMega2560 for USB serial communication

I am currently working on a project where I have to make my pc communicate with my ATMega2560 through the USB serial port. The ATMega2560 is the receiver. I have been told that the pins ...
0
votes
0answers
21 views

HC05 + Atmega32

I'm working on a project that receives one byte from Android phone through Bluetooth. And i'm using HC05 module for transmission. But the problem is i'm receiving and sending wrong chars. For now i'm ...
1
vote
5answers
149 views

How to establish communication between microcontroller on a bread board and laptop using usb cable?

I want to learn about microcontrollers and use them in some projects. But I do not want to buy an Arduino, although that is what would be easy for doing projects. This creates a problem in programming ...
0
votes
2answers
33 views

TXC 9C-11.2896MAAJ-T XTAL Type

For the purposes of configuring an ATmega324A for use with an XTAL, is the TXC 9C-11.2896MAAJ-T considered to be a low power crystal oscillator or a full swing crystal oscillator? Please see page 39 ...

1
2 3 4 5
23