Questions tagged [attiny]

ATtiny is a family of small, low-power 8-bit RISC microcontrollers from Atmel. Commonly found in smaller Arduino prototyping platform boards and projects.

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

On ATtiny84, why does delay() stop working properly when RadioHead ASK is used? [closed]

Moved to: https://arduino.stackexchange.com/questions/90758/on-attiny84-why-does-delay-stop-working-properly-when-radiohead-ask-is-used When I call the delay() ...
0 votes
1 answer
434 views

Does Attiny13 pull a lot more current in sleep mode than Attiny85 or did I do something wrong?

First off, here is the code I have tested on both Attiny13A and Attiny85V: ...
1 vote
0 answers
35 views

Attiny88 with Micronucleus: Flash write error -1 most of time

I have this board with an Attiny88, a pin compatible Nano 'equivalent': I want to build a simple motor controller however most of the time when I upload a program I get this error: ...
0 votes
1 answer
1k views

ATTiny85 not working at all

I am using an Arduino to program my ATTiny85 like this. I am trying to make a simple blink example, here's the code: ...
1 vote
2 answers
90 views

ADC reading on ATtiny13, without dedicated clock?

I am in a design phase of a small circuit which is intended to measure an external voltage, with an ATtiny13. This AVR has a dedicated ADC hardware, which is suitable for my needs (need to detect ...
1 vote
4 answers
79 views

Resistor values for LED matrix

I am designing a binary coded watch with an attiny1616 MCU and an LED watchface. The matrix I designed is displayed below along with the rest of the schematic. The LEDs is 2.1V 30mA and I plan to ...
1 vote
2 answers
348 views

Low-power solar cell source using capacitors

I am designing a circuit using AtTiny10 to supply a downstream microcontroller with power using only capacitors and a small solar cell. Would the following design work ? The basic idea is that the ...
0 votes
2 answers
78 views

MCU not turning on via high side PMOS or PNP BJT

This board basically senses 24 VAC and drives a relay using the attiny10 as delay timer (already tried 555). The board will only be driving a few LEDs < 12 mA and a 5 V relay with ~40 mA coil ...
0 votes
0 answers
92 views

Why will this circuit only work if it is assembled live?

Updated Schematic picture. Some components (power supply, other things connected to the MOSFET) are omitted. The ICSP header was kept since I think it may be interfering somehow. I have an ATTiny84 ...
0 votes
1 answer
102 views

How to choose a phototransistor or photodiode?

I've found a photoresistor (yes, resistor, probably 30 years old) in my scrap box, attached it to an ATtiny as ambient light sensor, with a 100kΩ resistor as voltage divider towards +5V. On power on, ...
1 vote
1 answer
145 views

ATtiny10 not running program

Im using an arduino uno to upload code via TPI to an Attiny10-TSHR on breadboard. Communicating with the chip works fine and uploading code but it never runs the code. By dumping the chip memory I can ...
0 votes
1 answer
106 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 ...
0 votes
0 answers
33 views

Power issue with NRF24LO1 and ATtiny44

I am super frustrated with my NRF24LO1 module and ATtiny44. The thing is when it is connected to an Arduino board it works perfectly, but when I try powering up using battery the entire system halts. ...
1 vote
1 answer
151 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
1 answer
69 views

Ensuring full power from a battery

I'm trying to put together a breadboard solution involving an 18650 cell (routed through a LiPo charging board) that powers both an ATTiny85 and two NeoPixel sticks. Two buttons trigger interrupts ...
0 votes
0 answers
70 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
108 views

Why wouldn't an SPI SCK pin be a GPIO OUT pin too?

I have an ATtiny261 MCU. The pin diagram shows 2 digital out pins, PA1 and PB1. I've found a need for a 3rd output pin. From my (very) basic understanding of SPI, the clock is triggered on a rising or ...
0 votes
1 answer
143 views

Clone ATtiny13A flash memory using USB ASP programmer

I hope you are having a great day. May I kindly ask for a word of advice from the veterans in this field of Atmel micro-controllers? I am a novice getting into knowing things by hands on training ... ...
4 votes
1 answer
272 views

ATtiny13A LED blink delay doesn't work in OFF mode

I have a working USBasp which is uploading sketches to an ATtiny13A and using a simple blink sketch. The LED ON part is working fine, staying on for 2 seconds, but after turning the LED off, the ...
1 vote
2 answers
121 views

How to check LED current

I'd like to check if a lamp shines and if it's dead, a relay is supposed to switch. I thought about using an ATtiny with a Hall sensor. There are some sites that complain about the inconcurrency of ...
0 votes
1 answer
99 views

SPI communication between Arduino Nano and ATTiny24

I'm trying to make communication between Arduino Nano and ATTiny24 using SPI. I've written code for master(Nano) and slave(ATTiny24)(with great difficulty) but no luck getting the proper output. I'm ...
3 votes
2 answers
5k views

How do I avoid a reset when using the watchdog in interrupt mode and changing the timeout?

I'm writing a program for an ATtiny85. I want to use the watchdog to wake up from power down in certain intervals. It all works fine as long as the intervals for a watch dog event don't change within ...
2 votes
2 answers
65 views

Switching a "common" circuit with another

I have an ATTiny85 that switches 4 loads based on data from a (Software) Serial connection. I need to switch a fifth load on when any of the other four loads are switched on. I have no more IO pins ...
1 vote
2 answers
575 views

Can I generate frequencies faster than 32 MHz with ATTINY85?

I believe I can use the 64 MHz PLL clock with PWM to toggle every cycle and thereby generate a 32 MHz square wave output on an IO pin, right? Is there a trick to generate an even higher frequency (...
1 vote
2 answers
303 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 ...
18 votes
2 answers
2k views

Microcontroller works on breadboard, but not on PCB (which is proven to be correct)

Summary: I have two circuits: One on breaboard and one on PCB. I have two Microcontrollers: A commercial one (pre programmed) and a personal one (with whom I try to recreate the commercial one). The ...
0 votes
1 answer
94 views

Programming an ATtiny828 with an Arduino [closed]

I want to upload code using an Arduino to an ATtiny828, is this possible? I saw on YouTube you can upload code to an ATtiny85. Thank you in advance. I want to use this for a PCB design that implements ...
1 vote
1 answer
86 views

ATtiny2313 external 2 MHz crystal

I would like to run my ATtiny2313 from an external 2 MHz crystal, but I'm unsure how. I have seen images and examples where there are capacitors connected to ground after the crystal. Like this: But ...
0 votes
1 answer
125 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 ...
1 vote
0 answers
71 views

ATTiny406 | Unexpected PWM (Pulse Width Modulation) Output

We are experiencing strange PWM (analogWrite) behavior on pin PA3 of our ATTiny406 when our supply voltage exceeds ~11VDC. This pin is driving a MOSFET which controls the ground signal to the LED ...
1 vote
0 answers
60 views

ATTiny13 Eagle footprint

I am making a small project using ATTiny13 and designing the PCB using Eagle. The problem I have is that the pins of the ATTiny on the PCB seem to be opposite to where it should be (i.e. top/bottom). ...
0 votes
0 answers
56 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 ...
0 votes
1 answer
60 views

Common ground between ATTiny and 24 V motor, and between ATTiny and 12 V logic circuit, without connecting 24 V motor and 12 V logic grounds

I have a coin hopper which has a 12 V logic circuit and a 24 V motor. It also has 2 brass plates which sense the amount of coins in the unit, one plate has high voltage, and second has low. These ...
0 votes
2 answers
528 views

Simplex UART echo implementation on ATtiny

I'm currently trying to implement a simple UART echo application on the ATtiny85, with no additional pins other than RX/TX (no autoflow control). I'm using the Universal Serial Interface of the ...
0 votes
1 answer
96 views

ATtiny84a SPI communication disabled following chip erase

I am attempting to serially program an ATtiny84a using an ATmega645a. I am able to enter programming mode and read the device signature bytes, but after issuing a chip erase command, the ATtiny stops ...
0 votes
1 answer
744 views

Will MCP23017-E/SP be compatible with an ATtiny85? ATmega328P?

I mainly want to also be able to use the same I/O expanders with ATTiny85 projects since those chips have limited pins. I will be doing the main prototyping on an ...
0 votes
1 answer
121 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
435 views

Circuit works only if i touch it with my finger

i am having a problem with this circuit : Basically, the ATtiny85 waits for a signal on BS coming from a momentary button, when the button is pushed, it puts HIGH on the pin called Load to power up ...
2 votes
1 answer
121 views

Have I gotten this attiny13 based MOSFET circuit correctly?

I am bit new to electrical engineering and I was hoping to get a sanity check on my reasoning! I want to design a low-powered (battery-driven) plant watering PCB. It uses an attiny13 as the switch for ...
1 vote
2 answers
144 views

ATTiny204 accurate delay with correct fuses and F_CPU

So I worked with an ATTiny for the first time today and I was quite different from my regular Arduino / ESP8266 programming. When testing the Blink script I noticed that the delays weren't correct at ...
0 votes
1 answer
133 views

Latching circuit with ATtiny85

I would like to know if this circuit will work if i power up an Arduino (via PWR) I am suign this circuit as latching circuit and i do not know how to simulate it since i am new to electronics. ...
1 vote
1 answer
58 views

Communication between Controller and LED panels

I want to control multiple LED panels that have each a chap ATTiny on them which controls some WS2812 LEDs. There's a Master controller with an ESP8266 that is meant to send commands to the individual ...
0 votes
1 answer
48 views

ATtiny13A - PWM x 3, ADC x 2 [closed]

I want to control 1 RGB LED and 2 potentiometers by ATtiny13A. I want control the RGB LED by 3 PWM ports and read values of 2 potentiometers by 2 ADC ports. Is it available by ATtiny13A? Can I ...
2 votes
1 answer
516 views

Arduino to Attiny841 with ATTinyCore -- pins not working

I have code that works using Arduino. Because I wanted to size down the project, I replaced it with an Attiny841. Process: I soldered the 841 on an adapter and checked all pins using a multimeter ...
0 votes
1 answer
78 views

AVR GDB Inconsistencies

I'm trying to debug a program running on an ATtiny84A, and I am having trouble understanding either how to use it, or interpreting its output, or both. For testing purposes, I created a simple program ...
0 votes
2 answers
69 views

AVR "OUT" function. addressing port without constant

I am currently writing some assembly code that needs to address different I/O ports at certain times in my code. For example, at one point I may want to address PORTD4, and at another point I may want ...
1 vote
1 answer
122 views

Filtering power for attiny2313

I am asking for help with filtering input voltage for attiny2313. The schematics of the problematic board is here: The circuit is powered by a MEAN WELL RD-125A power supply 5+12V. There are 3 of ...
1 vote
1 answer
202 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
1 answer
1k views

Use an ATtiny85 instead of an ATtiny13 - Where do I place the XTAL?

Having looked at a circuit diagram in Beginners Introduction to the Assembly Language of ATMEL­ AVR ­Microprocessors by Gerhard Schmidt, I came across a circuit presented by the author (in which an ...
0 votes
1 answer
82 views

Unnexpected Behaviour From Software UART On ATtiny84A AVR

I am trying to implement a software UART for the ATtiny84A, as it does not come with a UART out of the box. The following is an example of the UART TX: ...

1
2 3 4 5
10