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
2 answers
55 views

How to test if a ATMega16u2 is working

I have designed a custom ATmega16u2 board, however, I cannot connect to it using USB. All connections seem to be correct, and I have checked that the voltage regulator is working, regulating it to 3....
user avatar
1 vote
1 answer
31 views

ATMega32u4 minimum system clock for USB 2.0

I am trying to cut down the power consumption for an ATMega32u4. The datasheet says, for USB 2.0 it needs an external clock, which it uses to generate a 48 MHz clock by multiplying the external clock ...
user avatar
  • 655
-2 votes
2 answers
66 views

Is my microcontroller damaged?

I tried the simplest code with a blinking LED, but it is not working. I connected the LED to PB0 through a 1k resistor. The software (AVRDUDESS) is detecting the microcontroller (ATmega16) fine, but ...
user avatar
  • 49
0 votes
2 answers
39 views

ATmega324PB, reading registers through SPI, the meaning of sending 0xAA

I have an electronics board that uses an ATmega324PB microcontroller that uses SPI communications to communicate with another device on the board. In a coding function that reads a register through ...
user avatar
  • 547
0 votes
2 answers
54 views

External RC oscillator fuse programmed instead of external crystal fuse

Is there anyway to revive an Atmega8A? avrdude says avrdude: error: program enable: target doesn't answer. 1 ever since I ...
user avatar
  • 805
0 votes
1 answer
80 views

Mysterium Keyboard ATmega32a malfunctioning. "USB device not recognized."

I tried sourcing all the parts for this keyboard. I soldered everything up and when I plug in the keyboard I immediately get an error message "USB device not recognized": My first though ...
user avatar
1 vote
0 answers
31 views

Ardunio Errors with ATmega644A Fastled (MCUDude Mightycore)

Good Morning, I am trying to compile a ardunio project with ATmega664A using the MCUDude MightyCore plug in while using the Fastled library. I have used this before with ATtiny167 with Spence Konde ...
user avatar
  • 87
2 votes
0 answers
56 views

Different capacitors between VCC and ground required for different sensors and components [duplicate]

I am designing a custom board with a ATmega16u2. In the specifications of the linear voltage regulator, a 10uF capacitor is required between the regulated voltage and ground. A 1uF is required between ...
user avatar
-1 votes
1 answer
102 views

How to connect BME280 to ATmega328?

I tried to connect a BME280 sensor to an Arduino Uno. After a successful experiment, I decided that I needed to transfer the sensor and the microcontroller to a separate board without unnecessary ...
user avatar
2 votes
2 answers
109 views

ATmega32U4 without USB: how to handle usuned pins

On the ATmega32U4 MCU there are several pins related to USB: VBUS D+ D- UCAP UGND UVCC In the datasheet and in almost all reference schematics I find on the Internet, it's explained how to connect ...
user avatar
  • 875
0 votes
0 answers
129 views

How do I change and verify the clock frequency of Atmega4809 microcontroller? CLKOUT not working?

In the below code I am trying to get the clock frequency to show up on the CLKOUT pin which should be pinA7. But for some reason I don't get anything when measuring pinA7 on an oscillicope. I do see ...
user avatar
  • 197
2 votes
2 answers
58 views

Are there any ramifications of leaving an AVR in debugWIRE mode?

I have a product with an external connector with the intentions of using this for applying updates to an ATMEGA328P later on down the road. There are limited pins available, so I can't use SPI for ...
user avatar
  • 161
2 votes
2 answers
62 views

Self programming fails on ATmega2561

We've been programming a custom Board with an ATmega2561 via a serial (RS232) connection for years, mostly without problem. We're using a custom bootloader that is closely based on recommondations in ...
user avatar
  • 1,581
2 votes
0 answers
76 views

Is a single Schottky diode adequate to support power-path in a basic USB -> LiPo charging circuit?

I'm working on a hobby project based on the ATmega32U4. I'd like to be able to power the device by USB or LiPo battery. I was looking at the schematic for the LilyPad ProtoSnap Plus and saw a diode ...
user avatar
1 vote
1 answer
75 views

333mV Current transducer - how to read it and protect the Atmega328p input

i have this CT current transducer: it outputs 333mV at 5A full scale. I'm planning to use it in my house/office in order to detect if a load is switched on or off, but i'm worried about how i can ...
user avatar
  • 529
-1 votes
1 answer
95 views

Breathing effect using a shift register

I want to create a breathing effect but I have 16 RGB LEDs. I also want to arrange these 16 LEDs in a square. I plan on using a 74HC595 datasheet shift register and an Atmega32 MCU. I have figured out ...
user avatar
  • 1,285
1 vote
1 answer
119 views

Can't connect to Atmega328p with avrdude

I'm trying to connect to a pretty old Atmega328p that was sitting on a solderless breadboard for years. I'm using a TinyUSB programmer that also powers the MCU. When I try to connect to it, I have the ...
user avatar
0 votes
2 answers
40 views

