Questions tagged [avr]

AVR is the family of microcontrollers used in Arduino boards.

Filter by
Sorted by
Tagged with
0
votes
1answer
779 views

Attiny85 not recognized at windows startup

I'm using an Attiny85 to interact with a computer using an USB connection, and everything works fine except when I restart my computer and the Attiny85 is connected. When Windows end to boot up the ...
0
votes
1answer
47 views

What if I detach AVR micro controller from the Arduino Board after uploading program?

What if I detach AVR microcontroller from the Arduino Board after uploading program? Does the microcontroller still have the program on it? Or the program will be deleted? On the board where does ...
0
votes
2answers
177 views

Using Arduino libraries for adding more functionalities to a bootloader

I have a short question to ask before putting time for research. I have an Arduino Leonardo with the LUFA mass storage bootloader flashed. Now what I need to do is to add more functionalities to the ...
0
votes
1answer
142 views

Programming ATMega328p using VP812 programmer (for AVR/Atmel chips)

I bootloaded an ATMega328p (the one that uses the basic Arduino bootloader). Then, I used the VP812 for dumping other programs written in C (in Atmel Studio). The process of erasing, blank test, ...
0
votes
1answer
166 views

Problem with uploading LUFA MassStorage .hex file to Leonardo

I have been trying to make my Leonardo board to work as a USB device. So I started with compiling the open source LUFA USB library demo "MassStorage" for the Leonardo board settings. Since I'm using ...
0
votes
1answer
63 views

Problem with microSD SPI mode in AVR

I'm trying to read a microSD block. But I don't know why it doesn't work. I do: CS_UP; for(uint8_t i = 0; i <14; i++){ /* Send 74+ clocks */ spi_tranceiver(0xff); } _delay_ms(1); /* Wait 1 ms ...
0
votes
2answers
1k views

Arduino uno board not detected when connected via USB no matter what OS

I was working with Arduino in Win 8.1, when suddenly it stopped work. I tried to reinstall the drivers and IDE several times, but it didn't solved. In Win 8.1, when I plug the arduino, I get the pop ...
0
votes
1answer
173 views

Using Atmel Studio with Arduino Starter Kit (Uno MCU)

Can someone tell me if it's possible AND safe to use Atmel Studio with Arduino Starter Kit? I'm a newbie to firmware in general and I don't want to "brick" my Arduino Uno Microcontroller. I don't ...
0
votes
2answers
432 views

BASCOM-AVR stk500_2_ReceiveMessage(): timeout: -1

Arduino Uno R3 Windows 10 Bascom AVR The ON is alright. The LED flickers now and then. The RX and TX flickers when I press the program button on Bascom but then disappears almost immediately. ...
0
votes
2answers
125 views

Programming an ATtiny85

Recently I ordered some ATtiny85's from Jameco, and I've been trying to upload code to them through an Arduino Uno, following the instructions from this video on YouTube. I've been getting a lot of ...
0
votes
1answer
2k views

Error uploading to ATtiny

I followed Great Scott's video on YouTube for uploading to an ATtiny85. When I tried I got the following error messages: Arduino: 1.6.7 (Windows Vista), Board: "ATtiny85 (internal 8 MHz clock)&...
0
votes
1answer
699 views

Timer/Counter programming Arduino

I'm trying to blink an LED on an ATMega328P (same MCU as Arduino I think..) using the internal timer but I'm stuck since it doesn't seem to light the LED at all.... #include <avr/io.h> //#...
0
votes
1answer
200 views

Switching LED on and off using microcontroller

I am new to microcontrollers and just become confused trying to solve the following problem: An ATmega32 chip is connected to four on/off switches (SW0-SW3) and 4 LEDs (LED0-LED3). SWi is connected ...
0
votes
1answer
244 views

How to upload Arduino sketches to Atmel chips

I am new in this Arduino coding world and I was trying to make a project. I normally used Arduino Unos all the time, but I was facing a problem and that is that the Arduino Uno has only 13 digital ...
0
votes
1answer
251 views

AVR+Arduino ADC problem

