AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the popular Arduino SBCs.

learn more… | top users | synonyms

-1
votes
1answer
25 views

Control speed of motor with an AVR through a ESC

I have a XRotor 40A ESC and start working on controlling it with an AVR micro. I Connect everything: motor, battery and ESC, and connect the ESC input wire to the micro. The code on the micro is ...
0
votes
1answer
69 views

I can't get out from interrupt driven serial communication

program works correctly but after receiving '#' it has to come out from while loop and print "Exit" on lcd but it doesn't.program still in while loop. ...
0
votes
0answers
10 views

nRF24L01 TX_DS/MAX_RT never

I have strange problem with my nRF24L01+. I'm trying to add nRF24L01+ support to my library for AVR mcus. I'm able to communicate with the device via SPI. I can read, write... But I'm not able to ...
-1
votes
0answers
21 views

iOS compatible Bluetooth module for high throughput [closed]

Suppose I want to transfer data from an AVR-based device (say ATMega2560, preferrably an Arduino) to an iOS device (iPad or iPhone) at a decent speed (at least 200kbps), what bluetooth modules are ...
2
votes
3answers
206 views

Regarding CPU speed required for USB applications

I am working on a project for developing a USB keyboard, and I am new to USB protocol and I did initial study regarding basics of data transmissions through USB. I am now checking for USB supported ...
3
votes
1answer
168 views

How does the BRGE instruction work in assembly? Why is this code not functioning properly?

.cseg ldi r16, 0x01 ldi r17, 0x01 add r16,r17 cpi r16,0xFF brge greater jmp less greater:inc r1 jmp done less: jmp done done: jmp done I'm writing ...
1
vote
1answer
38 views

ATmega328P assembler inline text and assembelr ALIGN

I have a program in assembler like this: ...
0
votes
1answer
43 views

Timer in ATmega2560

...
0
votes
1answer
76 views

Analog pinouts of the ATTiny85?

I'm looking to buy a ATTiny85 for a school project. We require 4 analog inputs for our LEDs which we're using as makeshift light sensors (this part of the project is sorted). I've read the the pin ...
-1
votes
1answer
65 views

ATMEGA32 LED BLINKER Assembly code problem

I tried the following code for a simple led blinking problem on ATMega32. ...
-4
votes
2answers
80 views

How do I get a value of a RAM by given address? [closed]

I think I know how RAM works, but I have an exercise where I have to read at the address 0x????. Furthermore, I am only interested what value get returned after the reading command. For example: ...
2
votes
2answers
68 views

Open collector with Atmega48

After looking at this, I think I already know the answer, but I just wanted some clarification. Open collector microcontroller output I have a part that is going to drive my mosfet at 15V. I have ...
2
votes
1answer
43 views

Detecting when AVR ICSP header has a cable connected

I have a bunch of Atmega16A MCUs laying around so I want to use them with an ESP8266 to relay temperature and such in each room of my home to a server. The thing is, if I need to update the firmware ...
0
votes
0answers
63 views

AVR Power on failed

I have recently purchased a USBasp and AVR microncontroller with the development board. I have tried out some program(blinking led and led with switch) it was working fine. The board that I have was ...
0
votes
0answers
25 views

Proteus and AVR watchdog timer problem in turning off

I created a small avr (ATMega32) controlled circuit that needs to be reset every 1 hour. i used the procedures by atmel that also explained here on SO. The procedure works easily on avr micro, but ...
1
vote
2answers
17 views

TLC5940 16 PWM Output Iref Resistor

I have just picked up the TLC5940 chip from TI that provides 16 PWM outputs. The data sheet is here. As mentioned in the data sheet, the max current at each output can be set by connecting a ...
0
votes
0answers
85 views

Unable to implement TWI with Atmega8

My goal is to interface an IC AT24C16 with Atmega8 through TWI. I tried every solution possible from online forums but I see no meaningful signal in the oscilloscope. This is my code. Can some one ...
1
vote
0answers
41 views

Would you use Wiznet W5x00 in a commercial product? [closed]

I am working on a project where the product needs to be connected to the local network. For the products we use Atmel controllers (AVRs and ARMs). I choose Wiznet W5100 to be used in the prototype, ...
0
votes
4answers
44 views