Problem interfacing stepper motor with Atmega 32

I have been trying to interface a bipolar stepper motor with an ATmega32 controller using AVR assembly, but it just keeps clicking without movement or just move back and forth in the same step. Here ...
user avatar
0 votes
3 answers
177 views

How does one program for first time and reprogram microcontrollers that are mounted to a PCB?

Arduino Unos and Microchip Curiosity Nanos are for prototyping and easy and ready to program, but now I am struggling to find the resource material that would detail taking the chip off the breakout ...
user avatar
  • 197
2 votes
3 answers
280 views

Can I control IRFZ44N Mosfet directly from 5V microcontroller?

I know that IRFZ44N is not a logic level Mosfet, but I need it to control only 12v 1.2A (14.4W). Can I control it by applying only 5V on gate from an atmega microcontroller? I checked the datasheet ...
user avatar
1 vote
2 answers
59 views

Reading the input from a relay's NO output over 12 meters

I want to read the input from my driveway gate beam using an Atmega32. I know the gate beam is powered with 12V DC which I get from the driveway gate motor's battery. The beam also has three outputs, ...
user avatar
  • 1,285
0 votes
2 answers
63 views

What is max input voltage on ATMega4809 (datasheet versus Atmel-ICE programmer)?

Background I have my ATMega4809-pf hooked up properly and I am able to program it via my Atmel-ICE programmer. Problem However, when I read from the chip using the Microchip Studio it warns me that my ...
user avatar
  • 1,166
2 votes
1 answer
86 views

Noise on I²C when bit-banging but not with built-in I²C (ATmega328PB)

I'm working on bit-banged I²C for the ATmega328PB. I've been seeing a lot of noise (ringing and cross-talk) on the lines but thought it was just my test probes, etc. However, when using the MCU's ...
user avatar
  • 1,306
0 votes
1 answer
169 views

Wrong device signature for ATmega32A-PU while burning MightyCore bootloader

I'm trying to install the MightyCore bootloader into an ATmega32A-PU chip but I'm getting the following error when I press the "Burn bootloader" button on Arduino IDE: ...
user avatar
3 votes
1 answer
226 views

Why don't certain pins on PORTC on the ATmega164A/324Pa/644PA/1284P work?

I want to use the PC2 pin on my ATmega164-1284PA series of microcontrollers and it's not working no matter what I do. I even wrote a minimal test case that only sets it as an output and toggles the ...
user avatar
2 votes
1 answer
280 views

How debug atmega2560 with pickit 4? (Arduino mega board)

I owned a brand new pickit 4, and I'm trying to get a debug session working. This is what I did: 1. Cut reset pin from the USB-UART programmer. There is a Reset EN pad that can be cutted off to ...
user avatar
1 vote
0 answers
92 views

7-segment display communication

I have attempted to solve this problem making kmaps for the binary counter, mux and decoder however I'm getting stuck on the making them all talk to each other bit, I am using a ATmega32L and a ...
user avatar
  • 11
1 vote
1 answer
483 views

Programming ATMEGA328P with an USB-UART adapter

I'm having trouble using this USB to serial converter to program my ATMEGA328P. Let me show my steps below: I have bootloaded the ATMega328 using the Arduino as an ISP. I then used the Arduino as an ...
user avatar
0 votes
2 answers
102 views

Powering Ardunio Nano with external 5V Schematic

This is the continuation of my (previous question). In that, it is suggested that powering a Nano with an external 5V is not a good method. My team told me to put an option in any way. I found this ...
user avatar
  • 572
0 votes
1 answer
86 views

ATtiny84a SPI communication disabled following chip erase

I am attempting to serially program an ATtiny84a using an ATmega645a. I am able to enter programming mode and read the device signature bytes, but after issuing a chip erase command, the ATtiny stops ...
user avatar
  • 31
1 vote
1 answer
243 views

ATMEGA328PB and ATMEGA328P: can be exchanged on a design?

I'm working on a PCB design where I was using ATMEGA328P. Right now it is impossible to get it from any distribuitor, and I think that the best option is to replace it with an ATMEGA328PB (PCBGOGO ...
user avatar
  • 340
0 votes
0 answers
399 views

How to get ATMEGA328P (28 pin) in Proteus?

