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

493 questions
37
votes
1 answer

Why does my AVR reset when I call wdt_disable() to try to turn the watchdog timer off?

I am having a problem where executing a disable watchdog sequence on an AVR ATtiny84A is actually resetting the chip even though the timer should have plenty of time left on it. This happens inconsistently and when running the same code on many…
bigjosh
  • 9,888
  • 29
  • 48
26
votes
5 answers

Making a battery last a long time in a microcontroller circuit

I'm hoping to power an ATtiny85V for a nice long time on some small battery, probably a coin cell. I've looked into the software side, and my code is watchdog timer driven, has unused analog and digital converters turned off, the chip is running at…
Jack Schmidt
  • 2,025
  • 2
  • 18
  • 24
20
votes
7 answers

How do I set the clock speed fuses on an ATtiny85 when using an Arduino as a programmer?

I'm following this tutorial, programming the ATtiny85 with an Arduino, using it to play some tones (through a piezo speaker). I'm struggling with getting the tones at the right pitch (I'm creating the wave forms manually, as the tone() function is…
fearoffours
  • 548
  • 2
  • 7
  • 13
20
votes
3 answers

Use AVR watchdog like normal ISR

I'm trying to wrap my head around the watchdog timer on the ATtinyX5 series. Things I've read made it seem like you could use it for making the program do something specific ever N seconds, but never really showed how. Others made it seem like it…
Adam Haile
  • 1,603
  • 5
  • 31
  • 50
18
votes
2 answers

Microcontroller works on breadboard, but not on PCB (which is proven to be correct)

Summary: I have two circuits: One on breaboard and one on PCB. I have two Microcontrollers: A commercial one (pre programmed) and a personal one (with whom I try to recreate the commercial one). The commercial uC works in both circuits and my…
17
votes
7 answers

Use cases for RAM-less microcontrollers

In a different question around a specific microcontroller (ATtiny12 - datasheet) I came to ask myself: What are the intended use cases for such devices? Does it target the segment: Too "complex" for a small PLD/CPLD and too "simple" for a…
16
votes
2 answers

4-bit bus address selection via analog input pin: Monte Carlo simulation shows overlapping address values

I designed a small sensor PCB for my master thesis with an ATtiny44 microcontroller. I need about 200 of these boards for my application and 16 are always locally connected to controller board. The whole network looks like this: To communicate…
KarlKarlsom
  • 1,792
  • 2
  • 13
  • 26
14
votes
2 answers

Serial newbie: why can't I just hook the wires up?

I'm trying to transmit from an ATtiny85 to a PC using Arduino-esque code over a USB-Serial converter without understanding very much of anything. I was shocked and appalled that it did not work. I confirmed that the tiny is flickering the voltage…
Jack Schmidt
  • 2,025
  • 2
  • 18
  • 24
13
votes
3 answers

What can't the ATtiny do that the Arduino can?

Inspired by this Make Magazine youtube video, I would like to use the ATtiny chips instead of the Arduino for most of my projects. The video author warns that some Arduino functions won't work on the ATtinys. Is there a complete list of what is and…
DudeOnRock
  • 233
  • 1
  • 2
  • 8
11
votes
2 answers

Program AVR EEPROM directly from C source

When you include the following code in an AVR C source, you can apparently directly program the fuses, without the need for an extra command or .hex file: #include FUSES = { .low = LFUSE_DEFAULT , .high = …
jippie
  • 33,033
  • 16
  • 93
  • 160
11
votes
3 answers

Does ATtiny RESET pin need a resistor?

I need to make sure that my ATtiny does not reset unexpectedly. To do that, I am planning on connecting the RESET pin directly to VCC. However, I have heard some places that you need a 10k resistor between VCC and the RESET pin, to prevent too much…
eeze
  • 642
  • 1
  • 9
  • 18
10
votes
1 answer

ATtiny: no support for multiplication?

Is it true that the ATtiny AVRs have no hardware support for multiplication? It seems to work fine as I do multiplication in my code. I've also included math.h and have a couple of sin() and cos() calculations. Am I running into some huge 800-cycle…
David Högberg
  • 1,835
  • 2
  • 21
  • 34
10
votes
2 answers

Need help understanding AVR ATMEGA / ATTINY timer mirrored output

I am trying to use Timer1 of Atmel AVR microcontroller, either AtMega328 as used in the Arduino, or the ATTiny85, to output two clock signals which are mirror images of each other. The frequency I am trying to generate is a variable 1 MHz to 2 MHz…
ExcitingProjects
  • 672
  • 7
  • 19
9
votes
2 answers

How to power an Attiny from AA batteries?

I am working on a project where I would like to power an RGB Led in a ambient light situation. I have prototyped this using an Arduino Leonardo and the led. Currently the project is plugged into the USB port of my computer, however I would like to…
sonfollower
  • 267
  • 1
  • 3
  • 9
9
votes
2 answers

What does "Not recommended for new designs" mean in an ATtiny datasheet?

I am making my own circuit and I am using ATtiny10-TS8R (I couldn't buy any another type for now), but I found (6) in the datasheet on the part I want to use: As noted in point (6), it says "Not recommended for new designs". I used it already and…
M Y
  • 229
  • 4
  • 10
1
2 3
32 33