Tagged Questions
1
vote
1answer
57 views
Multiplexing AVR (ATMega328) PWM within Interrupts
I'm trying to take 3 common anode RGB LEDs and hook up the cathodes of each to three of the PWM outputs on an ATMega328p and then in an ISR, multiplex between them all. The problem I'm running into ...
3
votes
1answer
59 views
what is an avr programmer for arduino?
I'm a beginner with Arduino . I'm reading a book called practical avr microcontrollers. Games gadgets in home automation with the microcontroller used in the arduino
From the beginning the book ...
0
votes
0answers
34 views
arduino mega end eclipse communication error
I have arduino mega and a working project on eclipse.I can not communicate with avrdude.I get error at the read of the mcu signature.
I have used all programmers (arduino,stk500v1 and v2) at 57600 and ...
1
vote
1answer
52 views
Using the Arduino SDK with any AVR?
If I grab any Atmel AVR-based microcontroller off the shelf, will I be able to write code for it using the Arduino SDK?
3
votes
0answers
70 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 ...
3
votes
2answers
121 views
Use PWM and ISR at same time on AVR
Is it possible to use AVR PWM outputs and ISR interrupts at the same time?
I've got a project I'm trying to do on an ATMega328P and I need 3 PWM outputs but ALSO need to be able to use ISR interrupts ...
0
votes
0answers
29 views
avrdude - stk500_cmd(): programmer is out of sync [duplicate]
I am trying to upload a hex file using the ISP sketch on my Arduino to use it as a programmer to program my ATtiny85, but I keep getting error messages from avrdude. After some researching I figured ...
1
vote
0answers
100 views
avrdude error - stk500_paged_write() protocol error
I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this ...
1
vote
2answers
169 views
avrdude error - stk500_getsync(): not in sync: resp=0xff
I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this ...
-3
votes
1answer
110 views
Is there a non-gas assembler for AVR for Linux? [closed]
I need to do an entire project in mostly-time critical code. Using assembly seems like a good idea. I've seen quite a few example assembly files and such which have an "Intel" feel to them. I know ...
3
votes
1answer
14 views
5
votes
5answers
363 views
Microcontrollers - Beginner questions
How do you determine how many sensors a microcontroller can use?
My understanding is you can't use C# directly on any microcontroller but you can use C# and communicate over the USB and look for a ...
1
vote
1answer
178 views
Unable to upload arduino sketch to Uno using AVR ISP MKII and Ubuntu 12.04
About a week ago, I tried to use my Arduino Uno to program a a standalone atmega328p with optiboot. Not only was I unsuccessful, but now I can't upload sketches to the original atmega chip. The "L" ...
5
votes
2answers
40 views
How can I control things without using delay?
I have always hated that you couldn't do other things while you used the delay(); function. However, I want to blink a LED or do whatever while using serial, but ...
2
votes
2answers
141 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
2answers
138 views
AVR AtTiny84 is stuck on 128kHz clock, avrdude + Arduino as ISP can't reach it
While experimenting with the power consumption of different clock rates by setting fuse bits, I seem to have irreversibly programmed an ATTiny84 chip to the 128kHz internal oscillator, and now avrdude ...
4
votes
4answers
212 views
ATtiny2313 refuses to be programmed after setting CPU clock to 500kHz
The other day I was writing a program for an ATtiny2313. Once it worked I decided to test it at the various clock speeds that are available and programmed through setting the LFUSE as described on ...
1
vote
0answers
198 views
ATTiny 85 + shift register + ir sensor
I had the ATtiny working with the shift register, but when I added the IR receiver to the code the shift register did not work as desired.
I have a shift register connected to 8 LEDs and controled by ...
0
votes
0answers
87 views
v-usb HID button press and release
I'm trying to use v-usb on an AVR to mimic a HID keyboard and I found how to send keys and how to release ALL of them, by calling usbSetInterrupt() with 0 for the key value, but is there a way to ...
0
votes
1answer
92 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 ...
0
votes
1answer
111 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. ...
7
votes
2answers
272 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
votes
1answer
56 views
wireless communication for identification purposes [closed]
I am working on a project that requires me to have a microchip installed on an electronic device and can also be identified by a scanner. The electronic device may be a car, so I need
microchip ...
3
votes
2answers
206 views
When to use an Arduino bootloader
I need to make a robot within a month for a competition. I used to use Arduinos for my projects, but graduated to just flashing code with avrdude to standalone AVR microcontrollers.
I was thinking, ...
0
votes
0answers
96 views
VDIP1/VNC1L: command failed when setting the baudrate for the device
In order to interface a USB device with an AVR microcontroller I'm using an FTDI VDIP1, that is a development module for the VNC1L chip which provides USB host capability.
The USB device that I need ...
2
votes
4answers
279 views
AVR Assembly on Arduino through USB?
Say I wanted to learn AVR ASM, and I had an arduino.
Now i know you can program assembly on the arduino, but is there a way to do it through USB. I assume i'd just write normal assembly and do it ...
1
vote
1answer
344 views
Arduino and embedded C programming in a windows based system? [closed]
I am currently using Arduino Ide to code my arduino but now i want to code my arduino in C/C++ and i dont know where to start from what is the best tools and tutorials suggested for this. I'm a ...
11
votes
3answers
450 views
How does the Harvard architecture help?
I was reading about arduino and the AVR architecture and got stuck at the point that how does pipeline stall or bubbling is solved by Harvard architecture introduction in the AVR.I mean what Harvard ...
2
votes
3answers
1k views
Communication between a USB/serial device and an AVR (atmega/Arduino) microcontroller
I have a device which provides a USB port. If I attach it to a Windows PC it is recognized as a "CP2103 USB to UART Bridge Controller". According to the device documentation, it should communicate in ...
3
votes
1answer
176 views
PROGMEM data vs. calculated data
On an arduino project I'm working on (ATMega328 at the moment) I have a bunch of vector distance data that I need to use for various pixels in a matrix.
It's a relatively simple calculation:
...
2
votes
2answers
209 views
Similarity between Atmega162 and Arduino
I am going to be taking an embedded systems course where we will be using the Atmega162 and I want to get started learning the stuff before the course begins.Now my question is, considering that there ...
3
votes
3answers
524 views
Trouble in using MT3329 SKM53 GPS module
I bought a SKM53 GPS module a few months ago. I tried hard to make it work but couldn't get anything out of it. I was thinking it's a fault with the device (actually i thought i burned it by not ...
-1
votes
1answer
271 views
Programming a Baby Orangutan using Arduino Uno?
I have the following setup:
Arduino UNO without the chip:
Notice that the Atmel chip is missing.
And i have a Baby Orangutan:
The orangutan burned with Arduino Uno R3 Bootloader.
I connected ...
0
votes
1answer
218 views
Suitable small/fast EEPROM for Atmega328
Looking for recommendation on EEPROM chip, which I can connect to Atmega328. The requirements are:
at least 5-10Kbyte
fast reading with Atmega. I expect reading one word about 1-5us, please advise ...
0
votes
1answer
168 views
Arduino stop RGB fading (3rd party library) at interrupt
Using the following code, the fading process only stops after a full cycle has been run (as predicted). What would be the optimal way to stop the color cycling when the interrupt is called (so I can ...
0
votes
2answers
533 views
Bluetooth module to have microcontroller communicate with Android phone?
Found couple of fairly inexpensive Bluetooth modules based on CSR chipset that do Bluetooth 2.1 + EDR, and connect to uC over TTL, however the cheaper variety supports only "slave mode", which the ...
0
votes
1answer
547 views
Arduino SPI Clock Speed Configuration
I am trying to communicate with a Nokia 1202 LCD with my Arduino using SPI.
The LCD using the STE2007 Controller. As per the datasheet here @ page 12, you find that the min time for SCLK is 250ns => ...
1
vote
2answers
633 views
Arduino UNO Timer issue
i seem to be facing a weird issue here. First time working with AVR timers. Basically what I am trying to achieve is to set timer2 (with prescaler val @ 1024) and use CTC mode (with val 78) to get 5ms ...
3
votes
2answers
1k views
Making two Arduinos talk over SPI
I'm trying unsuccessfully to make two Arduinos talk using SPI.
I found this great tutorial. The SPI Master send a constant string each second to the SPI Slave, which resends to the USART for ...
0
votes
0answers
430 views
Need explanation on how to flash HEX files on ATmega32u4 via AVR109 protocol
I am not an electronic expert, so forgive me if I am misusing the terms in my question or if my question contains imprecisions and/or misinterpretation on how a Leonardo Board works. Corrections are ...
3
votes
1answer
2k views
Arduino's “Upload Using Programmer” for ATmega328 (not ATmega328P)
I am using the the Atmega328 (not the Atmega328P that is standard with Arduino) on a breadboard version of the Arduino. I am able to get the bootloader on the Atmega328 using these instructions. In ...
2
votes
1answer
375 views
ARM or AVR for car system
I just wanted to ask, which platform is the best suitable for a small commercial car system. It will comunicate with our server via 3G/EDGE (upload and download database with points of interest). It ...
3
votes
2answers
1k views
How do I debug a Arduino Uno with gdb on a Linux pc?
How do I debug (source code single step) a Arduino Uno with gdb on a Linux pc?
Please note that I do not like to use AVR Studio in wine or VirtualBox.
Question 1: Physical connection
How and what do ...
3
votes
1answer
176 views
Easiest way to get rid of __clz_tab in winavr compiled code?
I've ported a program from the arduino environment to a makefile build using winavr, which, in turn, is based on avr-gcc (just like arduino).
However, my program started crashing, and after some ...
1
vote
3answers
482 views
Simulating digital and analog inputs on a PLC
What would be the simplest way to interface digital and and analog inputs from a PLC to outputs on an AVR ATmega328? All I need to do is simulate different analog values and digital states.
3
votes
2answers
224 views
Append source code to flash image when programming an AVR
Is it possible for Arduino / ATmega / ATtiny when programming the device to attach the C source code at the end the machine code flash image? That way if I have the device, I can always retrieve the ...
0
votes
1answer
313 views
Write an AVR Program
So I saw a post talking about the commercial feasibility of an Arduino (http://electronics.stackexchange.com/questions/11333/commercial-use-of-arduino-is-it-suitable) . From this it said a great idea ...
0
votes
1answer
636 views
Arduino Blink example does not run after upload from eclipse
I just started with my first Arduino project. I am trying out the Blink example. I have set up eclipse for arduino 1.0 and the code compiles without errors (both lib project and blink project).
I used ...
3
votes
2answers
220 views
Arduino AVR Programing
In the Arduino IDE, what exactly happens when you choose the 'upload with programmer' option to program via a AVR programmer instead of the USB cable? Does it upload just your program, or does it ...
4
votes
2answers
363 views
Moving the code and interrupt locations in Arduino
I need to be able to choose between two Arduino apps running on an atmega 1280 (megaavr) at boot time. Therefore I need to move one of those apps to a different location in program memory, and I need ...
