Questions tagged [attiny85]

ATtiny85 is small, low-power 8-bit, 8-pin RISC microcontroller from Microchip.

Device Overview

The high-performance, low-power Microchip 8-bit RISC-based combines

  • 8KB flash memory
  • 512B
  • 512-Byte
  • 6 general purpose I/O lines
  • 32 general purpose working registers
  • one 8-bit timer/counter with compare modes
  • one 8-bit high speed timer/counter
  • USI
  • internal and external Interrupts
  • 4-channel 10-bit
  • programmable watchdog timer with internal oscillator
  • three software selectable power saving modes
  • and debugWIRE for on-chip debugging.

The device achieves a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts.

overview text based on the information provided at www.microchip.com

129 questions
15
votes
3 answers

Do I need a capacitor for an ATtiny85?

I have a small LED strip light, which I want to power by a power bank. It is active for 6 hours, and then sleeps for 18 hours. It takes almost no power while sleeping, and the power bank detects this and shuts off. To defeat it, I built a small…
Flo
  • 261
  • 2
  • 6
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
8
votes
2 answers

Need help with a circuit diagram where the motor does not seem to have any connection to ground. Error with diagram? Or am i missing something?

I'm following a really simple electronics instructable found in this link: https://www.instructables.com/id/Vibrating-Timekeeper/. I've been studying the circuit provided but can't figure out why the circuit is the way it is. Here's the…
8
votes
2 answers

Workaround for the obsolete ATTINY15 1.5Mhz clock for FCC exemption?

The ATTINY15's was ideal for designing FCC Part 15 exempt battery powered products since its 1.6Mhz internal RC clock ran just below the 1.705Mhz cut-off. The ATTINY2/4/85 replacement parts come with a 1.6Mhz compatibility mode, but this clock is…
bigjosh
  • 9,888
  • 29
  • 48
7
votes
2 answers

How to achieve low power consumption with ATTINY85

I am creating a project that uses an ATTINY85. Most of the time, the circuit should be off and consume as little power as possible. According to the data sheet, in power-down mode, the microcontroller consumes 0.1 μA at 1.8V. I am powering the…
Antoine Aubry
  • 303
  • 1
  • 3
  • 14
6
votes
2 answers

LED as light sensor not properly working in circuit

I read some articles about using an LED as a light sensor. I chose an IR LED and checked the voltage levels produced in different light situations resulting in about 200-300mV in full artificial light and around 30 mV in the dark, which seemed to be…
needfulthing
  • 197
  • 4
5
votes
0 answers

ATTiny85 clock speed problem

Using an ATTiny85 and an Arduino loader I created a simple device for turning on an exhaust fan based on a light sensor. The ATTiny85 turns on the fan after activating a warning light and sounding an alarm. Of course, I use a relay to amplify the…
ArcZap
  • 51
  • 2
5
votes
1 answer

Attiny85 - RSTDSBL fuse bit confusion

Am I correct that to disable the reset pin of Attiny85, and use it as an IO pin, I need to disable the reset fuse bit(RSTDSBL)? If so, should my RSTDSBL bit be 1 (assuming 1 = yes, disable)? I am a little confused, because it looks like my reset pin…
Adam Lee
  • 973
  • 1
  • 13
  • 31
4
votes
3 answers

Powering an ATtiny85 from the pull-up resistor of another device

I have an interesting design challenge. Reed switch S1 is feeding pulses at a maximum of five per second into a 3.3 V microcontroller input. I want to halve the pulse rate. I don't have access to the 3.3 V supply so I hope to power the circuit from…
Transistor
  • 168,990
  • 12
  • 186
  • 385
4
votes
2 answers

Protecting circuit from piezoelectric disc voltage spike

I have a piezoelectric disc, and I'm trying to use to build a primitive sonar. I connected the disc to an oscilloscope and if I press very hard on the disc, I see that the voltage can spike pretty high. I'm not sure how much current there is. In an…
mj_
  • 345
  • 3
  • 10
4
votes
2 answers

I found an audio circuit and I built it just fine, but I find it a bit too quiet. How do I amplify the output so that it is a bit louder?

I want to try something audio related and found the following circuit from technoblogy I built it and loaded a sound clip. Everything works fine, but I found it a bit too quiet and I want to amplify it, but not entirely sure how. The biggest…
cheunste
  • 176
  • 6
4
votes
1 answer

In-place programming of ATtiny85

I've been playing around with an idea for a little hand-held gaming device using a Nokia 5110 screen and an ATtiny85. The ATtiny is programmed using my Genuino UNO as ISP. I was wondering if it's possible/sensible to include a breakout connector on…
MalphasWats
  • 596
  • 1
  • 4
  • 15
3
votes
3 answers

Seamless power source switching for a microcontroller (ATtiny85)

I'm seeking guidance on accomplishing seamless power source switching for a microcontroller (ATtiny85). My objective is to seamlessly transition power input between two distinct sources (Raspberry and Button cell). I am exploring various…
Anand
  • 31
  • 1
3
votes
2 answers

Understanding gate threshold voltage of logic level mosfets from datasheet

I want to build an Arduino Project to control a DC load(DC 5V water pump ampere rating is not known) and using a transistor with PWM to control speed. There is a need to shrink down the project and I have chosen Digistump ATTiny85. But read that…
3
votes
1 answer

Programming an ATtiny85 and powering a circuit over a single USB-C port

I'm currently working on a RGB enabled controller stand that will include a circuit that does do two things: charge the controllers control RGB strips on the mount I'm pretty new to electronics, and I never designed a circuit before, so I was…
Ariel
  • 31
  • 2
1
2 3
8 9