I have connected a circuit to analog pin 0 in the Arduino.I have this code ,which I understand partially(online resources).The problem is that it prints nothing neither on Tera Term nor on Cool Term ....
0
votes
1answer
482 views

ATtiny461 PWM CTC mode help

I am a beginner at AVR and programming. I am using ATtiny461 and asked to make code to use timer in PWM and CTC mode and use interrupts and pin toggle, this code worked for me with normal timer and ...
0
votes
1answer
2k views

Arduino Attiny 85 IR library compiler error

I'm about to ask a question for the most common problem which everyone has with attiny85 and the IR library. I will try to make this question as simple as possible. Few things about the lib and the ...
0
votes
1answer
3k views

AVR Timer1 OCR1A controls TIMER1_COMPB_vect interrupt!

I was struggling with timer interrupts in my project. I couldn't make it work properly. So I decided writing a simple code and I saw a very interesting case. ISR(TIMER1_COMPB_vect) { PORTB ^= ...
0
votes
2answers
579 views

Use Arduino Uno to program the on-board Atmega328 in C

I have an Arduino Uno board. I have seen how it is possible to program external AVR's through the Arduino Uno board, for instance an ATtiny. But I'm starting with c for atmel µc and I just want to ...
0
votes
1answer
162 views

Which Arduino is compatible for atmega164pa

I am working on a project using 5 pins of ADC, 5 pins for PWM, and LCD. I need to use Atmega164pa. I would like to know how I can transfer it to Arduino. Is there any Arduino compatible with this chip?...
0
votes
1answer
102 views

Arduino-like boards with other microcontrollers

Are there any Arduino-like board designs that are NOT using an AVR chip, but perhaps a chip like the Z80 or the 6502?
0
votes
1answer
2k views

Driving conveyor belts using Arduino Unos

We are planning to drive conveyor belts with Arduino Unos using stepper motors. We are planning to use easy drivers, so that we control at least 3 motors with one Uno. Currently we are still at an ...
0
votes
1answer
59 views

AVR ATmega328p-pu operating circuit?

I used to work with PIC micro-controller so i know what it needs to work from operating circuit to crystal oscillators needed and other components to power it up , my question here where can i find ...
0
votes
1answer
2k views

Arduino Mega 2560 as ISP for ATTINY2313 / ATMEGA328P

I have posted this on the Arduino forum also, but I give it more chance if posted here also. I've been trying to use my Arduino Mega as an ISP for programming two different ATMEGA328P's and a ...
0
votes
0answers
65 views

how do i convert to assembly code (AVR assembly) from arduino

i have code in the Arduino ide for a temperature sensor that shows the temperature on three 7 segment displays, it shows the temperature to one decimal point. using an arduino uno. I am struggling to ...
0
votes
1answer
137 views

Atmega328p Uploads via ISP but not bootloader

I'm trying to upload a bootloader to my atmega328p on a custom pcb containing external oscillator at 16MHz. It is possible to upload program via ICSP pins using Arduino as ISP (Official Arduino Uno) ...
0
votes
1answer
544 views

Uploading Firmware to Atmega1284p using ESP8266 with AVRISP as programmer

I am trying to flash a new Firmware to my Ender 3 Pro. I am using the ESP8266 as an ISP via AVRISP over Wifi. I have a 10mF capacitor between the ground and reset of the ESP8266 I followed this ...
0
votes
0answers
267 views

Standalone Programmer

I am trying to make my small stand-allone programmer to work using this code: https://github.com/adafruit/Standalone-Arduino-AVR-ISP-programmer But when I hookup everything and press button to flash ...
0
votes
1answer
358 views

How to scroll data in LED dot matrix through multiple modules?

I've been struggling in this issue for a long time, I know there are people who have done it. But, I don't have much experience in C to have the skills to design or develop such complicated functions....
0
votes
1answer
216 views

I2C begginer with I/O expander with mega328p C code

I've just started with the I2C protocol. I read about it in the datasheet, other documents, blogs and videos. So, I started to develop my code and I think I did my first success, I succeeded to send ...
0
votes
0answers
24 views

