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
2 answers
57 views

ATTiny85 : how does it know it's to be programmed? (eg is it overvoltage, strange restart seqience, etc)

I am new to ATtiny MCUs and am in a bit of a chicken and egg situation. The ATtiny85 looks like it would fit my application, but I'd need to use all five signal pins (3 analogue in, 2 digital out). I'...
Dan's user avatar
  • 506
0 votes
0 answers
29 views

PIR Sensor Interference When RF Transmitting

I have created a small DIY circuit which sends a signal over 433.92Mhz when a PIR sensor is triggered. The circuit consists of 4 modules soldered onto stripboard. Schematic: Components are: 0.71mm ...
Jonas's user avatar
  • 179
0 votes
0 answers
49 views

capacitive soil moisture sensor connected to attiny85

je suis en cours de créer une circuit électronique d'un capteur d'humidité du sol capacitif avec un aop pour amplifier le signal sortie de capteur , et ce capteur relie avec le microcontrolleur ...
Ayda Benayed's user avatar
0 votes
1 answer
63 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 ...
Ash Ketchup's user avatar
1 vote
1 answer
44 views

Low power consumption/leakage tips and tricks (input NC magnetic reed switches)

I have an ATtiny412 that has 2 pins (PA1, PA2) set as internal input pullups. These 2 pins (PA1, PA2) sense magnetic reed switches with the NC setting. GND is active when closed on these switches. The ...
Jonas's user avatar
  • 179
0 votes
1 answer
84 views

Low cost 12V brushed DC motor driving - circuit review

I am looking to drive a 12 V DC motor (the application is a 3-speed fan) and I have a basic schematic drawing done and would like to request you all to review and provide feedback/improvements. My ...
Adithi's user avatar
  • 3
0 votes
0 answers
55 views

MAX31888 on ATtiny

I'm using an ATtiny13A, which I'm trying to read a MAX31888 temperature sensor with. I've been given one of said sensors on a breakout board wired according to this diagram: I'm using this library to ...
Boyfinn's user avatar
4 votes
1 answer
527 views

How to prevent photoresistor sensor from draining battery

I'm looking for a simple hack to minimise current when detecting change in light intensity using photoresistor. I'm using ATTiny85 in deep sleep (power down, ADC disabled, using below 1 microamp) ...
PanJanek's user avatar
  • 279
0 votes
1 answer
110 views

Is this soft latch switch appropriate for what I’m doing?

I'm trying to include a 5V soft latch switch into a circuit I've already made. The circuit consists of an ATtiny84, DFPlayerMini, a 3V DC motor, and a few other small components. Basically what I'm ...
A Friend's user avatar
0 votes
1 answer
74 views

ATtiny404 ADC setup - incomplete?

As a test I'm trying to set up the ADC of an ATtiny404 to read from pin B0, then cause a delay in blinking an LED on pin A1. However, it seems to blink at the same rate (~1 Hz) regardless of what I do ...
Mandias's user avatar
  • 113
0 votes
1 answer
172 views

Problems getting USBasp to connect with ATMEGA16 / ATMEGA32 Development board and PC in order to flash a bios chip

AVR ATMEGA16 Minimum System Board ATmega32 Development Board + USB ISP USBasp Programmer ISP ATTiny 51 Board and PLCC32 to DIP32 EZ Programmer Adapter Socket Hi all, Very very new to all this... I ...
randompunk's user avatar
0 votes
2 answers
96 views

How can I sense Infrared Light properly to detect direction of Motion

I've designed the schematic below: Basically, I want to detect direction of motion at a door frame from the top to turn on or off a relay which is probably connected to lights. The phototransistors ...
CaveScientist's user avatar
0 votes
1 answer
105 views

DfPlayer Mini not working when using three LR44 batteries

I'm working on a small project that plays audio. This project uses an ATtiny85 and a DFPlayer Mini as well as some other small components to make the whole thing work. I've tested the circuit using an ...
A Friend's user avatar
1 vote
0 answers
46 views

Issues with AVRISP MKII programmer

