Questions tagged [attiny]

ATtiny is a family of small, low-power 8-bit RISC microcontrollers from Atmel. Commonly found in smaller Arduino prototyping platform boards and projects.

ATtiny is a family of small, low-power 8-bit RISC from in their line

They are often used for hobby projects, since many tools are available for free.

A popular use of ATtiny microcontrollers is the prototyping platform system which has bootloaders and software targeting the small mcus, and V-USB, which is a software implementation of the USB Slave Peripheral protocol.

The bigger brother of the ATtiny is the .

Atmel product page

502 questions
4
votes
1 answer

ATtiny13A LED blink delay doesn't work in OFF mode

I have a working USBasp which is uploading sketches to an ATtiny13A and using a simple blink sketch. The LED ON part is working fine, staying on for 2 seconds, but after turning the LED off, the second _delay_ms has no effect. The LED is off for a…
codebrane
  • 219
  • 1
  • 6
3
votes
1 answer

ATTINY 84 Aref pin?

I want to program an ATTINY84 microcontroller using Arduino UNO as an ISP. In my program I need to use the AREF pin that is located at pin P0 on ATTINY84. I know that I can call analogReference() on Arduino UNO ATMEGA328, but what about the…
nick
  • 33
  • 3
2
votes
2 answers

Using an AT Tiny to detect a specific voltage input and then drive an output

Design goals/Problem: I want to design/build a device that can detect a specific input voltage between 0-5 vdc (I'm not sure exactly what voltage yet, but let's just say it's 2.8 vdc as an example) and when it does, it provides a connection to…
MX372
  • 21
  • 1
2
votes
2 answers

Attiny85 (Pin 5 / reset) is always high

I have a couple Attiny85 based USB development boards (or rather, cheap Digispark clones from Ebay). The pin 5 seems to be always at high, no matter what I do. I am suspecting the manufacturer didn't disabled the reset. And hence it is pulled up…
Adam Lee
  • 983
  • 1
  • 14
  • 31
1
vote
1 answer

Is ATtiny13 reliable for long term project?

I'm now designing a weather meter to measure the weather in my area. The control board of the meter I'm designing will take the data from the probe and send back to the main station through a FM transceiver. Since the task is pretty simple so I want…
1
vote
2 answers

Can you program an attiny 85 after is soldered to a board?

I'm developing a project that involves an attiny85 that is already soldered and with several components and sensors connected to it (on the PCB) Can I program the attiny85, with the other components connected to it? Or should I preprogram it before…
0
votes
1 answer

How often can an ATtiny85 be flashed?

I wonder how often I can flash an ATtiny85 before the EEPROM will give up. Solved Sometimes it is just on the first page of the datasheet:
0
votes
2 answers

How not to leave ISP reset floating?

I have read that it is inadvisable to leave the reset pin on an MCU floating, also I would like to expose the pins of my ATtiny84 so that it can be programmed by an Arduino. Is the 10kΩ resistor in the below schematic the correct way to tie reset to…
Morgoth
  • 251
  • 6
  • 15
0
votes
1 answer

Clarification on ATTiny45

What is the functionality of negative reset pin in ATTiny45? Am I correct that reset pin is used to reset the controller to some random state or am I wrong?
itti_da
  • 3
  • 1
0
votes
1 answer

problem with ATtiny167

I'm using Digispark Pro with my program successfully. I bought new ATtiny167 chip for custom PCB board (for HID USB device). I use the scheme from: https://electrobattery.ru/product/plata-arduino-digispark-pro-attiny167/ and this is not working.…
0
votes
1 answer

Attiny4 - Possible Errata Found With PWM

I have searched the AtTiny data sheet and not found anything about this. I'm experiencing a weird PWM bug. When I expect 100% on I'm getting less. I'm using an inverted PWM scheme, so setting it equal to 0 should be full on, but my scope shows a…
MadHatter
  • 3,526
  • 1
  • 20
  • 46
0
votes
1 answer

Square wave 40kHz with ATtiny10

I'm using a 12 MHz ATtiny10 and I would like to generate a square wave on PB0 at 40 kHz. I think that I need CTC. What should be the values of TCCR0A, TCCR0B, OCR0A and OCR0B?
gregoiregentil
  • 671
  • 8
  • 19
-1
votes
2 answers

Atmel Attiny 85 Circuit Confusion

Why are pins 1,3,7 missing from the schematic? Also why are wires from most pins like 4,5,8 going to ground. I am unable to understand the circuit.