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
0 answers
26 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. ...
user avatar
0 votes
1 answer
50 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
  • 103
1 vote
1 answer
44 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 ...
user avatar
0 votes
1 answer
63 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 ...
user avatar
  • 103
0 votes
0 answers
55 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 ...
user avatar
0 votes
1 answer
60 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 ...
user avatar
  • 101
0 votes
1 answer
53 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 ... ...
user avatar
4 votes
1 answer
232 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 ...
user avatar
  • 175
2 votes
2 answers
61 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 ...
user avatar
  • 67
1 vote
2 answers
143 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 ...
user avatar
  • 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 ...
user avatar
0 votes
1 answer
76 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 ...
user avatar
  • 11
1 vote
1 answer
50 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 ...
user avatar
  • 309
0 votes
1 answer
91 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 ...
user avatar
  • 309
1 vote
0 answers
68 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 ...
user avatar
  • 29
1 vote
0 answers
54 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). ...
user avatar
  • 11
0 votes
0 answers
45 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 ...
user avatar
0 votes
1 answer
83 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 ...
user avatar
  • 31
0 votes
1 answer
102 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 ...
user avatar
  • 5
0 votes
1 answer
255 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 ...
user avatar
2 votes
1 answer
83 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 ...
user avatar
1 vote
2 answers
104 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 ...
user avatar
0 votes
1 answer
100 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. ...
user avatar
1 vote
1 answer
54 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
0 votes
1 answer
68 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 ...
user avatar
  • 235
0 votes
2 answers
55 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 ...
user avatar
0 votes
1 answer
77 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: ...
user avatar
  • 235
0 votes
2 answers
115 views

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

Observe the following example code (Microcontroller used: ATtiny84A): ...
user avatar
  • 235
1 vote
1 answer
154 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, ...
user avatar
1 vote
1 answer
113 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 ...
user avatar
  • 13
0 votes
2 answers
69 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 ...
user avatar
  • 11
0 votes
2 answers
76 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 ...
user avatar
  • 221
0 votes
1 answer
140 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 ...
user avatar
  • 3
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?
user avatar
  • 3
0 votes
1 answer
37 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 ...
user avatar
  • 107
1 vote
3 answers
662 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 ...
user avatar
  • 125
0 votes
1 answer
81 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 ...
user avatar
  • 70
0 votes
1 answer
75 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)....
user avatar
  • 70
0 votes
1 answer
221 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 ...
user avatar
0 votes
1 answer
114 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 ...
user avatar
0 votes
1 answer
58 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 "...
user avatar
  • 27
9 votes
2 answers
2k 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 ...
user avatar
  • 229
0 votes
0 answers
72 views

Can I use this circuit to control model trains with?

I am currently researching and developing several arduino/attiny projects for model railway applications. One of the projects is a method to 'catch' an analog train and gently slow it down using a ...
user avatar
  • 259
0 votes
2 answers
462 views

Control MOSFET with PWM signal from attiny85

I am trying to make a simple attiny circuit that switches 5V through PWM into 3.2V. The load will be a vape coil that draws 2A at 3.2V, so the 490Hz PWM signal is fine. When I tested the circuit with ...
user avatar
0 votes
1 answer
125 views

Voltage divider in combination with pull-down resistor

I am working on a project using the Attiny13 and a simple push button. Since I power the whole circuit with a 3.7V 18650 battery, I have to use a voltage divider to make it safe for the Attiny ...
user avatar
0 votes
1 answer
51 views

Use attiny as an external watchout timer

I like to failsafe an Atmega8 mcu despite having its own WDT. does it make sense that if I add an attiny to the circuit to check if each loop is taking a specific time, if not reset the Atmega chip?
user avatar
3 votes
0 answers
87 views

Blinking fishing lure, best way to save this design?

Background I ordered 10 PCBs with a design for a blinking fishing lure (it's a hobby project.) I have discovered I made a mistake when I designed it and wanted to see if anyone has any ideas how to ...
user avatar
  • 41
3 votes
2 answers
181 views

How to prevent short circuit between output pins

I am trying to hack some signals coming from an old computer going to a Floppy drive using an ATtiny1614 microcontroller. Normally the computer has full control of the signal lines but at some window ...
user avatar
1 vote
0 answers
104 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 ...
user avatar
  • 41

1
2 3 4 5
10