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.

learn more… | top users | synonyms (3)

0
votes
2answers
43 views

How to find the value on a chart scaled in decibels

I have the following chart The blue line is the one I am interested in. The question is how can I determine the value in LUX if I have the output voltage? The problem is that I don't have any ...
0
votes
1answer
44 views

Atmega328P not starting up

I am playing with an atmega328p microcontroller to try and build a simple circuit which open/close a relay to control a garden light, my problem is that while the circuit works fine on my breadboard ...
0
votes
1answer
46 views

How to Identify faulty bus pins on LCD?

I've soldered 14 pins on the back of my LCD and connected to an AVR Microcontroller. The LCD powers on correctly and contrast is set correctly but I'm having trouble sending software initialization to ...
0
votes
2answers
44 views

Driving a transistor base with PWM

I'm in desperate need of help here! No matter what I try, I can't seem to get this working! I'm trying to drive a signal transistor with PWM on an AVR ATmega32. My PWM signal looks as it's supposed ...
0
votes
1answer
37 views

What is each pin's output voltage of an ATmega328P?

I would like to operate an ATmega328P in 3.3V supply alongside some other 3.3V non-5V-tolerant-peripherals. I looked up in the datasheet but I couldn't find an answer as to what is the output voltage ...
1
vote
1answer
56 views

AVR SPI slave with interrupt

For a project I want to have two microcontrollers talk to each other via an SPI interface. I wrote the following code for the slave: ...
0
votes
0answers
28 views

How to use ADXL335 to detect direction of movement

I want to use my ATmega32 with the ADXL335 accelerometer to make a glove that works like a mouse. How to detect whether accelerometer is moved to the left or right direction. Any help would be ...
1
vote
1answer
28 views

AVR USART OUTPUT almost similar as input

My output is different from my input when I try to read it from my Hercules terminal. Could this be from a bad UART initialization? Inputs : | á, 1, 123 Outputs:|a, ±, ±²³ Code: ...
-3
votes
0answers
30 views

Variable/Unstable PWM output in MPPT algorithm

I am trying to implement MPPT algorithm but seems to me I'm unable to generate a stable (fixed) duty cycle at a particular value of ADC. The code I'm using is as follows : ...
0
votes
1answer
39 views

ATMega328p SPI with MCP41100 digital pot

I'm trying to communicate with a MCP41100 over SPI using an ATMega328p and can't seem to get it to work. Here is the code I found, can anybody see what I'm doing wrong? ...
0
votes
2answers
75 views

Large errors in ATMEGA8 ADC readings

I'm using the ADC of ATMega8 to read the charging and discharging waveforms of a capacitor. However I'm getting an extremely large number of errors when I see the data I get in my laptop. I'm sending ...
0
votes
1answer
61 views

Controlling an ATmega328P via Wi-Fi

I am a software guy who hasn't been under assembler level. I have a project in my mind but I don't have sufficient knowledge on electronics. I have been searching in the internet for help, but I ...
1
vote
3answers
57 views

AVRDUDE with buring settings of AVR Studio

I make my own electronic boards often with an Atmel ATmega328P. I used AVR Studio for programming. Now I tried to make the same settings with avrdude and it looks, that they are not really ...
1
vote
0answers
34 views

Atmega328 NFC cannot wake

I'm trying to communicate my 328 with DFRobot's NFC Module a while now, but I cannot wake the card. Below is my code, where I use DF's instructions on how to make the card work. I write what card ...
0
votes
1answer
14 views

ATXMEGA128A4 and bluetooth BTM-331

I have some questions regarding atxmega128a4. I want to use all of its 5 uart modules but my very basic problem is that I do not know what are the pins for RX/TX. I have read in manual but I cannot ...
0
votes
1answer
34 views

ATmega dual pin function JTAG and analog input

I need measure temperature to adjust ticks as temperature changes. I suppose thermistor nearby crystal (10ppm) as low cost solution. I'm using AT90USBxxx but I have allocated PF0-3 for more important ...
1
vote
2answers
58 views

How to steer 20v from ATmega pin?

I want to enable/disable 20V current with my ATmega pin. How can I connect transistor and what transistor?
1
vote
2answers
114 views

Speed problems in homemade RS232-to-TTL converter board

