Questions tagged [attiny]

An 8-bit, low power AVR microcontroller from Atmel.

Filter by
Sorted by
Tagged with
1
vote
3answers
2k views

Interfacing an ATtiny85 with MIDI via Software Serial

In order to finish a synth project that I'm working on I built a MIDI interface. To test it, I drew up some code which (is supposed to) light up an LED when any key is pressed. The light turns off ...
22
votes
1answer
31k views

ATtiny85: Power consumption vs clock speed

Short and simple: What is the power consumption for an ATtiny85 running at 1 MHz and 8 MHz using the internal clock? Not using any sleep modes. I have googled a lot and can't find any info on this. I ...
0
votes
1answer
464 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 ...
-1
votes
1answer
1k views

USB Device not Recognised - Custom Wattuino Nanite 841

What I have done: I have made a custom Nanite 841 which uses an ATTINY841 microcontroller. I have used the schematics from Wattuino to design my circuit, my PCB was made using a router with all ...
0
votes
1answer
455 views

Attiny88 as SPI slave

I have programmed Attiny88 with Arduino IDE 1.6.5 using https://github.com/SpenceKonde/ATTinyCore . I chose Attiny88 because it's the cheapest Attiny (as low as $0.5) and at the same time has 28 pins ...
2
votes
1answer
694 views

Attiny45 wake by Software Serial

I would like to wake Attiny45 from sleep by Serial communication. RX is connected to pin 7 (D2). When I try to use PCINT0_vect routine, I get an error "multiple definition of `__vector_2'" so it looks ...
1
vote
0answers
680 views

programming attiny88 & attiny828 with arduino

I found some information that the attiny88 and attiny828 can be programed from an arduino, similar to the programing of the attiny85/45, simply connecting the right pins. https://electronics....
1
vote
2answers
2k views

Attiny88 programming with Arduino

I want to program Attiny88 with Arduino IDE 1.6.5. I chose Attiny88 because it's the cheapest Attiny (as low as $0.5) and at the same time has 28 pins. I found a library that support Attiny88 (https:/...
1
vote
1answer
1k views

Flash a .hex to an ATtiny45 with Arduino

I'm trying to upload a hex file to an ATtiny45 with an Arduino. I uploaded the Arduino ISP sketch to my board. I connected the ATtiny as shown below: Then I go to CMD and type: avrdude -c avrisp -p ...
0
votes
1answer
359 views

ATTiny to drive LEDs

I'm installing some daylight running lights in my car and I have purchased 2 LED bars, each with 8 white LEDs. They use 12V and I need to make some effect when they turn on. Like in some modern cars, ...
0
votes
1answer
305 views

Is crystal mandatory on attiny84?

I am trying to make a mini project with attiny84 and I searched the web so I can make an arduino on breadboard. What I saw on the internet is that they didnt use crystal. Is it mandatory if I want to ...
1
vote
2answers
3k views

Program ATtiny13 - 20PU

I'm trying to program my ATtiny 13 - 20PU. An it seems to work, but there is no action upon the "delay" command. If on the sketch below I comment out the "High" line, my led is off all the time and ...
0
votes
1answer
7k views

How do i properly read an analog pin on attiny85?

Anyone ever run into a problem with your attiny not reading your analog pins correctly? (-1023 or 1023 or 0 value) How did you resolve the issue? Here's what my code looks like now : 4th revision ...
0
votes
1answer
534 views

IR not working on Attiny85

After countless attemps on making this thing work i'm not sure what the hell is going on. First of all you can't use the normal IR library because Attiny85 is crap and due to timer isses it wont work. ...
1
vote
1answer
482 views

Programmed device causes issues between computer and ISP

I'm using a Digispark, which is basically an attiny85 packaged with a few other things, as an ISP to program attiny85's. The Digispark is loaded with Littlewire and recognized as an USBtinySPI device ...
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 ...
1
vote
2answers
4k views

Arduino Uno (master) and ATTiny85 (slave) I2C connection not working

