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
1
vote
0answers
30 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
29 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 ...
0
votes
1answer
41 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
25 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
27 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 ...
4
votes
1answer
317 views

ATMega328P Programs at 2V but not at 1.8V

I'm perplexed by this one: I'm trying to run my ATMega328P at 1.8V. The voltage at the chip (pin 4 and 21) sits at 1.82V (BK Precision Multimeter). When using the AVRISP mkII, the programmer LED ...
1
vote
2answers
575 views

How to control op amp gain with atmega 32 MCU?

I am attempting to control the gain of an amplifier circuit I am building programmatically. I am using the atmega 32 MCU to control an LCD screen and take input from some buttons. Basically, I would ...
0
votes
2answers
42 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
31 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 ...
1
vote
1answer
127 views

Shared programming pins

Alright so there is a question that I need to ask. I am designing a PCB and I plan to include a ISP header for programming. Now one of the programming pins (PB3 - MOSI) is connected to a push button ...
5
votes
3answers
3k views

How do magnets affect the ATMega328?

I'm building a small circuit with an arduino bootloaded ATMega328 chip. The project will be housed in a small box, and is intended to be stuck to the side of a fridge using a magnet. Everything in ...
1
vote
2answers
96 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 ...
2
votes
1answer
179 views

Powering Atmega, DAC and Bluetooth in Car

I'm looking for a proper power supply schematic which would fit my needs and would have all required protections (overcurrent, overvoltage, reverse current, etc) for use in car. I want to power Atmega ...
0
votes
1answer
310 views

How to control brightness of high power LED with PWM microcontroller (ATMEGA16)