I'm still trying to debug this RS232-to-TTL converter board that I've made, shown below. Now I think I've narrowed down the problem to speed: it works fine at 57,600 baud; but it inserts some ...
1
vote
1answer
65 views

Arduino as AVR Programmer with Avrdude

My objective is to program a single ATmega328P sitting on a breadboard. Due to my location and cash at hand I cannot acquire a AVR ICSP programmer so instead (through research) I found I can use a ...
-1
votes
0answers
64 views

Use IP Camera as router

I'm trying to build an RC spy car controlled over Android and I was thinking if I can use the IP camera I'm planning to use to send images to the Android device as a router for the board I built..The ...
-3
votes
2answers
82 views

Max voltage for Arduino ATmega328 VCC pin (not raw!)

I am thinking about getting both the Pro Mini 3.3V and the 5V boards. Example (but I may end up going generic, not sure yet) 3.3v: https://www.sparkfun.com/products/11114 5v: ...
5
votes
2answers
219 views

Problems with homemade RS232-to-TTL converter board based on TI's MAX232

I've designed an RS232-to-TTL converter board based on TI's MAX232 IC that I plan to use to program a few custom Arduino boards that I have. However, I'm having trouble with the board and I'm hoping ...
0
votes
1answer
105 views

My OLED 128x64 0.96 inch(with SSD1306 driver) doesn't work!

I'm working to use of this OLED but I don't know why doesn't it work!? the Schematic of adaptor is this: and this is assembeled project on breadboard: when I check out the pins of SPI of ...
-2
votes
1answer
75 views

about progame of pt100 tempertaure sensor with arduino atmega328 [closed]

Respected sir, I am trying for coding of pt100 with arduino atmega328. so please help me to slove this problem.
6
votes
3answers
550 views

Micro, MOSFET and DC motors

I'm developing a nano quadcopter using an Atmega328 microcontroller, powered at 3.3V, and very small brushed DC motors. The average current used by these motors is about 800mA @ 3.7V. Initially, to ...
9
votes
6answers
1k views

What happens if I omit the pullup resistors on I2C lines?

Just now I realized that the I2C data and clock lines (SDA and SCL) must have pullup resistors. Well, I've built a couple of clocks using the DS1307 RTC (see datasheet) according to the schematic ...
1
vote
1answer
132 views

Arduino clock speed prescalers at start without fuses

I know it's possible to change the clock prescaler at runtime. But is there a way to set the prescaler that is used at boot on an ATMega328? I'm aware of the fuses, but those are pretty permanent. I ...
0
votes
1answer
63 views

Prevent full startup when only battery backup applied

I have an ATMega328 running firmware that goes to sleep when main 5V power is removed and runs on a 3V backup battery instead. While in sleep, the watchdog timer wakes it up occasionally to keep a ...
0
votes
1answer
103 views

Unable to program ATmega168: bad AVRISPmkII connection status: MOSI fail

I’m trying to program an ATmega168 using an AVRISPmkii via the 6-pin ICSP on a board I “designed” (my first). I have VCC connected to a PSU and the AVRISPmkii connected to the ICSP header. The ...
1
vote
1answer
82 views

Watchdog timer not being called in sleep mode

On an ATMega328p, I'm trying to setup a program that counts 1 second intervals via the watchdog timer, even when the chip is in sleep mode. A button interrupt puts the chip into sleep mode. The ...
0
votes
0answers
42 views

How to connect a “MAX13020” or “TJA1020” LIN-transceiver to a ATmega2560 UART

I have got a MAX13020 LIN-transceiver which should be identically constructed like the TJA1020. Now I would like to connect this transceiver to the UART of an Atmega2560. How does the circuit has to ...
1
vote
0answers
99 views

PIR motion detector and ATmega8

I am trying to use motion detector with my Atmega8. I have this part which produces LOW an the ALARM pin when it senses motion. I tried to set 1 output pin as ADC on the ATmega and see when it ...
1
vote
1answer
85 views

16x2 LCD not working with ATmega 8

Below program is written in AVR studio. Connections: PORTD pins 0 to 7 are connected to data lines of LCD i.e. DB0 to DB7 respectively, PORTB.1 connected to RS, PORTB.2 connected to R/W and PORTB.3 ...
1
vote
1answer
75 views