I am trying to program ATtiny10 using AVRISP MKII programmer and AVRDUDESS, spend 2 days trying to flash it but had no luck. Now I came up with a few issues regarding AVRISP MKII programmer, which ...
Dominykas's user avatar
  • 377
2 votes
1 answer
383 views

How to flash ATtiny10?

I am trying to make LED blinker for my project using ATtiny10, I try Blink example from Arduino IDE. I also made custom PCB: I even found instructables link, how to program it:https://www....
Dominykas's user avatar
  • 377
1 vote
2 answers
134 views

ATTiny32xx, capacitor on RESET/UPDI pin

I am working on a project using an ATTiny3227. (Datasheet for reference) All ATTinys of this series share one pin for UPDI (programming) and RESET. In the datasheet it is recommended to add a ...
Reewen's user avatar
  • 85
2 votes
1 answer
218 views

How to calculate system clock for ticks? I need to fire the timer every 60 secs (Attiny 404)

My timer initialisation ...
jackrussel fernandis's user avatar
0 votes
1 answer
165 views

ATtiny10 sleep mode

I have a very basic ongoing project that involves 8 LEDs, push-button tack switch with 10 kΩ pull up resistor, and an ATtiny10 microcontroller. The entire system is powered by a coin cell battery with ...
Warranty_void's user avatar
0 votes
1 answer
44 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 ...
19172281's user avatar
  • 743
0 votes
2 answers
144 views

Latching push switch without a programmable IC

Is it possible to make a push switch latching without using a programmable IC? I have a circuit with a 555 chip creating a square wave. I would like to add a push switch which when pressed once will ...
fKelectronicR's user avatar
1 vote
1 answer
105 views

Control a large number of LEDs from minimal output pins

I am working on a project that uses an Attiny84 to control a large number of LEDs. The number of LEDs far outnumbers the number of I/O pins. What concepts and principles should I be researching into ...
fKelectronicR's user avatar
1 vote
3 answers
209 views

Delay.h on ATtiny45 vs. ATtiny461 in Microchip Studio

I noticed that the Delay.h wasn't working well in a project when used with an ATtiny45, so I've made a small piece of code to test where I went wrong with my coding. I've just made a blinky-LED ...
Ksack's user avatar
  • 11
1 vote
1 answer
145 views

avr-gcc optimization deleting register writes on ATTiny402

I'm using avr-gcc (12.1.0, built with this script: https://github.com/ZakKemble/avr-gcc-build) to compile for the ATtiny402 and encountering problems with code optimization. Specifically, the compiler ...
andy28's user avatar
  • 13
1 vote
1 answer
110 views

Is ATtiny13 reliable for long term project?

I'm now designing a weather meter to measure the weather in my area. The control board of the meter I'm designing will take the data from the probe and send back to the main station through a FM ...
Sairext Irkaris's user avatar
0 votes
1 answer
189 views

How often can an ATtiny85 be flashed?

I wonder how often I can flash an ATtiny85 before the EEPROM will give up. Solved Sometimes it is just on the first page of the datasheet:
Tintenfisch's user avatar
2 votes
1 answer
351 views

Is reading multiple buttons presses with ATtiny analog input a reliable method?

I need to read the input from 8 different push buttons on an ATtiny microcontroller. After researching how to do this with the least number of pins, I found out about using a voltage divider with ...
JV Lobo's user avatar
  • 355
0 votes
1 answer
88 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 ...
Abhijith CB's user avatar
4 votes
1 answer
156 views

Purpose of 47R resistor in USB interface

I was making a simple circuit to directly connect the ATTiny85 to a laptop with USB. What is the purpose of the 47R resistors in this? What effect can these resistors have with such little resistance? ...
oof baroomf's user avatar
0 votes
1 answer
138 views

Proteus ATTiny85/ATMega328P CLKOUT not sending any signal at all - Why?

I set all the fuse bits correctly according to the datasheet, It seems like I just need to set the CLKOUT bits correctly, and I should get a signal of some sort. I can still send signals to the GPIO ...
Jeygopi's user avatar
17 votes
7 answers
4k views

Use cases for RAM-less microcontrollers