ATmega48 maximum AREF voltage

The application that I want to use it for is 5V. However it could potentially have a future iteration where the reference voltage could be as high as 15V. The plan is to run the ATmega48 at 3.3V. I ...
0
votes
1answer
65 views

Attiny85 PWM Not Working

A am new to AVR programming. I have an Attiny85 and an LED hooked up to pin 5 on the chip (PB0). My goal is to get the LED to fade on, then turn off and repeat. When I give power to the chip the LED ...
1
vote
1answer
59 views

Which MCU (Atmel) I can use with QTouch library?

Some MCU have QTouch support - # touch channels implemented as a hardware. Is it true that QTouch library was designed only to work with such MCUs? Can I use it with, for example, 'old' ATmega48? Is ...
12
votes
4answers
356 views

AVR SEI instruction

The AVR SEI instruction (http://www.atmel.com/webdoc/avrassembler/avrassembler.wb_SEI.html) waits for the next instruction to finish before enabling interrupts. If I use another instruction to set ...
0
votes
2answers
39 views

Drive IR LED with maximal power (for IR barrier with max distance)

I'm making a light barrier and working on a "sender" part right now. The main thing I want to achieve is the maximum distance. I'm using Vishay TSSP4038 for receiving signal. In the datasheet it's ...
0
votes
2answers
49 views

CURRENT TRANSFORMER 30A / 5A Interfacing with AVR Atmega32 ADC

I am trying to Calculate Current of 1HP Motor uses with Motor Starter Box. Initially when Motor is started i can see current shoots upto 20-22A on analogue meter in starter box. I want to measure ...
1
vote
2answers
53 views

AVRISP mk2 clone can program Arduino Uno, but not stand-alone ATMega328P

I have an AVRISP mk2 knock-off that I can't get to work. Scenario 1: AVRISP mk2 clone vs. Arduino Uno: works If I take an Arduino Uno, and plug the 6-pin ICSP cable of the AVRISP onto it, one of ...
1
vote
1answer
50 views

Calculating the correct BAUD for the ATMEGA168A

What is the correct way to set the BAUD when programming an ATMEGA168A? The code below works fine, however I don't know exactly what to do in case I decide to work with a higher BAUD such as 9600: ...
0
votes
1answer
82 views

Oscilloscope as monochrome bitmap image viewer [closed]

Iam a beginner in arduino and other open source platform programming and I came across a DIY project which involves using oscilloscope as an image viewer,but this project involves ATmega16 AVR IC1 ...
3
votes
3answers
80 views

is there atmega 128 basic circuit for every project?

This is my first Atmega project so I have following questions: Do I have to connect all those gnds and vcc's? In programming I used Vcc Reset Gnd Tx Rx SClk of USART0 is that okay? I didn't used ...
0
votes
1answer
37 views

Can I generate pulse with timer1 in normal mode in ATmega 2560 using TOV flag?

Timer have CTC and PWN for generating pulse. However if I want to generate pulse when timer reach its max level then using CTC or PWN is somehow not needed when the TOV is set whenever timer ...
0
votes
1answer
194 views

Simulating TFT LCD (ILI9341) With Proteus V8.3

I am using Mikrobasic for AVR, and Proteus V8.3 ,So i have wired my circuits as you see in this picture: I modified it in Proteus with one IC Atmega128 as you see in this picture: and i used this ...
-2
votes
1answer
61 views

Writing fuse-bits with HV programmer doesn't work

I bought 40 attiny13a chips from china but after receiving them, I couldn't program them with my USBasp programmer. I tried all of them with the same result - chips did not respond to the programmer. ...
-2
votes
2answers
83 views

Understanding c code of microcontroller

I am trying to build an automatic plant watering system using ATmega16. The following is the code fragment we used: ...
0
votes
1answer
79 views

Getting a stable value from sensor?

I am working with Omron Pressure sensor D6F-PH . When i try to read the pressure value i am unable to get a stable value. I tried averaging but even that doesn't help. Could somebody suggest me a ...
-1
votes
1answer
69 views

Can timer2 control the pin “oc0” in ATmega32a?

On a board the input of a PWM controlled device is tied to the pin oc0 of an ATmega32A and it's not changeable (it's a PCB). Timer0 is busy and can't produce PWM to ...
1
vote
3answers
111 views

