A series of Atmel microcontrollers.

learn more… | top users | synonyms (3)

3
votes
1answer
66 views

PIR sensor triggered by itself when using timer, works without timer

TL;DR A PIR sensor is triggered by itself when using a timer to wait 2 seconds after the sensor is triggered. Without using the timer to wait the sensor works as expected. Background and setup I ...
1
vote
0answers
20 views

Adafruit SSD1306, I2C, ATmega1284p: OLED Display askew/misaligned

Another strange problem here. The setup: Adafruit SSD1306 OLED board connected to an ATMega1284p via I2C. Since I "upped" my 1284 to 8MHz (which I needed to to reliably talk to my temperature ...
-2
votes
0answers
42 views

Sampling anf FFT of real time signal [closed]

I am an amateur. I need to take FFT of a real time signal and then compute the frequency corresponding to maximum coefficient how should i proceed ?
3
votes
0answers
40 views

Programming an ATmega1284p with Arduino IDE and internal RC Oscillator?

I'd like to program an ATmega1284p with my AVR Dragon and the Arduino IDE. So far I have installed mighty1284p (http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/), after writing my ...
1
vote
2answers
90 views

Arduino Nano v3 atmega 328p avrdude: stk500_getsync(): not in sync: resp=0x00

i get this error: avrdude: stk500_getsync(): not in sync: resp=0x00 when trying to upload a example sketch. pin (0,1) are not occupied; it is the right serial ...
1
vote
1answer
33 views

Programming ATMega48 with Arduino Uno

I'm trying to build a circuit that uses an ATMega48 PDIP-style chip and an ATTiny26. I'm stuck on loading code onto the ATMega48 using an Arduino Uno. I've been following these instructions. I got ...
1
vote
2answers
85 views

Power Consumption of Arduino Nano ( Current Draw Low Power )

anyone got measurements of Arduino Nanos power consumption ? It guess it should be less than e.g. of the Uno or Mega as the USB Part only get powered when connected via usb and so does the 3.3 ...
-4
votes
0answers
61 views

What is the source code for CV AVR for LDR? [closed]

I need to interface LDR with micro controller. I use a voltage divider circuit with another resistor and input that into ADC port of micro controller (ATMega8535) The problem now is how to make this ...
0
votes
3answers
122 views

Passing Parameter on ATMEGA128?

I don't understand on passing parameter on ATMEGA128 and AVR Studio 6, I tested this function and working find ...
3
votes
2answers
70 views

Getting rid of ripple from an LCD backlight

I have built a circuit which contains an integrated power supply stepping down mains voltage to 5v through a transformer, rectifier circuit and a voltage regulator. With a couple of smoothing caps the ...
0
votes
1answer
56 views

Error While trying the program my ATMega16a with extreme burner

Whenever, i want to burn the hex file on my chip, always an error message appearrs, Power On Failed Cannot communicate with target chip The programmer i am using is AVR USB programmer, ...
0
votes
1answer
50 views

Can I monitor an ATMEGA406 using an Arduino Uno via SMBus?

I would like to build a small BMS using an atmega406 and then maybe use an Arduino Uno to show information about the cells on a computer or a small lcd BMS = Battery Management System Atmega406 ...
3
votes
1answer
62 views

Storing info bytes in ATmega169PA that remain after reprogramming

Does anyone know if there is a way that I can store 2 bytes of data into an ATmega169PA that will survive re-programming of the device? I would like to store a unique ID into an ATmega169PA that will ...
2
votes
1answer
93 views

ADC of ATmega32

I want to use an ATmega32 ADC in its 4 channel single-ended mode to convert four analog signals into digital (one at a time). I have written the C code but what I cannot figure out is what I should do ...
2
votes
1answer
66 views

Fuse settings in ATmega128 Micro controller

I am working with ATmega128 board. The datasheet states ATmega128 is by default shipped in ATmega103 compatibility mode In ATmega103 mode, the MCU both serial communications cannot be used and ...
2
votes
2answers
118 views

Arduino w/ Atmega328: can't clear the watchdog

I'm using the onboard software watchdog facility of an Atmega328 like documented here. My purpose is to limit to 2 seconds the execution of a portion of code that could lead to endless computation. ...
1
vote
1answer
37 views

How to flash error if a macro is not defined in program

I want my program to flash compile time error like "LCD_PORT not defined" if it is not defined in program itself. For that I modified the header file like this ...
5
votes
1answer
48 views

How should I power my permanentified project?

I have transferred my project from an Arduino to a microcontroller. I want to make it into a permanent installation; for that I need to power it. If I want to power it via a wallwart, what ...
1
vote
0answers
77 views

How to get rid of “Invalid opcode 0x002A at PC=0x004” in ISIS Proteus?

I have used ATmega 8 and have simulated a circuit to use interrupts, when i give an external interrupt i.e. when a push button is pressed all the LEDs connected to PORTB supposed to be lit up, but i ...
5
votes
1answer
41 views

How do I transition from using the Arduino IDE to plain avrdude/make?

Part three of a three part series on transitioning from Arduino to a plain AVR microcontroller and minimum supporting components (part one, part two) I already know how to use an Arduino as a ...
9
votes
1answer
42 views

How should one switch from using an Arduino as a programmer to an external programmer?

Part two of a three part series on transitioning from Arduino to a plain AVR microcontroller and minimum supporting components (part one, part three) I've seen a lot of people ask this on the ...
6
votes
1answer
155 views

AVR timer speedup on ATmega328

When running at clock prescaler of 64 on ATmega328, one of my timers speeds up for unknown reasons at a particular time in the execution. I am using two timers on ATmega328 to generate the clocking ...
4
votes
2answers
51 views

Can I write a bootloader to Atmega using serial port

There is a really grand price difference between an empty Atmega328 chip and the one with the Arduino bootloader installed. In my country, this difference is 1:3. This means that uploading bootloader ...
14
votes
2answers
29 views

How can I use my SMD Arduino to program a separate DIP ATmega328?

I have an arduino with a surface mounted (SMD) microcontroller: I know how to use a DIP arduino as a programmer for a DIP ATmega328. It's easy --you just pop your microcontroller in the holder. ...
0
votes
1answer
91 views

LCd displaying only cursor but not characters

I am using a 20x4 LCD on PortC of Atmega32. I have disabled JTAG. I am using the LCD library by Newbiehack.com. Till recently everything(chars included) was displaying fine. Then I changed my MCU to ...
1
vote
1answer
97 views

SD card socket with MMC and Atmel

I'm trying to include an SD card slot in one of my designs. The whole SD format seems confused at best, and I can't seem to find a definitive answer to what I need to wire up. Apparently the easiest ...
0
votes
1answer
77 views

microcontroller resetting and hanging problem

I am controlling a 16x2 LCD and a high electrical device using ATmega8l microcontroller but if there appears a spark in AC power line due to high electrical device then my microcontroller goes to ...
2
votes
3answers
151 views

ATmega32 programming without external clock?

I'm using an Atmega32. I want to use an external 16MHz crystal and I'm using a universal programmer (like http://www.kanda.com/products/wellon/VP-290.html). My question is: once I've programmed the ...
1
vote
1answer
94 views

How can I take look inside of the atmega1280?

I want take look at the memory and at the element inside the atmega1280. I compiled Ardupilot sketch and I upload it with arduino. I started avarice with the following command: ...
5
votes
2answers
327 views

AVR interrupt service routine not executing as fast as expected (instruction overhead?)

I'm developing a small logic analyzer with 7 inputs. My target device is an ATmega168 with a 20MHz clock rate. To detect logic changes I use pin change interrupts. ...
0
votes
2answers
60 views

How to block/allow an i2c data signal to pass on to another device

I have three devices which I'm working on and one of them needs to control i2c communication between the other two. Each of the devices is based on an AtMega or AtTiny chip. The Controller (based on ...
0
votes
1answer
59 views

Single FET Bus Switch schematic in EAGLE

I've added a SN74CBT1G384DBV into my schematic in Eagle (which I want to use to enable/disable a logic signal line). Once placed into the schematic there only appear to be connection points for VCC ...
0
votes
1answer
103 views

Arduino mega - best replacement for atmega 1280

I wonder if it is reasonable to replace atmega1280-16PU of a bricked arduino mega board? If yes, does soldering in there a bigger uC make sense? i.e. ...
1
vote
1answer
146 views

Pointer Size using eeprom.h with ATmega328p in AVR-GCC

I am working on a project that randomly reads and writes large blocks of data from EEPROM, based on user input. I have used the EEPROM before, but I never really thought about this. In the operations ...
0
votes
1answer
85 views

Pin numbering of Atmega 168

PCO/ADC/PCINT8 is pin mapping for pin 23 of ATmega 168.Which of these mappings should be included in LiquidCrystal lcd(0, 1, 2, 3, 4, 6); when interfacing ATmega 168 to 16*2 lcd? Can someone assist me ...
1
vote
1answer
86 views

Choosing Resonator for AtMega328P design

The ATMega328P datasheet specifies a load capacitance for a resonator from 12-22pF but the only 2 Resonators that will fit in my design (from Digikey) have 10pF and 33pF internal capacitors. Which one ...
5
votes
2answers
175 views

How to process voice commands using ATmega or Arduino?

For a project I need to start my PC using voice command. I thought to made up an voice controlled system to turn on my PC. As far as I know, when I press the turn on button-2 pin's on the motherboard ...
2
votes
1answer
409 views

Raspberry Pi USB-to-Serial Atmega328

I understand you can create a serial transmission between the Raspberry Pi and an Atmega328 using the GPIO: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=22736&p=293668 I'm interested in ...
1
vote
3answers
97 views

ATMEL 169PA resets with MCUSR = 0

On rare occasions, my ATMega169PA resets with MCUSR=0. What can cause this? I have multiple units (> 500) running the same code and on rare occasions 1 or 2 units will reset with MCUSR=0.
0
votes
1answer
185 views

Arduino printer emulation

I'm working on a project in which an arduino should emulate a thermal printer. I'm currently using an Arduino UNO R3 board with ATmega16U2 controller to handle the communication between USB and the ...
0
votes
2answers
191 views

ATmega168: UART 8 data bits, no parity, 1 stop bit

According to the datasheet I'm setting the UCSR0C register as following: UCSR0C = 0b00000110 Description: ...
5
votes
2answers
141 views

Will checking the backup voltage on an RTC drain it's backup battery?

I'm working on an ATMega project that will be keeping time and I'm trying to make it so you have an option of either software time (millis() based), DS1307, or DS3231 (ChronoDot) RTCs. At the most ...
7
votes
2answers
263 views

Any reason not to use Timer0 on AVR?

Just a basic question... For arduino/avr/ATMega328 I find lots of examples using Timer1 (there's even a whole library for it) but rarely any that utilize Timer0 (or Timer2). Now, I know that using ...
1
vote
3answers
259 views

Dimming multiplexed LEDs

I'm multiplexing 32 LEDs in a 4:8 configuration on an ATMega328 and am trying to dim them with what is probably a completely naive understanding of PWM. Note: I'm multiplexing them directly with 12 ...
-1
votes
1answer
199 views

Flash atmega 8u2 on arduino mega with another arduino mega as ISP

[For a detailed post of my problem read here] Long story short: My Arduino mega 2560 works fine (I plug it in, code runs flawlessly) except for the usb-serial converter which when connected to the PC ...
2
votes
2answers
116 views

How can we alter a single pin of ATxMEGA128?

this might be a basic question but I did try searching for the answer before posting the question. So, I am trying to set one of the ports to output. I used ...
3
votes
2answers
220 views

Piezoelectric Sensor and the ADC

I would like to hook up a piezoelectric sensor to my ATmega8 microcontroller via its ADC. The reason being is that I would like to use the sensor as a force sensor. I noticed that the harder I press ...
1
vote
1answer
232 views

How to use watchdog timer in ATmega128

I am working with an ATmega128 and need to reset the microcontroller after some 10 seconds has passed and the user has not interacted with microcontroller. As an example when the user has not pressed ...
-3
votes
1answer
225 views

Programming 3.3v ATMega328 running at 16MHz [closed]

I know that running the 328 with 3.3v at 16MHz is "overclocking" it and slightly out of spec. Because of limited board space i'd like to do this though as all other components are 3.3v. I need the ...
1
vote
3answers
315 views

AVR Button Interfacing

I am a beginner of the micro-controller and I have the kit for AVR. I am currently using an ATMega16 to learn the basics. I have tried a few simple experiments with this micro-controller using LED's. ...

1 2 3 4 5