Hi I am entirely new to the PWM concept. I have an AVR based ATMEGA16 microcontroller (https://robokits.co.in/control-boards/rhino-robot-control-board/rhino-robot-control-board-avr-based-with-quick-c-...
1
vote
1answer
3k views

Are both ground pins on the ATMEGA internally connected? [duplicate]

I think the title is self-explanatory but should I make the connection on PCB or they are already connected? If so, should I still connect them externally? Why? I'm working on ATMEGA328p-pu if it ...
0
votes
1answer
210 views

Atmega32u4 USB 2.0 Routing Check

I am making last minutes changes to USB 2.0 differential pair routing on Atmega32u4 based board. I can't re-route the entire board and/or re-arrange the components. So the picture attached is the best ...
1
vote
1answer
320 views

Regulate an RGB LED via PWM, both in brightness and in hue

I am looking to regulate programmatically an RGB LED both in terms of brightness and in terms of hue. So far I have learned that I can use PWM to do this, but I am unsure as to what the details are. I ...
2
votes
1answer
2k views

Power ATMEL ATMEGA328P directly from USB

im wondering if it is Ok to power an ATMEGA328P directly from an USB-Poweroutlet i.e. an Apple-USB-Charger. And I mean directy: VCC to Pin 7+20 GND to Pin 8+22 Peripherals should be powered from this ...
0
votes
1answer
85 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
234 views

1-wire in ATMEGA1281 problem

Could someone help me with something like this? I wanted to add DS18N20 thermal sensor (http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf) via 1-wire interface and when I'm trying to connect it ...
0
votes
1answer
145 views

Arduino mega 2560 Analog max reference voltage

Each time I power up the Arduino, the max reference voltage which is represented by 1023 changes. I observed this by measuring the voltage from the Aref pin each time. Is there any internal function ...
0
votes
1answer
45 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
30 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
58 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
362 views

ATMEGA328p LED Example not working

I tried to build a test circuit based on the Book "AVR Programming". It is very simple and shown here: The circuit itself is working and the upload of my code as well: ...
1
vote
1answer
1k views

ATmega328p driving RGB LED WS2801

I am using an ATmega328p to control this RGB LED module. The ATmega is on an Arduino Uno, but I am programming it in C, without using the Arduino libraries. To power the RGB module I am also using a ...
1
vote
1answer
242 views

Atmel ATxmega128A identical boards - one fails to enter programming mode

I have two identical boards both equipped with ATxmega128A. I am using Atmel-ICE for programming using PDI Interface. The first board, I can read the device signature without any issues. On the ...
0
votes
1answer
64 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
543 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 ...
3
votes
1answer
1k views

AVR program code location

I'm working with an ATmega328P and I wanted to interface with the flash memory writing data to it with the macros provided by avr-libc. This is the memory map for my chip: (source: avr-tutorials.com)...
1
vote
1answer
529 views

ATmega16u4 and ATmega32u4 i2c bug in Proteus AVR model?

I am trying to use i2c with ATmega16u4/ATmega32u4 in Proteus (version 8.5 SP1) and in my i2c code the following code line hangs the MCU: ...
0
votes
0answers
83 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
2answers
2k views

microcontroller resetting and hanging problem

I am controlling a 16x2 LCD and a high electrical device using ATmega8l microcontroller but if there appears a spark in AC power line due to high electrical device then my microcontroller goes to ...
0
votes
2answers
177 views

External influences with ADC

I use atmega328p. I'm trying to read data from a variable resistor using an ADC. The microcontroller also has LEDs connected. If I ignite them, the data from the ADC increases noticeably. ...
-5
votes
1answer
509 views

How to generate staircase wave using AVR microcontroller?

I am trying to build staircase wave using atmega16. I have generated PWM signal that also can be controlled width automatically. I have used low pass filter with OC0 output pin of microcontroller. As ...
0
votes
0answers
49 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
17 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
1answer
471 views

Input interrupt pin associated with TIMER1 on ATmega168

A few days ago I came across the source-code for this ATmega168 based Inductance Meter from Dan's Workshop Blog. Below is the code that I believe sets up an ATmega168 interrupt to measure an external ...
1
vote
5answers
144 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 ...
0
votes
0answers
17 views

WatchDog control (MAX6369KA+T) with a Microcontroller (Atmega328P)

There is a hardware watchdog MAX6369KA+T, which has the functions of setting the standby time and enable / disable via contacts (SET0 / SET1 / SET2). At the moment, I control them using external ...
0
votes
1answer
72 views

Atmega328p connected to an NRF24L01+ not working

I've been working on a project for some time right now, I'm trying to make a modular sensor system with atmega's and nrf24 nodes. I've made a custom pcb but it isn't working. I've tried a lot of ...
0
votes
2answers
894 views

Simulation of sensor in proteus using Atmega16

I have trouble reading data from sensors using ATmega16 in Proteus. We use either light sensors for which I use LDR in proteus, or LM35 temperature sensor for temperature reading. The problem is, ...
0
votes
2answers
98 views

Power on Atmega

I want to design an alarm circuit using Atmega328 microcontroller. How much voltage supply to the IC will be better? In Arduino I see that 5v power supply used. For Atmega328 which will be better? 5V ...
0
votes
2answers
35 views

Does an ISP clock interfere with the on-board clock when programming via ISP?

I am planning to use ISP programmer to program my new AVR board. I use an 8 MHz crystal on my PCB to clock the micro (atmega328p-au). Now, as I understand the ISP programmer will provide its own clock ...
0
votes
2answers
21 views

What is IDC connector pitch on a USBAsp?

I am planning to use a USBASP programmer to program one of my boards, and I want to use a fitting receptacle on my board. I fail to find the exact pitch that the USBAsp's IDC connector has (as I ...
0
votes
2answers
114 views

Interfacing Atmega 2560 with 74ls240 inverting buffer

I am trying to light up the 7 segment display using inputs to the Port B pins, causing output on the Port k pins, which are inverted using the 74LS240 chip. The Arduino is correctly outputting the ...
0
votes
0answers
39 views

How to connect an SPI angular sensor (AVAGO AEAT-9000-1GSH0) with RS485 transceivers to an AVR microprocessor?

I need to connect an AVAGO AEAT-9000-1GSH0 angular sensor to an ATMEGA32U4 processor. I designed two versions: one using IC-s, one using resistors. I do not now witch of my two designs is better (or ...
1
vote
3answers
5k 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 ...
3
votes
1answer
1k 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 ...

1
2 3 4 5
22