I am trying to send and receive data using I2C between an Arduino Uno and an ATTiny85. The Arduino Uno is using the Wire library. The ATTiny85 is using the TinyWire library and is programmed (and ...
2
votes
2answers
168 views

time error in controlling a clock

I have designed and 3d printed a clock. I am controlling the clock using a Arduino sketch running on a Attiny2313. The stepper motor I am using is a 12v 1:12 ratio stepper. The total number of steps ...
0
votes
1answer
1k views

Arduino on attiny85 driving 4-digit 7-segment using two 74HC595N shift register not alternating fast enough

I am using a port of the Arduino libraries on an AtTiny85 (1MHz) to drive a 4-digit 7-segment LED (common cathode, 12-pin). I'm just counting from 0 to 9 and alternating between the first two digits (...
4
votes
1answer
5k views

I²C between ATTiny85 (8MHz) and Arduino Uno

I keep receiving the following error in myATTiny85-Slave code below: sketch_mar12a.ino: In function 'void setup()': sketch_mar12a:19: error: 'class USI_TWI_S' has no member named 'onRequest' ...
10
votes
1answer
9k views

Emulating 1-wire device(s)

What I want to do is make a ATTiny IC become a slave on the 1-wire bus, with its own S/N and command list for its specific functions. What I want to know is if I can use the one wire library from ...
1
vote
2answers
376 views

Attiny85 with arduino as ISP

After serveral attempts, I can't make my arduino UNO to program an attiny85, no matter what I do. I've tried under windows 7 and also under ubuntu 14.04, to no avail. I've followed instructions on hi ...
4
votes
2answers
9k views

How to program ATTiny85 running 3.3V

I have a working project built around ATTiny85 on a breadboard running at 5V. Now I want to move this prototype on a PCB where it will be powered from batteries. All components used are capable of ...
1
vote
0answers
203 views

Arduino and ATtiny84 w/RF

I'm trying to send data from an ATtiny84 [1mhz] to Arduino Uno using a 433Mhz rf module and Manchester lib. Now I came across a weird problem, no matter what value I transmit, When I receive it on the ...
2
votes
2answers
493 views

Programming an Array of ATTiny

I am designing a board for my electronics project and i am using a number of ATTiny85 for it. The ATTiny's will be SMD so i will not be able to remove them for programming. Moreover all of the pins ...
0
votes
1answer
1k views

use shiftIn and shiftOut with attiny85

I want my Attiny85 to communicate with another attiny85. one attiny should send a message to my other attiny. When he receives the correct message he should turn one led on. Just a very simple test ...
0
votes
1answer
902 views

Does the map() function works on an ATtiny85?

I have a working project on Arduino Uno.Now I want to shrink my project using an ATtiny85. Before purchasing an waiting for the shipment to arrive, I want to make sure that my whole code will run on ...
1
vote
1answer
5k views

Read temperature (DS18B20) with the ATTiny85

I'm trying to read the temperature of a DS18B20 with my ATTiny85 - but I'm getting rubbish data :D I should have gotten ~22 degrees, but I'm getting 129! I followed this tutorial i found here, but ...
8
votes
4answers
12k views

Is SoftwareSerial left out for the ATTiny85/84?

I want to use SoftwareSerial with my ATTiny85 and when I google it several projects claim that they are using it... I downloaded the hardware from https://code.google.com/p/arduino-tiny/, but when I ...
3
votes
1answer
4k views

Attiny85 and 433Mhz RF

I have this cheap RF link that I had working with the Arduni UNO, but I wanted to make it smaller and ATTiny85 should do the trick. The RF module is connected (data pin) to PB3 on the ATTiny. But I ...
2
votes
2answers
5k views

RCSwitch on Attiny85

I would like to use my Attiny85 as an remote controlled relay switch. I have already tested the sketch on my Atmega328 and it worked. Now I wanted to burn the sketch on my Attiny85 using ArduinoISP ...
0
votes
2answers
785 views

Shift register on Attiny85 programmed by Arduino

Shift registers need 3 digital pins in order to work (data, clock and latch), but Attiny45/85 chips provides 2 digital and 2 analog pins. Would I use 1 analog pin as digital pin? How?
6
votes
4answers
7k views

ATtiny85 minimum setup to blink led

What would be the (very) minimum schematic to make a ATtiny85 blink a led? Restrictions are: There must be a C program compiled and uploaded to it, just like an Arduino board would have. The code ...
5
votes
2answers
291 views

Ideas for setting I2C device IDs

I am using I2C to communicate between a collection of ATtiny85s that are acting as controllers for various parts of a system and the "Main Brain" -- a RaspberryPi. Most of the ATtiny85s only have a ...
1
vote
0answers
2k views

attiny85 in sleep mode failing to wake properly [closed]

For my attiny85, I'm having trouble getting it to sleep and wake up cleanly. I have a sleep mode with a watchdog timer that wakes every 8 seconds, or when interrupted. And then when that has repeated ...
1
vote
0answers
92 views

HCF4021BE seemingly not working

void setup() { // put your setup code here, to run once: pinMode(3,OUTPUT);//data pinMode(4,OUTPUT);//clock } void loop() { // put your main code here, to run repeatedly: // byte sender=...
8
votes
4answers
10k views

ATtiny85. How do I burn a bootloader? What is the process?

I want to use all six I/O pins of an ATtiny85, that means also using the reset pin as an I/O pin, however, I found out that if I disable the RESET pin, I can no longer program the ATtiny using an ISP ...
5
votes
1answer
694 views

Extract .hex from ATtiny45 using Arduino

As it is possible to program a ATtiny45 using Arduino as ISP Programmer, is there a way to backup an ATtiny45 program to a .hex file using Arduino?
-1
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 ...
1
vote
0answers
704 views

RF RX not working when using ATtiny85 at 1MHz

The ATTiny85 code fails to read input from a 433Mhz RF receiver when working at 1MHz. The following example compiles perfectly and runs OK wihen the ATTiny85 is working at 8MHz. However, it compiles ...
0
votes
1answer
286 views

Attiny84A and IR Sensor

I have a GP2Y0A21YK0F Sharp IR Analog Distance Sensor 10-80cm + Cable, Arduino Compatible and its is connected to my Arduino. All works well and I can read the analog data with the following code: #...
3
votes
1answer
20k views

ATTiny85 Interrupt id vs pin when programming with Arduino

I am using an Arduino Uno with the Arduino as ISP sketch to program an ATtiny85. I followed this tutorial to set up to program the ATtiny, and successfully got it to run Blink and an interrupt-free ...
12
votes
3answers
50k views

When using Arduino Uno as ISP does “Yikes! Invalid device signature” mean a bad connection, bad config, or bad version of avrdude?

I'm using an Arduino UNO to program a pre-compiled hex image to an ATTINY45, using the avrdude in the Arduino IDE directory, on Windows 7. The Uno has the ISP sketch loaded from the examples directory ...
2
votes
3answers
3k views

Attiny13 + Arduino

I started my first try in programming an ATTINY13 with my Arduino 2560. Everything seemed fine, however when I wanted to run the blink example, my LED did not blink, it keeps lighting. I am using 5V ...
2
votes
2answers
7k views

'OUTPUT' was not declared in this scope - ATtiny85 with Arduino Uno r3 as ISP

I'm trying to follow this this tutorial to program an ATtiny85 micro-controller using my Arduino Uno r3 as the ISP. I am up to the final step on the tutorial, but get an error when attempting to ...
2
votes
2answers
3k views

Reliably duplicate custom IR remote control with ATTiny85

This is something I'm struggling with for a while and fail to find solid solution. The Arduino IR library provides method for recording arbitrary IR code and re-sending it. This gave me different ...
6
votes
1answer
9k views

Is it possible to program an Attiny85 with a USB-to-TTL converter?

I currently use my Arduino to program Attiny85. As I have one of these USB-to-TTL adapters I am wondering if it is possible to program Attiny85 with it, to free up my Arduino. I know it is possible to ...
5
votes
1answer
2k views

Is programming the ATTiny85 possible in 1.5?

I upgraded to Arduino 1.5.7 in hopes of using the command line interface for a larger project. However, the old package I was using to program the ATTiny85 chip with the Sparkfun Tiny AVR Programmer ...
3
votes
1answer
702 views

How to add the -F switch for avrdude in Arduino IDE

So, before starting to learn with something else, I'll give it one last try. The avrdude is complaining that the device signature doesn't match. Whatever, I don't care. To me, what's written on it is ...
1
vote
2answers
2k views

What pins should I use when blinking AtTiny13 with arduino IDE?

I'm trying to program AtTiny13 using Arduino IDE. I have connected the atTiny to my PC using USBasp programer. I want to write a simple blink application to test whether it works or not. Which pins ...