I am newbie in Proteus, when I searched for Atmel ATMEGA328P, I found only 32 pin part available, when I used "component search engine" I found the 28 pin part but could not import it (I got ...
user avatar
2 votes
2 answers
192 views

When to switch to 4 layer PCB

I'm currently designing my own 60% per-key RGB mechanical keyboard. (60% means the keyboard only contains 60% of the keys of a regular keyboard.) I've laid out the components, routed the switch scan ...
user avatar
0 votes
1 answer
45 views

AVR ATMEGA32A UART not send and receive data unless programmer is connected

The code in micro is to turn a LED on when it receives "1" from UART and off when receives "0". For VCC I use a phone adapter (5V, 0.7A) which works properly and is suitable for ...
user avatar
0 votes
1 answer
171 views

7 segment display not showing digits simultaneously with an ATMega32

I want to show the digits'18221021' simultaneously. The seven segment display should show all 8 digits at a once. I wrote the following code. It shows all the digits but not simultaneously. It is ...
user avatar
0 votes
1 answer
67 views

Error in LCD while interfacing with ATmega 32

I am trying to interface a normal keypad and LCD .where for example if i press '1' in keypad it will show 'one' in the display . if i press '=' it will show 'EQUAL' in Display . i developed below code ...
user avatar
0 votes
1 answer
69 views

ATMega2561 - How to connect this ambient light sensor using 1-Wire?

I am trying to connect the following components to an AVR ATMega2561: 1-Wire Master Interface DS2484 datasheet here RGB Ambient Light Sensor APDS-9250 datasheet here I have already managed to ...
user avatar
0 votes
2 answers
73 views

Measure ATmega168PA internal temperature while using other ADC channels at 5V reference

I have a device that continuously measures the value of 3 sensors connected to 3 ADC pins and working at 5V reference, so I have two options for voltage reference selection: Connecting AREF pin to 5V ...
user avatar
  • 277
0 votes
1 answer
109 views

ATmega32U4 I/O Pin Alternate Functions

I am using an ATmega32U4 as a master with 2 slave ADCs (AD7739), ADC1 and ADC2. The two ADCs are identical. The SS, SCLK, MOSI, and MISO for ADC1 correspond to ports PORTB0,1,2, and 3 respectively, ...
user avatar
0 votes
1 answer
37 views

ATmega 2560, additional software serial port advice

I am trying to make a project with an ATmega 2560 microcontroller. I need 5 UARTs, but the microcintroller has only 4 of them. I want to connect 4 of them to RS485 and 1 additional software serial to ...
user avatar
3 votes
1 answer
152 views

Why is my 5 pin switching headphone jack shorting out my circuit when I plug a 3.5mm phono cable into it?

I have an STX-3790-5N 3.5mm stereo switching headphone jack in my circuit. http://www.kycon.com/Pub_Eng_Draw/STX-3790-5N.pdf The intention is for the audio signal to flow from the ATmega328 pin 9 to ...
user avatar
0 votes
1 answer
90 views

ATmega644P programming via STLINK v2

I want to upload program/debug ATmega644P using STlinkV2(JTAG). Is it possible? Which IDE support make debug ATmega644 using STlinkV2.
user avatar
0 votes
1 answer
193 views

Atmega-328 as an alternative to the Arduino Uno

As I am building on, every day I learn something new. Today I learned that I really don't need a full-size Arduino (Uno/Nano.) All I need is an ATmega328(/p) chip microcontroller. At this point, I ...
user avatar
  • 141
0 votes
0 answers
85 views

Standalone Atmega328p AU PCB noise problem

I am using my standalone atmega 328p au custom PCB for switching 220v contactor via relay module. PCB contains 5v smps power supply, triac based SSR for indicators and output pins which connects with ...
user avatar
  • 143
0 votes
1 answer
145 views

PC recognizes keyboard pcb only as FT232R usb UART but doesnt see atmega32a behind it

I made my own pcb design for mechanical keyboard. When I wanted to test it, both mac and windows system recognize only FTDI ft232rl chip on pcb but not atmega32a behind it that controls whole keyboard....
user avatar
1 vote
2 answers
162 views

Need help fault finding a custom PCB

I am designing a custom circuit board for a CG scale test instrument to find the centre of gravity for model airplanes. My design is based on the model here: https://github.com/olkal/CG_scale and it ...
user avatar
  • 427
0 votes
0 answers
101 views

Crystal for ATMEGA32u4 Not Working

I have been trying to make a watch circuit, but have ran into the issue of how to setup the crystal. I believe it is the crystal that is the problem because when I messed with the crystal contacts the ...
user avatar
0 votes
1 answer
34 views

ATmega - magnitude comparator for hardware PWM

Does someone has an information how hardware PWMs of ATmega, etc.. compare registers with timer/counter value? Is there inside a true 8bit magnitude comparator for every channell or is there some ...
user avatar
-4 votes
1 answer
887 views

Making a simple calculator with ATMEGA32

I try to create a calculator with ATMEGA32 but it did not work correctly! For example it do operations like this (2/1=0),(5*6=12808),(22+88=12746). I know that something is wrong but I cannot find it ...
user avatar
0 votes
0 answers
82 views

Programming ATMEGA1284p on internal 8MHz without caps

I'm trying to burn a bootloader on a standalone ATMEGA1284P without using caps or an external 16MHz crystal, just with a 100nF cap between GND and 3.3V VCC. I am using this bootloader from maniacbug. ...
user avatar

1
2 3 4 5
24