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
1
vote
1answer
81 views

Thermal regulator on DS18B20 and ATtiny2313A

I'm working on a thermal regulator for a greenhouse. My device will use ATtiny2313A as uC and DS18B20 as thermal sensor. I also use 1602 LCD display to monitor current temperature and set low and high ...
5
votes
2answers
472 views

Programming several AVRs with one ISP: which line to break?

Let's suppose that I have two AVRs connected to one ISP connector. To programm only one MCU in this configuration I neet to break one (or mayby several) lines goes to the MCU I don't want to be ...
0
votes
1answer
87 views

Receive serial data on multiple pins ATTINY85 [closed]

I am working on a project in which multiple ATTINY's need to send numerical data between each other. In most cases the ATTINY will have to receive multiple streams of data on different pins. See the ...
1
vote
2answers
57 views

could I just add a microcontroller or timer to this transmitter circuit to turn it on and off so that it lasts longer?

I am thinking of making my own UHF tracking transmitters for a wildlife study. Could I just connect a low power microcontroller to the Vcc part of this circuit http://www.instructables.com/id/Tiny-...
0
votes
1answer
116 views

Attiny4 - Possible Errata Found With PWM

I have searched the AtTiny data sheet and not found anything about this. I'm experiencing a weird PWM bug. When I expect 100% on I'm getting less. I'm using an inverted PWM scheme, so setting it equal ...
1
vote
0answers
359 views

Attiny fuses, lock bits for ELF file

I am trying to embed code in my Attiny4 project that will set fuses and lock bits(In AtmelStudio 7). I copy/pasted the code that Atmel suggests here: ...
0
votes
1answer
144 views

ATTINY84 cannot get PWM to work at all

I've recently been moving from Arduino environments to AVR, and I'm programming a Tiny84 with the Sparkfun USBTiny programmer and Atmel Studio 7. For the life of me, I cannot figure out why I can't ...
2
votes
2answers
6k views

How to achieve low power consumption with ATTINY85

I am creating a project that uses an ATTINY85. Most of the time, the circuit should be off and consume as little power as possible. According to the data sheet, in power-down mode, the microcontroller ...
0
votes
1answer
364 views

Attiny 45 use reset pin as analog input?

So after debugging for 6h+ I am stuck at that the reset pin of my attiny 45 needs to differentiate between two voltage levels. (5v and 3.7v) Ive seen in the datasheet that this pin has an adc. So it ...
1
vote
1answer
125 views

Clip on connector to program board (so no extra weight when not programming) [closed]

I am designing a circuit with an Attiny85 microcontroller and a temperature sensor, eventually I want everything including the battery to weigh less than 5g (preferably<3g). I want to be able to ...
5
votes
1answer
633 views

Strange behaviour of Attiny's ADC

...
0
votes
2answers
174 views

Trigger digital interrupt on negative voltage

For a little project of mine (FPV OSD for Quadcopter Camera) I need to detect every time the signal voltage goes negative. The Signal I get is NTSC. Here each line sync is marked by the voltage going ...
0
votes
1answer
2k views

usbasp with avrdude: error: program enable: target doesn't answer. 1

I purchased a "usbasp" programmer from AliExpress for use with my ATtiny84A AVR devices. This has the text "USBASP V2.0 LC Technology" screenprinted on the top of the PCB, and it looks very much like ...
0
votes
1answer
728 views

How many LEDs can I connect to each attiny85 port?

I only learnt about the attiny85 microprocessor a few days ago, but I'm very amazed with its capabilities, so I would like to start making some toys with them. However since I'm very new at it, I have ...
0
votes
2answers
160 views

What happens to 2 INPUT_PULLUP linked together?

I have an Arduino project (attiny85) with an input pin configured as INPUT_PULLUP. I've got an another Arduino a few meters far from the first one. Both input pins are connected together to a ...
1
vote
2answers
1k views

ATtiny13a capacitive power supply

I would like to power my Attiny13a MCU with a transformerless capacitive power supply. The MCU itself needs only a few milli amps and it will drive 2 LEDs at 15mA each through it's digital pins. So I ...
1
vote
1answer
330 views

Programming ATtiny85 for 5 sec delay [closed]

I am trying to work with attiny85 to give a delay of 5 sec when a signal from IR sensor, before giving it to 8051. I am quite not getting the code work for it as it should. Actually I am programming ...
2
votes
3answers
1k views

