Questions tagged [attiny85]
ATtiny85 is small, low-power 8-bit, 8-pin RISC microcontroller from Microchip.
149 questions
0
votes
1
answer
76
views
ESP32 to ATtiny85 communication on large grid PCB
I want to have a grid of faders/sensors/LEDs/buttons (with ATtiny85s) that I can move around, and that all talk to an ESP that sends data over the network.
The idea is to have a PCB with traces for 4 ...
0
votes
1
answer
81
views
ATtiny85 pin connection
I'm looking at a tutorial
( https://www.teamxnl.com/how-to-flash-an-attiny-25-45-or-85-with-arduino/ )
and I'm confused about one of the pin connections illustrated.
I've read that, for the 85, Pin1/...
0
votes
0
answers
47
views
MPU6500 accelerometer/gyroscope + ATTINY85 PCB schematic
I'm new to designing PCBs and have wanted to make a tiny accelerometer/gyroscope circuit for ages now. I did some ChatGPT-ing and digging around on the internet to come up with my own PCB which I ...
1
vote
1
answer
187
views
I'm falling down a rabbit hole with Voltage and Current limiting and ATTiny-85PU
How many things will I need to add onto each unit, described below, to get it operate safely?
The essential components are:
One 18650 3.7 V Li battery with a Charge-Discharge mini-board as listed ...
2
votes
2
answers
2k
views
Will a restless MCU survive long enough?
I am using ATtiny85 in a project. Due to some reason I have to permanently connect the VCC to a battery. That is, the VCC pin won't be disconnected ever from the power source. When I would like to ...
2
votes
1
answer
100
views
Attiny85 I2C connection issues and return code of endTransmission
I have a component made on top of IS31FL3731 which I try to use together with Attiny85 via I2C on Arduino.
It is working fine with Wire.h and for example Arduino Micro, but for some unknown reason it ...
0
votes
0
answers
102
views
Arduino PWM controlled voltage regulator with ammeter and voltmeter
[![enter image description here][2]][2]
As the title suggests, I am making an Arduino voltage regulator that also reads the voltage of the output it's providing and the amperage of the connected load.
...
0
votes
0
answers
39
views
Differences in UV Sensor Readings Between Arduino Uno and ATTiny85 Using AnalogReference
I've been working on a project involving UV sensor readings using both an Arduino Uno and an ATTiny85. However, I've encountered discrepancies in the UV index values obtained from the two different ...
0
votes
0
answers
104
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 ...
0
votes
0
answers
55
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 ...
0
votes
0
answers
396
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 ...
0
votes
1
answer
167
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 ...
0
votes
0
answers
130
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:
...
2
votes
1
answer
189
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 ...
0
votes
0
answers
134
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 ...
0
votes
2
answers
493
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)
2
votes
2
answers
169
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
102
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
154
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
208
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
372
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
238
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
145
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
264
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
108
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
198
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
121
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
149
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
151
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
197
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
143
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
106
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
576
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
442
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
575
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
113
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
221
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
1k
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
66
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
186
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
489
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
687
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
151
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
102
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
176
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
5k
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
536
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
2k
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
383
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 ...
5
votes
3
answers
634
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 ...