In a different question around a specific microcontroller (ATtiny12 - datasheet) I came to ask myself: What are the intended use cases for such devices? Does it target the segment: Too "complex&...
ElectronicsStudent's user avatar
1 vote
3 answers
171 views

How to get output from an ATTINY12L microcontroller

So far I have only worked with ATmega32 chips, programming them in C. Now I have to work with an ATTINY12, which can only be programmed in ASM. As a proof of concept, I wrote a simple program that ...
Demento's user avatar
  • 121
0 votes
1 answer
122 views

Attiny85 drawing 100mA idle

I'm trying to build a timed fan, but I seem to be drawing more current from the battery than expected. Not shown: 3.7V Li-Ion battery connected to a 5V boost converter (which is how I'm getting the ...
explodingfilms101's user avatar
0 votes
3 answers
324 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, ...
Bitenco's user avatar
1 vote
1 answer
101 views

ATtiny861 SPI via USI Port A or Port B?

I'm struggling to understand the ATtiny861 datasheet with respect to the pins available for SPI communication. My goal is to configure my ATtiny861 as a SPI peripheral and use my USBtinyISP programmer ...
dvogel's user avatar
  • 121
1 vote
1 answer
91 views

Interfacing two Attinys MCUS by one pwm wire only. Is it a possible approach?

I have one Attiny85 and an Attiny167 that are connected by a 4 pin one meter cable. The Attiny85 controls a sensor at one end of the cable, and the Attiny167 controls the battery and other stuff at ...
Rodrigo's user avatar
  • 471
0 votes
1 answer
135 views

Reading ACS71020 over I2C gives choppy and inaccurate data

I am programming ATtiny414 which read current, power and detect zero-crossing. For Test, I connect 220V 72W light bulb but I can't read accurate value. Also I observe zero-crossing pin and it is ...
Jacob's user avatar
  • 1
2 votes
1 answer
92 views

ATTiny861A fast PWM mode not working

For a couple of hours, I struggle to find the source of my PWM output to not generate a PWM signal. I changed register values to explicitly show their contents - I hope it will make the diagnostics ...
drydre's user avatar
  • 75
2 votes
1 answer
141 views

Maximum LEDs on a pin of an AVR Microcontroller

(the schematics is just an example, I will choose different resistors and transistors) I started to design my own Xmas PCB tree. I want to control 10 LEDs (2.1[V] drop, and 20 mA IF ) with an ATtiny5 ...
Stefan Mihai Lorincz's user avatar
5 votes
11 answers
3k views

Best way to communicate between microcontrollers

I am looking for the best (cheapest, smallest, least wires) way of communicating from my Raspberry Pi, to numerous inputs/outputs a few meters away (wired). For example, I will have a temperature/...
drew wood's user avatar
  • 239
0 votes
2 answers
883 views

How to make a single ADC conversion in ATtiny

I want to read from potentiometers via Attiny24A a single time. So far I managed to read the potentiometer at the start once but I want to read the pot values in a random place of the code. I've ...
CaveScientist's user avatar
2 votes
1 answer
182 views

Which consumes less current in microcontrollers: Always HIGH pins or always LOW pins?

I am driving a P-MOSFET (IRLML6402) with ATtiny24A microcontroller. This is a battery powered system; that's why ATtiny is always on sleep. I originally configured a BJT which is driven by the ...
CaveScientist's user avatar
0 votes
1 answer
92 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() ...
Nick Bolton's user avatar
  • 2,103
1 vote
0 answers
292 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: ...
Codebeat's user avatar
  • 1,326
1 vote
2 answers
170 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 ...
Daniel's user avatar
  • 949
1 vote
4 answers
258 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 ...
AWESDUDE COOL's user avatar
0 votes
2 answers
95 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 ...
Vulxcn's user avatar
  • 75
0 votes
0 answers
93 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 ...
Lorenzo's user avatar
  • 31
0 votes
1 answer
390 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, ...
stefan's user avatar
  • 103
0 votes
0 answers
78 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. ...
electro_noooobb's user avatar
0 votes
1 answer
334 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

1
2 3 4 5
11