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
0answers
21 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
23 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: ...
-2
votes
0answers
20 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
37 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
70 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
59 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
48 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
29 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
13 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
33 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
55 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
106 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
59 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
63 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
74 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
197 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
95 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
67 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
535 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
122 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
82 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
78 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
36 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
94 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
79 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
69 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
80 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
31 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
83 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
66 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
108 views

Why is OCR1B values are not stored?

I have following program to control two servo motors: ...
0
votes
2answers
82 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
66 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
97 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
65 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
379 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
77 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
169 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
281 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
97 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 ...
2
votes
4answers
114 views

Arduino as ISP : IC swapping

I usually use my arduino as an ISP. But I'm wondering something. Let's say I want to program the blink led code to my ATMega328 with the bootloader already in it. Can I just program it in the ...
1
vote
1answer
211 views

Bluetooth paired signal

I'm using Atmega8 with HC-05 bluetooth module for communication with android bluetooth. The connection was success. But i want microcontroller to detect whether the HC-05 is connected with android or ...
1
vote
2answers
130 views

Why do I need PWMs on Arduino but not on ATMega16 or PIC16 to drive the stepper motors with L293d?

Seems to me , I'm lacking some concepts here. From what I know is that PWMs pins are essential for driving the motors (as they can drive the motors at different speed with diferent duty cycle). So ...
0
votes
0answers
48 views

Which would be the best option for driving the 3/4 axis stepper motor for 3D printers?

I have researched a bit over google and reprep websites and come across different circuits/methods to drive the stepper motors. Being a student only , I have budget issues and I want it to be less ...
2
votes
1answer
106 views

Using UART clock 3.6864 Mhz for a microcontroller

I want to use a 3.6864 MHz external oscillator to clock my ATMEGA328p to ensure 'error free' serial communication. When I looked at this page, I see that 3.68464MHz is also represented as 2*1.8432 ...
2
votes
1answer
167 views

Servomotor takes too much power so the µController (ATMEGA328P-PU) resets all the time

I have got the following circuit diagram. For a little explanation. When the button is pressed the µC is powered for about 10 sec. The µC contains code that moves the servo. When the servo is ...