Questions tagged [attiny85]
ATtiny85 is small, low-power 8-bit, 8-pin RISC microcontroller from Microchip.
134
questions
2
votes
2
answers
108
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 ...
1
vote
1
answer
52
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 -&...
1
vote
1
answer
41
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, ...
1
vote
0
answers
117
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 ...
1
vote
0
answers
131
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 ...
3
votes
3
answers
138
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 ...
0
votes
1
answer
98
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 ...
0
votes
2
answers
113
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 ...
0
votes
1
answer
34
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 ...
0
votes
1
answer
74
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 ...
2
votes
2
answers
63
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 ...
2
votes
2
answers
91
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 ...
0
votes
0
answers
63
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 ...
1
vote
3
answers
97
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:
<...
0
votes
1
answer
69
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 ...
0
votes
0
answers
54
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 ...
0
votes
3
answers
236
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, ...
0
votes
2
answers
213
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)...
1
vote
1
answer
143
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 ...
0
votes
2
answers
87
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 ...
0
votes
0
answers
132
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. (...
1
vote
1
answer
465
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....
0
votes
0
answers
51
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 ...
0
votes
0
answers
100
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 ...
0
votes
1
answer
264
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 ...
1
vote
2
answers
362
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 ...
0
votes
0
answers
110
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 ...
0
votes
1
answer
57
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 ...
1
vote
1
answer
106
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 ...
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 ...
1
vote
0
answers
354
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 ...
1
vote
2
answers
834
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 ...
0
votes
1
answer
258
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 ...
4
votes
3
answers
391
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 ...
0
votes
0
answers
70
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 ...
1
vote
2
answers
176
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 ...
1
vote
1
answer
719
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 ...
0
votes
1
answer
213
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 ...
0
votes
1
answer
112
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 ...
1
vote
0
answers
226
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 ...
1
vote
1
answer
323
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, ...
0
votes
2
answers
458
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 ...
0
votes
1
answer
90
views
Schottky diode polarity attiny85 dev board
This dev board, forgive my second question on it today.
My question is regarding the Schottky diode. It looks to me like the USB 5V is wired to the cathode. Wouldn't that mean it would only allow ...
0
votes
1
answer
449
views
Why is there a 5V linear regulator on this USB ATTiny85 dev board?
This dev board. 78M05G regulator, attiny85 MCU.
Similar (ON MC78Mx05) regulators' dropout voltage is listed at 2V0. USB voltage is specified at 5V0 (+0V25)(-0V55). The ATTiny85 can take 2V7 to 5V5, ...
2
votes
1
answer
248
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 ...
1
vote
0
answers
212
views
ATtiny85 Yikes Error While Burning Bootloader
I'm using an Elegoo uno to burn the ArduinoISP example code on to an ATtiny85 SMD. I wired the board according to the "#define USE_OLD_STYLE_WIRING" using pins 13/12/11/10. The wiring ...
1
vote
0
answers
163
views
Why doesn't USB power the circuit?
I am absolutely new to electrical stuff, and I am just trying to create my first project. I am basically trying to drive a strip of RGB LEDs (in a form of a Christmas tree) using attiny85. I have ...
1
vote
0
answers
90
views
Attiny85 Serial Transfer INT from Teensy 4.1
Goal: Transfer incoming Analog Pot Data into Attiny85, convert to INT and send it out to Teensy 4.1 to read.
I have programmed my ATTiny85 to handle a 7 Segment LED (partial code below). It takes the ...
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 ...
0
votes
0
answers
396
views
Controlling mosfet with a battery-powered attiny85
I have to control a MOSFET in switch mode. However, the whole circuit including AtTiny is powered by a LiPo battery. AFAIK AtTiny's output pin voltage is somewhere between 0.8*Vdd and Vdd and I'm ...