All Questions
434
questions
1
vote
0
answers
48
views
SSD1306 display goes out-of-sync only if ATmega328 is reprogrammed
I have ATmega328 directly connected to the SSD1306 Display through I2C. Whenever I power up the ATmega, everything works great and the display works as expected.
The problem occurs only when I upload ...
0
votes
1
answer
47
views
How to increase the Atmega32A input output pins
I’m using ATmega32A to control a system which have a 30 outputs and 30 inputs. The issue is that the ATmega32A have only 32 DIO pin which can be use as input output pins.
So how can I increase the ...
0
votes
2
answers
79
views
Can I treat the USB controller in the ATMEGA8U2 as seperate from the rest of the microcontroller?
I'm working on a project that runs on a battery, but can be connected to a computer for a serial connection/charging. In the documentation it lists an example of a bus powered USB controller with ...
1
vote
1
answer
94
views
ATMega328p wakes immediately after sleep
I'm having issues with my current AVR-C project that runs on an ATMega328p. After issuing the sleep command the chip wakes up again immediately.
I want to wakeup with an external interrupt, but while ...
4
votes
1
answer
649
views
AVR code disassembly - what is this code doing?
I have read and disassembled the code from an Atmel8 microcontroller from a faulty oscilloscope.
This is the start routine:
...
0
votes
2
answers
59
views
Driving 10ch outputs with 5V AVR
I use a 5V AVR (ATmega1284p) to measure some data. Depending on the data I would like to switch one of 10 outputs.
Each of these outputs should have a LED (as an indicator and for debugging purposes) ...
4
votes
3
answers
428
views
Are ATmega48/168/328 suitable for automotive applications?
I'm trying to figure out if it's ok to use ATmega48 in a homemade project involving some safety-related aspects with moving vehicles. (the project will be a control board for excavator joysticks)
...
1
vote
1
answer
51
views
Could an AVR ISP connector be reused to add SPI-Interfaced memories without programing the controller?
I have no previous experience designing AVR-Compatible hardware.
I have a board which uses an ATMega 2560 and has a SPI bus which is already used by a SD adapter. After some datasheet reading, I ...
0
votes
0
answers
109
views
Can't read RGBC data from TCS34725 RGB Sensor using AVR and Atmega16
For my project, I need to read the RGBC data from a TCS34725 RGB Sensor using the Atmega16 and AVR. It should be able to classify between the colors Red, Green, Blue and Clear light. Therefore I made ...
0
votes
0
answers
59
views
Changing External Crystal of ATMEGA2560
In new project I'm working on I changed 8MHz external crystal of ATMEGA2560 to 16MHz Now UART and I2C are not working. What all changes needs to be done to make this work?
0
votes
0
answers
98
views
AVR adc multichannel isn't reading properly
this is a code I made to get reading of 3 ADC channels , I am using the ADC interrupt auto trigger , the first channel works well but after that the readings are weird , I am using potentiometer , so ...
0
votes
0
answers
112
views
Why is my code working in proteus but not when burned into chip?
I am using atmel chip and I have a problem with the code, I guess. Trying to make automatic light system. I am working with two IR sensors that should detect a person entering and leaving the room. I ...
2
votes
2
answers
561
views
How to do a factory-reset on an AVR micro-controller?
I'm programming an ATmega32 chip, and have set some bits as 1 in some DDRs and PORTs. In case I forget what bits I had set to 1, is there a way to set all the register bits to a value(1 or 0) that was ...
0
votes
2
answers
100
views
Why is this DC motor control software not working? [closed]
I want to control a DC motor with an Atmega16. I have connected a motor driver to port B pins PB0 and PB1. When I try this code, it works great.
...
3
votes
2
answers
2k
views
ATMEGA328P reset circuit, not pulling down fully
Attached is the schematic of a reset circuit. When I press the reset button, the voltage on the reset pin is 2.5 V. Rmoving R13 naturally solves the issue, but I'm unclear as to why the ...