Questions tagged [attiny85]

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

Filter by
Sorted by
Tagged with
15 votes
3 answers
4k views

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 ...
Flo's user avatar
  • 261
12 votes
3 answers
11k views

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 ...
eeze's user avatar
  • 652
9 votes
2 answers
669 views

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 ...
bigjosh's user avatar
  • 10.1k
8 votes
2 answers
2k views

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 ...
AccidentalRebel's user avatar
7 votes
2 answers
15k views

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 ...
Antoine Aubry's user avatar
6 votes
2 answers
620 views

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 ...
needfulthing's user avatar
5 votes
1 answer
353 views

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 ...
Adam Lee's user avatar
  • 993
5 votes
0 answers
309 views

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 ...
ArcZap's user avatar
  • 51
4 votes
2 answers
2k views

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 ...
cheunste's user avatar
  • 176
4 votes
1 answer
1k views

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 ...
MalphasWats's user avatar
4 votes
2 answers
2k views

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 ...
mj_'s user avatar
  • 345
4 votes
3 answers
472 views

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 ...
Transistor's user avatar
  • 176k
3 votes
2 answers
2k views

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 ...
Argha Chakraborty's user avatar
3 votes
3 answers
155 views

Seamless power source switching for a microcontroller (ATtiny85) [duplicate]

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 ...
Anand's user avatar
  • 31
3 votes
2 answers
94 views

Unexpected bits when shifting out (ATtiny85)

I'm trying to spoof a 433 MHz remote and I have a sequence of 32 bytes that I want to repeatedly shift out to one of ATtiny85's pins. The signal then goes to a cheap Chinese-type 433 Mhz transmitter. ...
Protecto's user avatar
3 votes
2 answers
10k views

Relay for Intermittent Wiper Function

