Skip to main content

Questions tagged [attiny85]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
61 views

Control Glade Device with AtTiny85

I am a programmer, without knowledge of electronics and I want to be able to make a control that allows: intervene the power supply in a Glade aromatizing device, so that it is activated only during ...
mArkO's user avatar
  • 1
0 votes
0 answers
29 views

ATTINY85-20SUR and serial communication

I am trying to use this chip ATtiny85 for serial communication. So my question is, would you recommend using it for serial communication, such as storing names, IDs, data, and last operations? Should ...
AAS's user avatar
  • 21
0 votes
0 answers
55 views

IRLZ44N vs IRFZ44N performance - Driving a 12V DC motor(3 speeds) with 12V or 24V supply voltage using PWM

I am trying to run 3 speeds on a 12V DC motor with either a 12V or 24V battery using PWM. I had a working breadboard prototype based on the schematic attached, with the complete code using IRFZ44N ...
Adithi's user avatar
  • 3
0 votes
1 answer
82 views

ATTiny85 won't reprogram

I am using a tiny AVR programmer to program code specifically this one, https://www.amazon.com/dp/B00B6KNJRY?psc=1&ref=ppx_yo2ov_dt_b_product_details , I can successfully upload code onto a blank ...
Ash Ketchup's user avatar
0 votes
0 answers
43 views

How to use nRF24L01 on ATTiny85 and together with serial TX?

I am using ATTiny85 + nRF24L01 to receive radio messages. After connecting nRF24L01 to ATTiny85 I don't have much PINs left, as I use all pins except PB5=RST: ...
PanJanek's user avatar
  • 279
2 votes
1 answer
113 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
0 votes
0 answers
92 views

How to use small photocell to trigger wake up pin for extremely low power consumption

I want to trigger microcontroller wake up event using a photocell that produces voltage when light. I have BPW46 photocell and ATTiny85 in deep sleep, interrupt is configured to be trigered by PB3 pin ...
PanJanek's user avatar
  • 279
0 votes
2 answers
171 views

Is it possible to program ATtiny85 with ch340?

I'm thinking to build a PCB for programming ATtiny85 (in Arduino IDE) with ch340. Can I use this schematic? (Source)
Mirko Andres Martinich's user avatar
2 votes
2 answers
131 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
1 vote
1 answer
61 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
83 views

Microchip Studio, porting attiny85 usi uart code to attiny84 not working

Thanks in advance for anyone who can help me with this. So I got a copy of some code that works pretty well just using the USI as a UART for the attiny85. At the default 8 MHz internal oscillator, ...
Erik Vincent's user avatar
1 vote
0 answers
168 views

Question about an ATTINY85, SPI over USI and the ability to read an MCP23S08

I was hoping for a little help in writing a function so that I get an understanding basic SPI over USI on an ATTINY85. I followed a YouTube tutorial on writing bits and blinking an LED with a ATTINY85 ...
Erik Vincent's user avatar
1 vote
0 answers
221 views

avrdude OS error: file not readable invalid argument

I decided to get into the world of "naked" microcontrollers (started with Arduino), found an ATtiny 85 among my parts and an USBasp and decided to first make a blink sketch. Did everything ...
Post Fah's user avatar
3 votes
3 answers
162 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
0 votes
1 answer
111 views

How to scale down 12 VDC to 5 VDC gradually for Attiny85 ADC

In my project I'd like to check the 20 contacts of a particular relay type. A simulator power every contact with 12 VDC (max) and this goes to LMxxx comparator logic that drive some BJT transitors ...
philfs's user avatar
  • 73
0 votes
2 answers
155 views

Interfacing TLC59731 with Attiny85

Has anyone had any experience communicating with a TLC59731 from an Attiny85? I'm not sure how to configure the USI to support the EasySet "protocol" described in the datasheet. I imagine I ...
19172281's user avatar
  • 743
0 votes
1 answer
50 views

Attiny85 USIDR Write Speed

The USIDR register for serial communication on the Attiny85 is 8-bit. If I need to send 32-bits, can I write each byte sequentially as fast as the program can run, or do I need to delay between each ...
19172281's user avatar
  • 743
0 votes
1 answer
103 views

ATtiny85: Accidentally applied reverse voltage

Now it happened. It was dark and while I was coding I accidentally put the ATtiny85 inverted into the breadboard, so I applied +5 VDC to GND instead to VCC. The power came from an UNO R3 which was ...
Tintenfisch's user avatar
2 votes
2 answers
77 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
105 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
0 votes
0 answers
90 views

Power circuit for 3 AA batteries for ATtiny85

I'm using an ATtiny85 and 3 AA batteries in series to create a DIY remote control. Does anyone know what kind of circuit I need to safely and correctly use the batteries? I assume it'll need some ...
1W0n_29's user avatar
  • 21
1 vote
3 answers
117 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
  • 657
0 votes
1 answer
93 views

Can you re-program ATTINY85-20SU when it is already on another board?

The board has components connected the MCU. Is it possible to re-program the MCU if we can take only the required connection out without removing the IC itself? Will the components connected to the ...
Abhijith CB's user avatar
0 votes
0 answers
76 views

Common-output WS2812 LED strip alternative control

I try to build an RPi controlled LED strip, however, while the Linux is booting, I still want a minimal effect on the LED strip. So my idea is that once the device gets voltage, a cheap ...
samsmith94's user avatar
0 votes
3 answers
377 views

How to do an ICSP for an ATtiny 85 [closed]

