Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
766 views

ATTiny84 blink mystery

Novice mode, please. I programmed my ATTiny84 using Arduino Ethernet (Arduino IDE 1.6.7) using https://github.com/damellis/attiny branch - 1 MHz internal oscillator mode. I uploaded ISP sketch to ...
-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
1answer
275 views

Is it possible to reduce the size of this program to 1KB

I want to use attiny13 in my project but this program is going over 1KB void setup() { Serial.begin(9600); delay(2000); Serial.println("AT+CMGF=1"); delay; } void loop() { for (int i=0 ;i &...
4
votes
1answer
791 views

Creating a library for attiny85 out of working program

Apologies if this is the wrong sub-forum, the involvement of ATTiny and arduino places this into a strange category. Please correct me if I should post elsewhere. It is important for this to be a ...
2
votes
2answers
8k views

Reading from a KY-040 rotary encoder with Digispark

I have a rotary encoder KY-040 connected to a Digispark like this: CLK go to p0 and and DT go to p2, SW is disconnected for now (it's just a button). I did everything like the instructions here: ...
1
vote
1answer
590 views

Arduino non-blocking software PWM LED fader not working

I am trying to write a simple software PWM to fade some LEDs because I don't have enough PWM I/O Ports. The code evaluates how long you want the LED to fade, and breaks it down into a number of steps....
1
vote
2answers
680 views

RF24 Stalls Arduino Program with powerDown

I have an ATtiny85 and an Arduino Uno both using NRF24L01 chips to communicate with one another. The ATtiny85 is powered by a CR2032 coin cell. I am using tmrh20's fork of the RF24 library which can ...
1
vote
1answer
798 views

NRF24L01 Connection Not Working

I have an ATTiny85 connected to an NRF24L01+ module using this wiring diagram: diagram. The ATTiny85 periodically goes in and out of sleep to send some value to a receiver, an Arduino Uno. If the ...
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 (...
0
votes
2answers
897 views

Small, Power-Efficient wireless communication with ATTiny85

For a project that I'm working on I need an extremely small, power efficient wireless device (could be radio, or some other interface) to network between a series of ATTiny85s and a larger Arduino. ...
-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
258 views

ATTINYx5 usi for uart?

Can the ATTINYx5 use its universal serial interface for a better UART than the Sofware Serial library alone? If so, is there a library or tutorial for this?
0
votes
1answer
105 views

Where is the Aref pin for Attitny88

I would like to use the external analog refence voltage in an Attiny88 project I am working on that will be powered with batteries. However, the datasheet for this processor does not show an Aref ...
2
votes
1answer
767 views

ATtiny85 SPI with Timer 0

Trying to shift out from ATtiny85 to a shift register using the USI in SPI mode. I have Timer 0 running as slowly as possible (checked it was running by temporarily changing it to toggle a pin with an ...
1
vote
0answers
600 views

ATtiny85 + HC-05 + Oled = smart watch

I am using an ATtiny85 for making a smart watch. Bluetooth module HC-05 with ATtiny85 pins PB3->TX, PB4->RX and it works. Secondly I have connected a 0.96" OLED on PB0 (SDA) and PB2 (SCL) and this is ...
3
votes
0answers
231 views

error with avrdude command line using arduino as isp (i think)

I am trying to upload a .hex file to my attiny85v-10pu and using my arduino as a isp (i think thats the right term) but it come up with this error. ser_open(): can't open device "lpt1": The system ...
1
vote
2answers
18k views

avrdude: verification error, first mismatch at byte 0x0000 : 0x00 != 0x16 using USBasp

I'm having this strange error, which pops up around 90% of the time. I am trying to program my attiny25 using USBasp and the Arduino IDE / library. Sometimes it works, most times it doesn't.. This ...
3
votes
1answer
4k views

ATTiny 85 analog input pin number problem

I am using AT Tiny 85 to read voltage from lead acid battery charger while charging. Basically the setup has two 7-segment displays driven by two SIPO shift registers(74ls164n). And used tiny 85's ...
2
votes
2answers
169 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 ...
1
vote
0answers
50 views

Attiny88 problem with LEDs and voltage

I have the following problem and wonder if anyone may have some inside into what may be happening. I have an array of 20 leds that i manage to multiplex using the attiny88 using only 9 pins (4 ...
2
votes
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 ...
23
votes
1answer
33k 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
467 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 ...
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:/...
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 ...
2
votes
1answer
712 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
716 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
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
360 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
326 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
4k 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
543 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
487 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
383 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 ...
5
votes
1answer
382 views

Operating / pin voltages ATTiny chips

I would like to set up a project with an ATtiny chip, such as the ATtiny84 or ATtiny85, in which I interface the microcontroller directly with an XBee for both wireless serial communication, as well ...
4
votes
2answers
10k 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
206 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 ...
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 ...
1
vote
2answers
3k 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 ...
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 ...
2
votes
2answers
505 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 ...
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 ...
0
votes
1answer
935 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 ...
8
votes
3answers
6k views

Manchester Library Won't Compile for Attiny85

I am creating a wireless sensor using an Attiny85. I want to send the data to an arduino uno, so I purchased the 315mhz rf link kit from spark fun. Since the Attiny85 does not have a TX I decided to ...
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 ...
0
votes
2answers
797 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?
5
votes
2answers
300 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 ...