I want to add an intermittent function to the wipers on my 40-year-old car without any additional switches. The details of the wipers can be found here [http://www.globalsoftware-inc.com/coolerman/...
unix's user avatar
  • 183
3 votes
3 answers
4k views

AtTiny85 analog / digital pin configuration order in setup

Bug in compiler or what ever? Simplified circuitry there is 2 LEDs and 1 analog input. LED connected to pin PB1 lights very dim when output is high. It seems that output has been configured to high ...
Paavo Merilinna's user avatar
3 votes
1 answer
967 views

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 ...
Ariel's user avatar
  • 31
2 votes
2 answers
6k views

ATtiny85 and high frequency PWM for driving a ferrite transformer

Some background: I have an ATtiny85 running at 8 MHz under the Arduino IDE. I have been gifted a large ferrite transformer and some MOSFETs & drivers to drive it. However I am lacking a ...
Atton Mathews's user avatar
2 votes
4 answers
2k views

Is the ATtiny85 actually used in any consumer electronics?

I was wondering if anyone here knows of any products that utilize the ATtiny85. It appears to me that it's solely used by makers/electronics enthusiasts. I'm asking because I think it would be ...
Alex Wulff's user avatar
2 votes
2 answers
125 views

ATtiny85 USB development board

I am working on a project and have a custom PCB for the project. I initially developed the PCB to mount a DIP-8 ATtiny85. I then found the ATtiny85 is available in an SMD package, so I am thinking of ...
Ahmed Mohamed Hassan's user avatar
2 votes
1 answer
5k views

How to disable reset pin on Attiny

I am using an Arduino as ISP to program an Attiny85. Is there any way to disable the reset pin such that it is not functional. I think this is a fuse setting but I am not sure.
Kafros's user avatar
  • 165
2 votes
3 answers
2k views

attiny84 input resistance

Looking at the datasheet for the attiny family, you find something called 'reference input resistance'. (Datasheet: http://www.atmel.com/images/Atmel-7669-ATtiny25-45-85-Appendix-B-Automotive-...
Kafros's user avatar
  • 165
2 votes
2 answers
72 views

Microcontroller sinking current from another MCU

I have two microcontrollers, the beloved ATmega328p and an ATtiny85. The ATtiny85 does power management (toggling power to main MCU, get buttons clicks, and other things). The ATtiny85 disconnects VCC ...
Rokas Sondaras's user avatar
2 votes
2 answers
1k views

Missed Interrupt Problem with Attiny85

I'm trying to use an Attiny85 (digispark) to wake another controller from sleep (an ESP8266). The Attiny is connected to an IR receiver which has an active low output. Basically I have connected an ...
localhost's user avatar
  • 302
2 votes
1 answer
132 views

Best method of packet transmission between an array of sensor nodes?

Currently I'm working on a project where I'll have an array of four sensor nodes, each with three sensors. These sensor nodes need to send their data back to an ATMega controlled board for processing, ...
Alex Wulff's user avatar
2 votes
1 answer
259 views

C++ AVR microcontroller optimization problem

I'm faced with a weird problem. I'm developing a program for AVR. Microcontroller ATtiny85. Frequency 1 MHz. Programmer ...
user448's user avatar
  • 21
2 votes
1 answer
2k views

Data memory usage reported by AtmelStudio for ATtiny85

I am using AtmelStudio to program an ATtiny85, which has 512 bytes of SRAM data memory. My code includes a large lookup-table (array) which is 512 bytes: ...
Blair Fonville's user avatar
2 votes
1 answer
831 views

Attiny85 programming for production

I have created a prototype PCB with an Attiny85 on board. This Attiny is programmed by the supplier before it is sent to the PCB manufacturer. I received my prototype on friday and it seems that the ...
Kafros's user avatar
  • 165
2 votes
1 answer
104 views

How to test for stack overflow on an ATtiny85 using an emulator?

I am developing a hobby project using the Arduino IDE and an USBasp programmer to upload my code to the ATtiny85. After programming, I remove the chip from the programmer socket and put it into the ...
PanJanek's user avatar
  • 279
2 votes
1 answer
416 views

Controlling Mosfet with ATTiny85 and IR Reflective Sensor

My plan is to start a motor, then stop the motor when the gear teeth gets to 15 (out of 16) I will be able to tell at what position the gear is by placing an IR reflective sensor under the teeth. The ...
Vosem Media's user avatar
2 votes
0 answers
254 views

Trouble getting attiny85 to drive nRF24l01+

I'm attempting to make an nRF24l01+ send out a simple identifying code when a button is pressed. I'm trying to keep the solution as small as possible, so I want to use the attiny85 to drive it. Her'...
Ben Davis's user avatar
  • 123
2 votes
2 answers
100 views

Is it possible to power an ATTiny85 and a 6N138 through MIDI in?

I'm working on a MIDI2CV board. The schematic I'm working on is provided by the website of Kevin's Blog. The MIDI cable comes the MIDI out of a Digitakt. It has 5V on pin5. I was wondering if it is ...
Sercurio's user avatar
1 vote
2 answers
4k views

attiny85 clock precision

I am using an attiny85 coupled to a mosfet and a water valve to water my plants at a regular interval. I want to water it every day. I programmed it to turn on every 24h, and today it is not on time. ...
yannick's user avatar
  • 171
1 vote
2 answers
188 views

Best way to detect any combination of keypresses with few pins? (not just single key presses)

I ask for the "best" way, but a "typical" way or a "better" way will be appreciated. A great way to detect a single keypress among a bunch of buttons is to use a resistor ...
Zeno's user avatar
  • 99
1 vote
3 answers
109 views

Troubleshooting a rare glitch in a microcontroller timer ISR

I'm using an Atmel ATtiny85 microcontroller to implement a PID controller for a temperature regulation application. I have configured Timer1 to be a simple PWM generator using the following code: <...
Wossname's user avatar
  • 454
1 vote
1 answer
356 views

Why doesn't the Attiny85 work in this circuit?

I'm designing a circuit to control the power of a heater using an Attiny85. This is the circuit: The Attiny85 is programmed to boot with the heater and mosfet turned off. When the button is pressed, ...
Daniel Williams's user avatar
1 vote
1 answer
171 views

Attiny85 for wireless communication

I'm a very beginner in electronics. I'm trying to make a system which transmits a tank chemical level to a distant system. Remote system is an Arduino. For the tank unit I have 4 float switches. ...
Sandeep Thomas's user avatar
1 vote
1 answer
627 views

Serial Programming and I2C port "conflict"

I'm designing a board in which an Attiny85 is connected to an accelerometer (MPU-6050) via I2C. The I2C pins are in the ISP bus (SDA/MOSI, SCL/SCK). I wonder what happens to the accelerometer during ...
Wesley Lee's user avatar
  • 7,914
1 vote
1 answer
847 views

ATtiny85 - Sleep Mode & Interrupts

I am working with ATtiny85. I want to put my MCU in IDLE Sleep mode and after every five minutes, I want to write data into EEPROM. I am using Timer 0 overflow interrupt to count 5 mins. Counting will ...
sri's user avatar
  • 15
1 vote
1 answer
1k views

How to recover locked ATTiny 85

I was following this tutorial: http://highlowtech.org/?p=1695 and by mistake I uploaded code with 8 MHz External clock settings. The tutorial says ...
pawisoon's user avatar
  • 119
1 vote
1 answer
1k views

ATtiny85 analog input constantly on max

I am currently getting into AVR programming and I want to read in two values from two potentiometers on the analog inputs PB3/ADC3 PB4/ADC2. I want to (just for now) light an two LEDs (PB1 and PB2) ...
elhe's user avatar
  • 37
1 vote
2 answers
496 views

BJT not switching (off) fast enough?

I have an ATTiny85 with a PWM output (freq. aprox. 1kHz). Connected to this pwm output pin is a NPN general purpose BJT (2N2222) with base resistor of 1k. A LED is in series with this transistor (...
J. Frôbes's user avatar
1 vote
1 answer
328 views

ATTINY85 variants

I am using an Arduino as ISP to program Attiny chips at 8Mhz (internal). I am using the Arduino IDE as I find this easier. Some of the chips I was programming however appeared to be working at 1Mhz ...
Kafros's user avatar
  • 165
1 vote
1 answer
58 views

Toggle between active mode and sleep mode microcontroller

this might seem a dumb question, but is it somehow possible with an ATtiny85 (or any other microcontroller) to toggle with a push-button between active and sleep mode? Startup -> doing something -&...
Post Fah's user avatar
1 vote
1 answer
190 views

ATtiny85 auto resets when switching MOSFET with load

I'm currently designing a simple circuit to act as a remote firework igniter. I'm using the ATtiny85 to control a MOSFET as a switch which would connect a coil of nichrome wire to the battery ...
Dew_1225's user avatar
1 vote
1 answer
635 views

ATtiny85 IR decoding/receiving issue

Apologies if this specific issue has been addressed before, but I've scoured for hours, haven't found an exact solution. Goal: To decode IR values using an ATtiny85 and display them over a serial port....
Tristan 's user avatar
1 vote
2 answers
416 views

ATTiny85 Use external crystal for timer but not system clock

I'm working on a project using an ATTiny85 where I need a precise timer. I have some 32kHz crystals, which it looks like would work fine if I ran the system clock off of them and made the timer take ...
apple1417's user avatar
1 vote
2 answers
1k views

Attiny85 Burn Bootloader Error [Device signature = 0x000000] [SOLVED]

I had read in different forums about similar issues and double-check the connections and datasheet. But it's still not working for me. First of all, I will share my build and my configuration. Later ...
Santa's user avatar
  • 21
1 vote
1 answer
835 views

ATtiny85 and nRF24L01+ only work with longer Vcc/GND lines on PCB

I'm trying to build something small and battery powered. I have a handful of ATtiny85s and nRF24L01+s. I have breadboarded it using the 3-pin method described on Instructables and it works (I have a ...
KdiddyDawg's user avatar