I know that we can simply buy one of those ICSPs on the web, but my problem is that I am already going to buy a good quantity of hardware on the web and in my country those chips are quite expensive, ...
Bitenco's user avatar
0 votes
2 answers
344 views

Why are there no input/output capacitors on the Digispark (ATtiny85), apart from the decoupling ones close to the MCU?

I´m designing a PCB based on an ATtiny85 and an I2C sensor with an LDO. I´m using a Digispark board for testing the code. The schematics below of the Digispark PCB has decoupling capacitors (C1 and C2)...
Rodrigo's user avatar
  • 567
1 vote
1 answer
313 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
0 votes
2 answers
88 views

Converting 3.3-5 V range to 0-5 V range

I need to solve a problem with connecting a wireless charger (cheap chinese one without datasheet) to a microcontroller (ATtiny85). If the phone is not placed on the charger, there is 5 V in the ...
lehovec's user avatar
0 votes
0 answers
183 views

Optimal option to use 9 V battery to power 5 V ATtiny85

I am designing a remote sensor which is based on an ATtiny85 chip and a RF433 module. To increase range, I need to supply 9 V (500 mAh) to the RF433 module, however, the ATtiny85 is only 3.3 to 5 V. (...
chamroeun bm's user avatar
1 vote
1 answer
698 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
0 votes
0 answers
54 views

Optimal use of a timing pulse

I have an indicator module that uses an ATTiny85 to switch an array of LEDs based on an RS-485 signal delivered by SoftwareSerial and a MAX485 IC. The indicator can be Off, On, or Flashing. All power ...
Jamie's user avatar
  • 87
0 votes
0 answers
136 views

Attiny85 reprogramming without unplugging and replugging the USB cable

Is it possible to reprogram this version of Attiny85 without needing to unplug the USB cable? The board version below is running micronucleus bootloader and has the REST pin enabled. But resetting the ...
David Dehghan's user avatar
0 votes
1 answer
352 views

NPN transistor to turn ON an ATTiny85 from a pinout of an ATTiny85

I have 2 ATTiny85 and a NPN CS-9011 used as a switch. They are both powered by the same 3.3V. I use pin 1 to run the base of the transistor with a 1K resistor. This is not working after an afternoon ...
user avatar
1 vote
2 answers
471 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
0 votes
0 answers
131 views

How would I activate an ATtiny85 microcontroller using a transistor?

I am using a TIP120 transistor and an ATtiny85. The RF signal goes into the base. I want to then activate the ATtiny85 to run code. However, my circuit starts running code without an RF signal going ...
Marquis Moore's user avatar
0 votes
1 answer
64 views

Need to monitor an SSR with an arduino

I need to monitor the coil side of an SSR (not actually a coil I know). The problem with my circuit is it allows enough current through the resistor divider to 0V to actually turn on the SSR. Just ...
SyntaxError's user avatar
1 vote
1 answer
135 views

How to program attiny85 on-board without separate leads?

Another newbie question. I’m planning on ordering my first ever printed PCB that would be a simple 3 mm LED driver controlled by a ATtiny85. Now… I could program the chip using a SOIC-8 to DIP-8 ...
Joonas Joensuu's user avatar
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
1 vote
0 answers
446 views

ATtiny85 sharing SPI and I2C pins

I have an ATtiny85 sending messages via LoRa over SPI and I've hooked up a BME280 on I2C which I'm using with the TinyBME280 library. Everything is fine until I read the temperature, which then hangs ...
codebrane's user avatar
  • 219
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
0 votes
1 answer
299 views

Faster Timer0 overflow than 2 ms on Attiny85

I'm trying to get a Timer0 overflow with an overflow every 500us, but can't find a solution to get it so low. I'm running the Attiny85 on its internal 1 MHz clock, so I know it is not gonna be the ...
jonas's user avatar
  • 309
4 votes
3 answers
498 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
  • 177k
0 votes
0 answers
73 views

ATtiny85 and MLX90614 cannot read temperature data

I'm trying to read sensor data from an MLX90614 using an ATtiny85 to turn on some LEDs if the temperature is in the corresponding temperature range. Right now, all my readings are under 0 degrees. I ...
Egor. L's user avatar
1 vote
2 answers
189 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
1 answer
917 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
0 votes
1 answer
248 views

Serial.println() - ATtiny85

I have a standalone device with ATtiny85 MCU running Arduino firmware. In the firmware there are serial.println() functions that write its status to the serial port. Since it is a standalone device ...
sri's user avatar
  • 15
0 votes
1 answer
130 views

ATtiny85 - Working with EEPROM in IDLE mode

I am working with the ATtiny85 board. I am working with data EEPROM and sleep modes of EEPROM. I have the following questions Can we write data into Data EEPROM of ATtiny85 when the device is in IDLE ...
sri's user avatar
  • 15
1 vote
0 answers
279 views

Connecting Attiny85 to nRF24IO1: How can I get 2 free IO pins in attiny85

I am trying to connect an Attiny85 to an nRF24L01. I tried the library NRFlite from the Arduino IDE libraries and it works fine. The problem is that I end up with only 1 free analog pin (pin 4) in ...
galago mara's user avatar
1 vote
1 answer
367 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
0 votes
2 answers
538 views

Is there any flaws with this Attiny 85 schematic?

I was wondering if there is anything I am missing in this Attiny85 schematic. It will be first burned with the Arduino bootloader through the pins. I am making something similar to the DigiSpark ...
user0456's user avatar