ATtiny13a base resistor for 2N2222A

I have a small magnetic buzzer which needs to be turned on and off at 10Hz speed via an attiny13a mcu io pin. Since the buzzer is a magnetic one I am using a 2N2222A BJT NPN transistor for the ...
1
vote
2answers
823 views

Use LED instead of Zener

I'm planning to assemble a circuit this weekend; it is basically an attiny85 with a USB interface. The circuit is well known on the internet; see for instance this schematic: (Image taken from http://...
0
votes
1answer
574 views

ATTiny85 Not Working at all

I am using Arduino to program my ATTiny85 like this. I am trying to make a simple blink example, here's the code: ...
0
votes
1answer
767 views

calculating micro controller power consumption [duplicate]

I have searched and looked through the data sheet and I can't find the information I am looking for. I am designing a circuit that uses an ATtiny45-20PU operating at 5V. I will be using three ...
0
votes
2answers
367 views

Do I need undervoltage protection?

I am making a small, handheld device powered by a 9V battery. I am using this regulator and the ATtiny104. My question is, do I need to protect against a low voltage battery? The minimum input for the ...
1
vote
1answer
122 views

Will my circuit interfere with ATtiny25 in system programming?

I've got a simple circuit with an ATtiny25 on which I indend to do in system programming. I'm wondering, will the rest of my circuit interfere with the SPI programming? So the data sheet says: PB0 = ...
0
votes
0answers
332 views

Too much current for an Pololu A4988?

Originally I wanted to drive 4 micro stepper motors (2 in series) from two ATtiny84 chips directly. I have learned that this is not a viable option and now I have a revised plan. I have some A4988 ...
0
votes
2answers
144 views

RC oscillator model in attiny microcontroller