What is the difference between Timer0 and Timer2 in AVR

I'm using ATmega32. This two timers looks very similar. What is a difference between them? When should I use Timer0, and when Timer2?
2
votes
2answers
82 views

How do I use a button to wake up an atmega32?

Sorry for any noobiness, I'm more of a software engineer. How do I use button interrupts in general? As in, if I put my microcontroller to sleep, I'd like a button to wake it up. How should I go ...
0
votes
1answer
32 views

Atmeg16 USART communication problem

In my project, I use a atmega16 to send data to PC via USB to TTL converter at baud rate of 9600 and internal RC of 4Mhz. If I power the atmega16 using my laptop through a usb cable I can receive the ...
0
votes
1answer
95 views

Button to start LED, release jump again

I am trying to do the following small project: Master MCU have 2 buttons - PINC0 and PINC1 PINC0 will count the clicks PINC1 will blink the LED n times (n=counter) and send n to the SLAVE MCU The ...
2
votes
1answer
88 views

ATmega2560 assembly pin read and compare logic problem

I apologize if my question was vague. Program: Atmel Studio 6 I am trying to make a program that enters an loop which it will only break out of when a pin goes low. ...
1
vote
0answers
67 views

Measuring a 2 cell 18650 battery from ATMega328P

I'm using an ATMega 328P (which will be running arduino code) as part of a project (a bicycle lighting system). It runs off of 2 Li-Ion cells, which both are step-up-regulated to 12V for the lighting, ...
0
votes
2answers
112 views

Why is OCR1B values are not stored?

I have following program to control two servo motors: ...
0
votes
2answers
89 views

VGA repeater/extender circuit

Apparently noone ever needed anything like this on the internet because I was not able to find any example, so I hope this will become the reference question. I need to repeat a vga 800x600 signal up ...
2
votes
4answers
166 views

Non-linear error in ADC readings

I am measuring voltages up to 20V with my ATmega2650 MCU (10-bit ADC). I'm using 5V precision voltage reference (LT1021 - 0.05%). Voltage dividers are setup with 1% Panasonic resistors. ...
0
votes
1answer
75 views

arduino burning bootloader. avrdude issues

When I try to burn a bootloader to my atmega328 the arduino IDE gives me an error: avrdude: usbdev_open(): did not find any USB device "usb" When I burn a ...
0
votes
2answers
99 views

Xbee-Arduino serial input (outliers problem)

I have an Xbee configured as receiver and Arduino (standalone w/ atmega328p chip) connected together. The RSSI pin of the Xbee is connected to one of the Arduino Board PWM pin. I used the PulseIn to ...
1
vote
2answers
69 views

Analog-Digital Conversion Clock Prescaling - ATmega328P

I am trying to use the ADC on an ATmega328P clocked at 16 MHz. The datasheet mentions the typical ADC clock frequency range as being from 50 kHz to 200 kHz. By default, the successive ...
1
vote
1answer
409 views

Fuse configuration AVR dude for external 12MHZ crystal in Atmega 168

I have 2 microcontrollers (Atmega 168PA-PU). So far I have run the following program in one of them (say mc1). Now when I run the same code in the other one it gives erroneous results. Someone ...
4
votes
2answers
80 views

Xbee not responding timely. Large delay between each transmission

I have prepared a setup for 2 Xbees one connected to the PC via XCTU and the other interfaced with Atmega 168. The terminal software will send 1 and the xbee with Atmega 168 will return 1. The code ...
3
votes
2answers
173 views

Problem with Atmega 168 USART receive interrupt ,while communicating with Xbee

Before decreasing my reputation please let me know what I have done wrong. Bear with me as I am a newbie. I have written a program so that a receiver radio module sends 1 when it receives an 1 from a ...
0
votes
1answer
295 views

atmega32 communicating using rs-485 modbus protocol

I am trying to read values from a meter (WDM303FDWA1) through ATmega32. The communication to the meter has to be done by RS-485 modbus protocol. I would like to know what IC do I have to use to ...
0
votes
2answers
104 views

Programming ATMega16L over ISP interface

Sorry if the question seems silly, but I really need some expert guidance. My question is as follows: What are the necessary pins to program an ATMega16 chip over ISP interface? I've bought a locally ...