Audio PWM on atmega644

I'm trying to generate audio through a 3.5mm jack using an atmega644. I tried following this tutorial, but even with the sampling provided, I only get a high-pitched whine. I did a lot of reading in ...
0
votes
1answer
101 views

automatic plant watering system using microcontroller

I am trying to build an automatic plant watering system using ATmega16. We are using moisture sensor YL69 for our project. The following is the image of the moisture sensor we have used. The ...
1
vote
1answer
46 views

Using AVRDude to program AtTiny via Arduino-as-ISP

As I understand, I can use Arduino as ISP. Most instructions start with "load ArduinoISP from examples". But then I want to load existing .hex file to the target ...
0
votes
3answers
74 views

Interfacing 62256 SRAM to low pin-count AVR via latches

I need to add over 20 kBytes of RAM to the small device built around ATMega8. Moreover I'm interested to research whether I can substitute it with ATtiny2313. The goal is roughly speaking to store ...
-1
votes
1answer
39 views

RangeFinder with SRF05(code only run once)

I want to make some LED blink if the range is in range.for example if the range is between 100mm and 300mm turn the LED on PortB,pin1.but the code only rune once and then micro stops working... here ...
0
votes
1answer
35 views

Is it possible to get two low-voltage interrupts pins on a Atmega328?

Caution: Noob at work :) I'm trying to get one of two 1.5V-2V signal inputs to trigger an interrupt routine on an Atmega328 (Doc PDF). By using the analog comparator interrupt, I gather I block the ...
1
vote
1answer
54 views

Hold Up for Power loss of 10ms

I'm using ATMEGA644 in a measurement circuit. I'm providing the primary supply from a battery + boost regulator and if/when the voltage (the one that I have to measure) is available I want the supply ...
0
votes
1answer
56 views

Atmel AVR - Integrated programmer onboard

I'm pretty new in microcontroller programming. But i wounder, I'm designing a circuit with Atmel ATUC256L3U, the cicuit is going to be used to home automation. The microcontroller is going to be ...
1
vote
0answers
32 views

Dumping SRAM contents of AVR8 XMEGA with JTAGICE3

How can I dump the current contents of the SRAM of a running AVR8 XMEGA processor over JTAG (or PDI) using the JTAGICE3? (It is okay if the processor resets after the SRAM has been completely dumped.) ...
5
votes
2answers
282 views

AVR - Is the datasheet of the Atmega32 wrong? Timer1

I'm currently using an Atmega32 to keep time, so I carefully read the datasheet and configured the Timer 1 to generate an interrupt each second. According to the following formula on the datasheet, ...
1
vote
1answer
43 views

AVR Atmega164P UART / ISP programmer problem

I am having a problem with the USART on an Atmega164P. When the ISP programmer is connected everything works fine. If I disconnect the programmer then all I get is garbled serial and the chip won't ...
3
votes
1answer
45 views

Low speed device is recognised as full speed (USB tiny-like AVR isp programmer)

I recently tried to replicate the setup proposed in this instructable. Everything is fine until I hook up the device into (any of) the USB ports. Then, dmesg on ...
0
votes
1answer
40 views

Unusual servo reaction

I'm using DIY pwm-generator based on attiny13 to control servo. Pulse cycle is 37 Hz, pulse width is ~540us - ~2400us. Servo rotates correctly but on stationary positions it's vibrates (gears try to ...
0
votes
2answers
115 views

Interfacing LDR with atmega32

I have to make LDR based light switch that turn on lights in per-defined light condition. To do this I have to use atmega32 Micro controller. I follow some tutorials and write some codes. the code ...
1
vote
1answer
44 views

ATmega48PA power consumption during EEPROM write

PLEASE, PLEASE! My question is about power consumption of the CPU during EEPROM write NOT about the power supply! PLEASE! Thank you! I have a device (ATmega48PA) powered through a 150k resistor ...
0
votes
1answer
54 views

How to clear lcd with a push button in atmega32

i write this code for atmega32 in which PORTD is out put to the LCD and PIN0 of PORTA is an input which i want to active with a ...