I was reading in the datasheet for the attiny85 that the internal RC oscillator can be callibrated to run at different frequencies based on the value in the OSCCAL register. (Page 194 graph: RC ...
0
votes
1answer
123 views

Using PWM to communicate between ATTiny85s

Some background: I am putting together a display to teach children about how neural circuits work. I am making a group of 'blocks' (each of which contains an ATTiny85, an indicator LED, and input/...
1
vote
2answers
396 views

Replace loop with timers in this ATtiny code

How can I rewrite the following to use timers? Note that this is an ATtiny which has just Timer0 and Timer1 Essentially I'm trying to software PWM on many output pins, more than the built-in PWM pins....
0
votes
1answer
571 views

Why does the LSR (logical shift right) instruction only require a single clock cycle to execute?

A while ago, I was reading the book Some Assembly Required on programming assembly for the avr family of microcontrollers... Early on, it explained that the LSL ( logical shift left ) instruction was ...
0
votes
3answers
116 views

Loading a shift register without displaying its contents/output?

I'm making an LED matrix using two DM7495N 4-bit shift registers and one 8-bit shift register. The 4-bit registers are for the anode columns and the 8-bit connects to transitstors controlling the ...
1
vote
0answers
215 views

Trouble getting attiny85 to drive nRF24l01+

I'm attempting to make an nRF24l01+ send out a simple identifying code when a button is pressed. I'm trying to keep the solution as small as possible, so I want to use the attiny85 to drive it. Her'...
0
votes
2answers
259 views

When trying to program Attiny13 with simple blink program avrdude shows “target doesn't answer” [closed]

avrdude is giving me this error message when trying to program: avrdude.exe: error: programm enable: target doesn't answer. avrdude.exe: initialization failed, rc=-1 Double check connections and ...
0
votes
2answers
641 views

ATtiny85 Servo PWM angle granularity

I am currently working on controlling servo motors with an ATtiny85. I have a hard time understanding how to achieve a fine granularity for the angles of the servo. I am using a similar technique as ...
0
votes
1answer
804 views

Turning on and off pin change interrupts ATtiny85

I know that pin change interrupts can be turned on for the ATtiny85 by enabling PCIs using the GIMSK register, then setting which pins to turn it on for by using the PCMSK register, then lastly ...
0
votes
1answer
260 views

My ATTiny84 circuit works fine until I connect a piezo buzzer

I've got a mini-game coded with an ATTiny84, a shifter, 7 LEDs and two buttons, plus accompanying resistors. It works great! Until I connect a passive piezo buzzer, that is. Then the timings go off, ...
0
votes
0answers
65 views

Too low voltage on digital input on attiny45

I'm using one of my attiny's pins as digital input. I am using a 2k2 pulldown resistor on the input. I am applying a simple square wave generated by a separate waveform generator. The high state for ...
0
votes
2answers
966 views

Delay doesn't work (avr attiny 26, delay.h)

I am trying to learn how to write programs to microcontroller, and started with very simple things like LED blinking with given frequency, or controlled by button. However, I have problems with using ...
1
vote
0answers
204 views

Software flashing attiny167 from RPi with avrdude

I am trying to flash a program onto an attiny167 (already bootloaded with the micronucleus bootloader) with a Raspberry Pi via avrdude and USB. Background I have 50 Raspberry Pi 3B's connected to an ...
3
votes
3answers
1k views

What kind of IC is “ATMLU324” “16B 1” “Z8J0534B”?

I recently bought what I thought it would be an ATtiny85. After a few unsuccessful tests, I discovered (guess what?) true ATtiny85 had "ATtiny85" printed on it, like this one: Mine is this one: The ...
0
votes
1answer
175 views

STK600 routing & socket for SOIC8 ATtiny85 [closed]

I just purchased an STK600 (Atmel programmer for AVR8/32b) and a bunch of ATtiny85 chips in a DIP8 package. The documentation of Atmel is really outdated on the routing and socket cards to use. From ...
0
votes
0answers
93 views

ATMega/Tiny barely working on breadboard without ISP

currently I want to get an ATMega328P and an ATTiny85 to work on a breadboard, which should talk to each other and an LCD via TWI. Anyway, I came across some issues I don't seem to be able to fix at ...
2
votes
4answers
593 views

Is the ATtiny85 actually used in any consumer electronics?

I was wondering if anyone here knows of any products that utilize the ATtiny85. It appears to me that it's solely used by makers/electronics enthusiasts. I'm asking because I think it would be ...
1
vote
2answers
276 views

Polling several buttons from an interrupt

I am trying to poll 3 different buttons from a watchdog time out interrupt, on an ATtiny13. My code works perfectly for individual buttons, however I can't seem to be able to poll all 3 in a loop. ...
0
votes
2answers
104 views

Using switches installed across pins on AVR

I have the following layout, the switches are part of an existing hardware piece I'd like to reuse. I'd like to be able to detect button presses on the vol+ and vol- buttons. The plan was to actively ...
-3
votes
1answer
994 views

cut power before voltage is too low for attiny

I have an attiny85 powered with a 220v - 5v converter. I have to do some actions when power is cut off. So to do this I have a super capacitor (2*2.5v) to keep enought power. My problem is when super ...
0
votes
3answers
128 views

Discrepancy on the ADC input impedance in the ATtiny datasheet 1..100k or 100M?

I found a discrepancy in the ATtiny datasheet. While the section explaining the ADC shows a simplified schematic with a 1...100 kOhm series resistor, the characteristics table shows 100 MOhm. ...
1
vote
3answers
527 views

ATtiny85 pin as output, what is input impedance?

I am working on a project that involves using an ATtiny85 to deliver a PWM signal to an RC filter. On the other side of the filter is an OP AMP that does not draw any current. My question is: is it ...
-5
votes
2answers
413 views

Can I use Attiny insted of Arduino uno? [closed]

can anyone suggest me that, can i use a Attiny85 instead of Arduino uno board? and how it can be posible?
0
votes
2answers
76 views

How do I use an ATTiny board with right angled pins on a breadboard?

I created a project on an Uno as a proof of concept and now have reduced the code and squeezed it onto an ATTiny. Before I transfer it all to a PCB I want to get it going on a solderless breadboard ...
2
votes
1answer
125 views

ATTINY84 - EEPROM read cycle time

Thought this was easy, but I can't find this information on how long / how many cycles a EEPROM read operation on an ATTINY84 takes. Page 22 of the datasheet has a table with write and erase times: ...
0
votes
2answers
564 views

Does a chip retain information in sleep mode?

I'm trying to write a long term timer function on an attiny85 and currently I'm using a counter. I'm experimenting using sleep mode as detailed here. I'm wondering if the chip "retains" information in ...