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

0
votes
1answer
35 views

Sending info from python to avr-c

okay so my situation is that i am working an avr chip which is the atmega 328p and what i want to do is i want to lets say have a user input in python lets say the user types in a string and from ...
0
votes
1answer
14 views

AVR ATmega644p: can't clear OC0A pin on CTC mode

I made an IR blaster for controlling TV (on and off) based on ATmega644p. I am using Timer0 in CTC mode to generate 38kHz waveform. This is the code: ...
0
votes
2answers
40 views

AtTiny45 read lag?

I have set up 2 AtTiny45 setup like this (The left one is also connected to power): from which one (the left one) is generating a signal which is (when measured) looking like this: The second one ...
0
votes
2answers
32 views

How to send string in serial communication in AVR-C

So as the title states, instead of sending a byte of information at a time, I would like to be able to send a whole string. What I tried to do was that I tried to put the user input in an array and ...
0
votes
0answers
10 views

Does the ability to program a servo imply that the Lock Bits were not set on a Atmega48?

I'm wondering is how this servo programming business works: The servo (HS7980) has an Atmega48 chip and uses a proprietary protocol for programming so it seems pretty likely they lock it to prevent ...
1
vote
1answer
44 views

Emulating greyscale on a 1-bit LCD

I have an LCD (the DOG-M 102x64, with a uc1701 controller) that I am driving (over SPI, but that's somewhat irrelevant) from an AVR (ATMega16 @ 8 MHz) - all in all, a fairly low spec'd screen with a ...
0
votes
0answers
33 views

toggling a pin using the hardware compare feature of timer1 AVR

This link - says: "In CTC mode, you can also trigger interrupts, but it is also possible to not use interrupts and still toggle an output pin. Using it this way, the functionality occurs ...
0
votes
1answer
66 views

One wire (+GND) serial communication. How to have a correct coupling?

I'm a firmware developer more than a hardware designer. I've a doubt about an idea of mine. I want to obtain serial communication between eight ATtiny85 (slaves) and an ATmega168 (master - It might ...
1
vote
1answer
45 views

UART: two transmitters, single slave

simulate this circuit – Schematic created using CircuitLab My circuit is shown above - where I have the TXD pin of an ATMEGA connected to the RXD pin of a BT slave. Both devices operate ...
0
votes
2answers
150 views

How to control 200 relays with micro controller?

I want to control 200 relays, I want to use AVR controller. Because I am out of pins, I was thinking of connecting the micro controller (for routines and such things) to a FPGA and use the output of ...
-2
votes
0answers
24 views

Serial Camera Modules [closed]

I would like to integrate a serial camera module for time lapse photography in my next project. However since this would be my first involving a camera, I'm not sure which one to buy. I tried ...
0
votes
2answers
37 views

AVR programmer power supply (ISP ATMEGA16 ATmega32 Minimum Board)

In description of an AVR programmer, it is talked about everything except for the input voltage and how to turn it on. How much voltage should I apply to it? Somewhere it has mentioned "DC-005 Power ...
1
vote
1answer
30 views

Valid use of ISR_NOBLOCK

I am using two timer interrupts: TIMER0_OVF triggered every 12 ms, with its ISR only polling a pin, conditionally setting a flag and incrementing a value, so it ...
0
votes
2answers
52 views

AVR-C turning led off after number of blinks with interrupts

so what I am trying to do is that I am trying to make the led blink for a certain number of times before it turns off. I want to avoid using delays so I tried utilizing the interrupt and I also used a ...
1
vote
1answer
42 views

Migrating from the ATMEGA8 to the ATMEGA88PB

I have a simple project that only requires the UART i/f of ATMEGA8, running off 8MHZ internal RC oscillator. I have the DIP package version of ATMEGA8 and things are working fine. I have code compiled ...
0
votes
1answer
34 views

Attiny10 not triggering timer overflow interrupt while simulation (Atmel Studio 6)

I have problems simulating the timer overflow in Atmel Studio 6. The code is for an Attiny10 and looks like below. As far as I know I set all the neccessary bits to enable the counter (which works in ...
0
votes
1answer
59 views

High frequency SPI-like communication: is there any hardware allowing software tweaking?

I will need to communicate with a device using serial protocol mostly similar to SPI but with several changes: Data packet can has any bit length (e.g. 35 bits) Stop sequence formed by lack of ...
0
votes
1answer
46 views

File transfer between two gsm modem

I'm wanting to build a system that will store value on a SD card to form .CSV file , that this is not a problem. There will be about 1000 value recorded daily.I'm wanting to send this values to a pc ...
3
votes
4answers
106 views

AVR [ Why IO Registers have IO addresses and SRAM Adresses ]

I was checking ATMEGA16 datasheet , and at pg17 I found that there is the IO registers that happen to have " IO addresses and SRAM addresses " , I don't know which we use and why there is two kinds ...
1
vote
1answer
43 views

Best way to compare value in register with constant assembly AVR

I am newbie in assembly and AVR, I wonder what is the best way to compare two values like in C ...
2
votes
4answers
289 views

Understanding interrupts and software button debounce

I'm quite new to AVR programming (avr-gcc). To react on button-press, I am using a PCINT ISR with the internal pull-up resistor enabled like this: ...
0
votes
1answer
36 views

Stop timer set new value and start again AVR (Interrupt)

I have AVR MCU. I am playing with timer now. What I need ? I have timer counting up with some frequency. In each interrupt I am incrementing variable, and somewhere I need to check value of this ...
0
votes
3answers
61 views

AVR single coil latching relay

I need to control several 5V single coil latching relays. The specific part has a coil current of ~20mA. The ATMega's datasheet claims a maximum pin current of 40mA. Is there a reason I cannot simply ...
0
votes
0answers
34 views

Modify the call stack of interrupts on Arduino [migrated]

I'm working with Arduino's libraries. And my interest in the possibility to change the call stack of the SPI interrupt, this because I want: after the interrupt happen, the program could jump to other ...
0
votes
0answers
7 views

TSOP1738 IR False Triggering / Noise

Have been trying to figure out why the tsop1738 connected to my AVR is false triggering. When my circuit was not responding to the IR commands sent through the remote, I connected a logic analyzer to ...
0
votes
1answer
30 views

Acquiring and fusing data from different controllers

TL;DR: What are some options to fuse data acquired with separate controllers? I'm developing my own IMU for a quadrotor. My inputs are an accelerometer, gyro, magnetometer, and barometer all via I2C ...
0
votes
0answers
22 views

What header file replaced <avr/io.h> in the Atmel ARM processors?

I am not interested in using ASF. Is there a header file that is used to set register bits as you do with AVR besides using asf.h?
0
votes
3answers
60 views

How to get equal number of clock cycles before ISR on an AVR

While writing a time critical piece of code for an Attiny13, I figured I could use the rising edge of an input as a trigger to read in some self clocking data. However, the number of clock cycles ...
1
vote
1answer
43 views

Capacitor Touch switch with QTouch

I have been working on QTouch Implementation for ATmega32 Micro controller. I have taken reference from here. I'm facing issue with grounding Problem. For debugging process I am displaying the result ...
0
votes
1answer
14 views

Qtouch lib on the ATXMEGA32A4U-MH

I have a project with the ATXMEGA32A4U, in which I want to use the Atmel lib Qtouch , the problem that I have is that the controller doesn't support the Qtouch Hardware, but when I saw the other uC ...
-5
votes
1answer
66 views

AVR BASED USB OSCILLOSCOPE [closed]

I want to create a simple oscilloscope that uses an AVR microcontroller to take the input and provides the data to the computer through the USB port. The data is to be analysed by the computer. Can ...
-3
votes
1answer
64 views

AVR 60Hz periodic interrupt [closed]

How can I configure an AVR microcontroller timer to generate periodic interrupt events at 60 Hz rate, using 14.745 MHz system clock?
2
votes
1answer
68 views

Avr multiple ADC and PWM channels

I've been trying to make a program that would continuously read analog values from 3 different pins and then make a PWM signal corresponding to each of those 3 pins. So basically, 3 output PWM ...
2
votes
2answers
72 views

Multiple AVR Projects Sharing Code - Managing Large Projects

I'm working on a group project that is based around designing an automotive CAN bus system. Essentially there are multiple different nodes on the bus, acting as sensors, displays, controllers or ...
0
votes
1answer
73 views

can i use atmega328p without arduino just using it in breadboard for projects

I am thinking of using atmega328p for a project so can i use it without using arduino board, just in breadboard and use other programmers to burn and use atmel studio and c to program it. Is ...
0
votes
0answers
29 views

inductive proximity sensor (PR18-8DP2) driving circuit for avr

I have project that i am going to detect aluminum from about 1 centimeter with inductive sensor but actually i don't know how can i connect its output to atmega32's ADC. Do i have to reduce the ...
0
votes
3answers
69 views

Delay function using timer/counter 1

i have made a function called _MY_Delay() which use 16bit timer/counter1 in ATMEGA16 , and used this function to blink a LED . the problem is i didn't work and i don't know the reason , here is my ...
0
votes
1answer
25 views

LPM equivalent for ATtiny10?

I would like to load some data from the program memory (e.g. a sine table) on my t10. Like on other AVRs the lpm command is for that purpose but it seems not to exist on the t10. I saw this crazy ...
0
votes
0answers
101 views

Burn Micronucleus bootloader to use ATtiny85 via usb (avrdude)

I am working on an ATtiny85 usb development board, and I need to flash the Micronucleus bootloader on it. I have heard that this bootloader allows the ATtiny85 to be programmed via usb from the ...
0
votes
0answers
97 views

MPU6050 DMP values read

I am using MPU6050 breakout board IMU along with ATtiny2313 microcontroller to get the accelerometer and gyroscope values from the IMU. Here's the question : I want to know what values are computer ...
0
votes
1answer
53 views

Basic AVR flashing LED program is not working

So I have begun with projects using AVR microcontrollers. A few months ago, I got one of these to simply flash an LED but I accidentally cooked that one with a bad power supply. Now I got some new ...
0
votes
1answer
71 views

Receiving a whole string from USART on ATMEGA16?

I am trying to receive a string from USART but failed , i want to receive char by char and store them in an array until the user enter '\n' and finally display the string to LCD , here is my code: ...
0
votes
1answer
31 views

serial data from avr to python

I am using ATtiny2313 microcontroller along with a RS232 to establish communication between my microcontroller and the laptop. Here's my question : What is the predefined system for the laptop to ...
0
votes
1answer
51 views

How to choose the best ADC clock?

I am using atmega16, and i need to use ADC feature in my project. As i know that there is a formula to set flag register ADPS2, ADPS1, and ADPS0. Which is it is used for determine the division factor ...
0
votes
2answers
66 views

Noise reduction in SPI

I've been working on a project to interface ENC28J60 with an ATmega16A µC. For the sake of debugging I have built a board with UART capability so that I can view the register values of the Ethernet ...
0
votes
1answer
39 views

what is the digital communication format that the bluetooth module communicates with

I am using ATtiny2313 microcontroller along with a bluetooth module(HC-05) to communicate with my laptop. Heres my doubt, How does the bluetooth module communicate with the laptop. i.e. what is the ...
1
vote
1answer
73 views

Program an ATTINY85 on the PCB is causing me some trouble

I'm having a hell of time getting AVR ISP header on my circuit board to actually allow me to flash the chip. Basically, with an ATTINY85 you pretty much have to share programming pins with pins used ...
0
votes
1answer
23 views

avr python serial communication all data \xff

I have an ATtiny AVR imicrocontroller connected to HC-05 bluetooth module via USART(TX and RX) of the microcontroller. The microcontroller is sending constant data (for right now) to the bluetooth ...
1
vote
0answers
67 views

Very high frequency out of SPI pin in ATmega16A

I was trying to interface ATmega16A with ENC28J60, and I was facing problems with it, so I decided to physically look at the signals b/w the master µC and the Ethernet chip using an oscilloscope. But ...
1
vote
3answers
67 views

Using change in magnitude of accelerometer to calculate speed?

I have a wheel (say 60cm in diameter). And I am planning to attach a small board with an AVR and an accelerometer about 10-20cm from the centre. As the wheel spins, I will get acceleration outwards. ...