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() ...
  • 1,167
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: ...
  • 1,183
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 ...
  • 499
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 ...
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 ...
  • 55
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 ...
  • 21
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, ...
  • 103
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. ...
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 ...
  • 103
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 ...
  • 103
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 ...
  • 101
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 ...
  • 219
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 ...
  • 77
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 ...
  • 21
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 ...
  • 11
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 ...
  • 309
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 ...
  • 309
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 ...
  • 29
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). ...
  • 11
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
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 ...
  • 31
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 ...
  • 5
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 ...
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 ...
  • 235
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 ...
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: ...
  • 235
0 votes
2 answers
117 views

`sizeof` Function Is not Working as Expected With AVR Microcontroller [closed]

Observe the following example code (Microcontroller used: ATtiny84A): ...
  • 235
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, ...
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 ...
  • 13
0 votes
2 answers
76 views

Help with electronic circuit for a bracelet that reads state from rfid tag attached to it and lights up the corresponding LED

I'd like to make a bracelet which has an RFID tag and LEDs inside of it. I made a device (using Arduino and rc522) that will categorise people's bracelets into one of 3 categories when it touches the ...
  • 11
0 votes
2 answers
84 views

How not to leave ISP reset floating?

I have read that it is inadvisable to leave the reset pin on an MCU floating, also I would like to expose the pins of my ATtiny84 so that it can be programmed by an Arduino. Is the 10kΩ resistor in ...
  • 231
0 votes
1 answer
191 views

Setting a timer on Attiny1604

My goal is to generate timer interrupt on Attiny1604. I don't need a specific frequency right now, I just need to understand the inner workings and get it under control. I will be using the 16-bit ...
  • 45
0 votes
1 answer
42 views

Clarification on ATTiny45

What is the functionality of negative reset pin in ATTiny45? Am I correct that reset pin is used to reset the controller to some random state or am I wrong?
0 votes
1 answer
39 views

Problem or misunderstand of ADATE bit on ATTiny45

I have 2 buttons connected to pulled-down ADC input. I want to trigger ISR(SIG_ADC) when ADC finishes conversion - this is working. If I start ADC using ...
  • 107
1 vote
3 answers
873 views

How to securely lock 100% a microcontroller like ESP32 or ATtiny85 or any other ATtiny?

I have been doing research on how to securely lock and prevent 100% from someone seeing my code. ESP32 can be "hacked" see here. ATtiny has fuse bits that can be set to protect the code but ...
  • 125
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 ...
  • 43
0 votes
1 answer
80 views

Need help with little assembly language code

Can anyone help me convert the below assembly language code to Arduino (Embedded C) code. I'm trying to program ATTiny24 as an SPI slave to establish communication between it and Arduino NANO (master)....
  • 43
0 votes
1 answer
313 views

How do I invoke pymcuprog?

I have successfully created an ATtiny406 binary using avr-gcc in Linux, and I can program it to the device via Atmel-ICE under Atmel Studio in Windows, and it ...
0 votes
1 answer
139 views

Controlling WS2818B matrix with ATTiny85

I am working on a small LED board project. The LED board is a 16x16 panel of WS2818B LEDs; they are also known as Neopixels. Controlling these thing is a bit of a pain, and I thought I would look ...
0 votes
1 answer
65 views

24V with IRF3708

I've a strange issue. I wired everything up like that: The ATTiny13 changes, for test purposes, every 10 seconds between HIGH and LOW. Since the IRF3708 needs 2.8V to switch state, I use the 5V "...
  • 27
9 votes
2 answers
3k views

What does "Not recommended for new designs" mean in an ATtiny datasheet?

I am making my own circuit and I am using ATtiny10-TS8R (I couldn't buy any another type for now), but I found (6) in the datasheet on the part I want to use: As noted in point (6), it says "Not ...
  • 229

1
2 3 4 5
10