Programming ATUC256L4U using only Arduino ISP

I heard that you can program any AVR Microcontroller by just using Arduino ISP Can I program ATUC256L4U by just hooking it up to Arduino ISP and Caps, Crystals and etc. Or do I need to do some more ...
0
votes
1answer
281 views

Porting ATMega8 AVR based program to Intel Curie Processor

I'm currently trying to port a program called 'ArduinoUSBLinker' to work on my Arduino 101 (which has an Intel Curie CPU instead of the standard ATMega CPU). The program is used to flash ESCs without ...
0
votes
1answer
48 views

IO Control and Configuration

I am using Eclipse to program a ATMega2560 and would like to stay away from the Arduino library, While looking through AVR Examples I have seen the syntax #include <avr/io.h> PORTD.0 = 1 or ...
0
votes
1answer
344 views

Arduino W5100 AVR

I'm trying to use a W5100 Arduino Ethernet Shield on a ATMega2560 using avr code. There exists a library written in C, which should work http://www.seanet.com/~karllunt/w5100_webserv.zip from http://...
0
votes
1answer
276 views

AVR has no vprintf_P?

Well this was unexpected. AVR libc has many the variants of printf, including vprintf, but is missing vprintf_P. Is this really just not present or implemented elsewhere?
-1
votes
1answer
1k views

What Are The Differences Between Arduino Language and Standard C for MCU? [duplicate]

What the differences between Arduino language and standard C used for MCU programming (like AVR).I heard Arduino language is C.What happen if i use Arduino language with bare-bones AVR chips.Or with ...
-1
votes
1answer
243 views

Can the IDE handle a 32khz main clock?

I read somewhere that having the main clock be 32768Hz messes not only with micros() and millis(), but with some other stuff too. Is this true? Will I have to forgo the Arduino IDE to program for an ...
-1
votes
3answers
657 views

Why are embedded C codes are ending with “while(1)”?

I always see while(1); at the end of the C codes such as: #include <stdio.h> int main(void) { //Some code here... while(1); } If I'm not wrong that it always exists, what is the ...
-1
votes
1answer
318 views

About UART one transmitter multiple receivers

I have vector nav vn100 IMU that sends data serially rs232...I want to drive 4 servo motors using atmega32 upon roll angel from vector nav vn100..atmega32 can only drive 2 servos using hardware fast ...
-1
votes
1answer
346 views

Atmega328P and Arduino Studio and Pololu AVR - not working

I have standalone ATMega328p and I'm using external 16MHz oscillator, I hooked up and I triple checked my connections for Pololu AVR programmer and I make sure that I select a proper programmer \ ...
-1
votes
1answer
302 views

PWM timers, channels and pins

I've got this code from the MultiWii project, which is relevant to the hardware, ATmega32u4, I have. It is part of a function called initOutput(). In the comment it says "connect pin 6", which is the ...
-1
votes
1answer
375 views

Can Arduino's open design be “scaled” to 64-bit CPUs?

If Arduino is OSH that simply uses 8-bit Atmel AVR MCU as a design component, then can Arduino somehow be tweaked to work with a 64-bit CPU/MCU? If so, what might this entail?
-2
votes
1answer
56 views

Reading PROGMEM results in an incorrect hex value [closed]

I'm sure I'm doing something stupid here, but the code below is supposed to write the test hex values to a I2C EEPROM, however when I attempt to read the EEPROM it has the wrong values. Directly ...
-3
votes
1answer
64 views

Rate of serial communication (UART) of a sensor is faster than speed of processing of microcontroller

I have a Vector Nav VN100 IMU sensor that sends data serially UART. I have interfaced it with ATmega32. It receives data (ROLL angel) from the sensor and according to the ROLL angel, it controls a ...
-3
votes
1answer
61 views

Pllzz help me with this error i m using Arduino uno r3 on win 10 [closed]

Error picture on screen jdhvdixbdicjdhdojchdishcishcheoshcjd

1 2 3 4
5