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

learn more… | top users | synonyms

0
votes
2answers
46 views

DC-DC buck converter controlled by ATTINY - optimize PWM for maximum resolution

I got a solenoid with the following data: 1.25W 24V 460Ohm resistance Inductance value unknown I'm working on a sensor PCB which also needs to control the force of the solenoid. The sensor PCB is ...
3
votes
2answers
63 views

Does the internal 8Mhz oscillator in an ATTINY run even if no clocks are connected to it?

If I set up the fuses on an ATTINY so that the system clock uses the internal 128Khz oscillator (sometimes called the "Watchdog oscillator"), does the internal 8Mhz oscillator still run? It does not ...
17
votes
2answers
803 views

4-bit bus address selection via analog input pin: Monte Carlo simulation shows overlapping address values

I designed a small sensor PCB for my master thesis with an ATtiny44 microcontroller. I need about 200 of these boards for my application and 16 are always locally connected to controller board. The ...
0
votes
1answer
39 views

AYTINYx4 - execute other code during analog conversion

I am using an ATTINY44 in my current project. As I need to do some time sensitive switching I would like to avoid any unnecessary delay. To control another device (not time sensitive) I need to read ...
1
vote
1answer
44 views

Can I use ATtiny SPI and still be able to do in-system programming?

I'm building a cost sensitive device that requires SPI and a single analogue comparator. Looking at the spec, ATtiny20 or ATtiny48 would fit the bill. The requirement is to be able to program it in ...
2
votes
2answers
105 views

Why does the ATTiny84 have both an analog comparator and an ADC?

I have been reading through the datasheet for the ATTiny84A, and noticed that it has both an analog comparator and the ability to use its ADC in unipolar or bipolar differential mode. From what I can ...
0
votes
1answer
53 views

Servo control with 555 timer

first of all this is for an assignment so I have certain limitations, mainly cost. The problem I'm having is I have run out of PWM inputs on my ATtiny45 but I still want to drive a servo. The two PWM ...
0
votes
1answer
65 views

AtTiny85 reading from PIN

First, I'm kinda new to this AVR world, please don't be too hard. I'm running into a very simply problem. I'm trying to use the ATTiny85 inside the Arduino framework, but without the Arduino ...
0
votes
1answer
61 views

Digispark Attiny85 dev-board - Program via USB or UART/serial converter?

How do I program those Chinese ATtiny85 Digispark clones? Are they programmable via USB or do I have to use a USB to serial converter to program them? For example, this unit.
0
votes
4answers
88 views

Side effects of running an attiny13a directly on 9v

I'm doing a simple children's workshop in which they will build a small musical instrument on a breadboard with an attiny13a, ldr and a led. Right now it's powered by a 9v block and a regulator. ...
1
vote
1answer
44 views

ATtiny26l won't work without programmer

I'm running a simple program on an ATtiny26l but if i disconnect my AVRISP MK2 programmer it stops working completely. I'm supplying 5.4v to both VCC and AVCC pins (chcecked voltage).If i reconnect ...
0
votes
2answers
260 views

Difference and compatibility between AVR xxxA and xxx/xxxV series [duplicate]

This is kind of two questions(difference & compatibility), but since an extensive answer to the latter will probably include an answer to the former, I think it's okay. Anyway, on to the question:...
2
votes
1answer
97 views

How many mV ripple in DC is okay for powering an ATTINY?

I need to power an attiny85 from an MC3306A, and in order to calculate the values for the circuit I need to know the ripple I desire, what ripple mV is alright for an attiny to happily chug along?
0
votes
1answer
199 views

What is needed to store readable/writable data to flash/eeprom [closed]

I am wanting to add some readable/writeable memory to my ATmega8/attiny project where I can store data, recall the stored data, then overwrite the stored data. The stored data must be able to be ...
0
votes
1answer
74 views

Build remote wireless Wake-Up with Attiny85

I'm building a ultra-low-power system (mainly composed by an attiny85) that's in sleep state most of the time in order to extend battery life. I was wondering if there was any hack to wake up the ...
2
votes
7answers
186 views

No batteries power method (induction, motion, heat etc)

I am using an ATtiny85 to sleep for a long period of time, collect some data, send it over radio, and go back to sleep, after disabling everything possible. The ATtiny is currently powered by a coin ...
0
votes
2answers
144 views

Should I use an LP2953 to power an ATTiny85 with a 12v battery?

Like a lot of people I'm building a little transmitter unit with one of those cheap 433mhz transmitters and an ATTiny85, and I am having a problem with the power supply. Actually it is only the power ...
0
votes
1answer
75 views

Please review my board design

This is a follow up to my question from yesterday about my schematic Please review my RGB Controller I've fixed the incorrect DC jack component that was present in my previous question, along with ...
1
vote
2answers
90 views

What to do with USB power and ground when you have an external power supply?

I have a externally powered USB device. (It's actually my old VIC-20 computer, sort of) USB data is handled by an ATTiny85. The USB interface is based upon the V-USB easylogger. The ATTiny85 ...
-2
votes
1answer
79 views

Writing fuse-bits with HV programmer doesn't work

I bought 40 attiny13a chips from china but after receiving them, I couldn't program them with my USBasp programmer. I tried all of them with the same result - chips did not respond to the programmer. ...
1
vote
1answer
278 views

Getting ADC readings after waking a ATTiny85

I have this little project of mine that involves putting a ATTiny85 to sleep to save power. The main idea is to: 1- Putting ATTiny85 to sleep, including deactivation of the ADC 2- Wake-up MC on pin ...
0
votes
1answer
74 views

Controlling a servo with Attiny85 OCR1B

I currently have a project where I need to control a servo using OCR1B. I already figured out how to use one with Timer0, but I can't use that for this project though. So, my questions are: - How ...
2
votes
1answer
53 views

Best method of packet transmission between an array of sensor nodes?

Currently I'm working on a project where I'll have an array of four sensor nodes, each with three sensors. These sensor nodes need to send their data back to an ATMega controlled board for processing, ...
2
votes
3answers
160 views

DIY Christmas Tree LED Ornament – Adding SMD Switch to power on ATTiny45 and Wiring Tag Connect to Attiny

I have taken the Open Source Christmas Tree Ornament project from Brian Schulteis and put it on GitHub under newmatik/Weihnachtsbaum (please Fork!) with a couple of modifications: Added 20mm cell ...
0
votes
1answer
90 views

In-place programming of ATtiny85

I've been playing around with an idea for a little hand-held gaming device using a Nokia 5110 screen and an ATtiny85. The ATtiny is programmed using my Genuino UNO as ISP. I was wondering if it's ...
0
votes
2answers
128 views

Running Nokia 5110 with 3 pins

I recently received a Nokia 5110 LCD screen and have hooked it up to my Uno and got it displaying stuff. I'd like to try using it in a project with an ATtiny85 and found some resources to that effect,...
0
votes
2answers
141 views

“If” wrong interpreted when ADC=1023?

My code on ATtiny13A: ...
0
votes
2answers
34 views

RFM only works if i touch power supply line

I have a small system with a ATtiny84 and an RFM12B module that transmits data. The thing is it only transmits when i touch both GND and +VCC.. no matter what component it is on. Do i need mere caps ...
1
vote
2answers
73 views

Applying 2 x 12V to same component

The fan in my car dosen't turn on automatically anymore when the car gets too hot, but it will turn on when i switch on the A/C. So what i had in mind was to place a temperature sensor in the coolant ...
3
votes
3answers
121 views

How to avoid Attiny84 being powered on by a pulled up data line?

I've developed a simple sensor board based on the Attiny84a microcontroller which is able to communicate over a serial connection. I'm using an arduino bootloader and the SoftwareSerial library on ...
2
votes
1answer
95 views

ATtiny measuring voltage for battery charger

Would it be possible to use adc with the reference voltage at ground, to determine the voltage of say a battery? I was thinking of creating a battery charger with the attiny for automatic cutoff and ...
0
votes
0answers
159 views

Debounce a wake from sleep switch & long press registration AVR

Working on an ATTINY85 project which sends wall switch triggers over RF to a home automation server. They are battery powered, so I have them in sleep mode with the ...
3
votes
1answer
105 views

AVR PWM timer frequency

I'm learning how to use an Attiny84. I've generated a fast pwm signal. I managed to understand how to do this: ...
1
vote
2answers
330 views

Attiny85 (Pin 5 / reset) is always high

I have a couple Attiny85 based USB development boards (or rather, cheap Digispark clones from Ebay). The pin 5 seems to be always at high, no matter what I do. I am suspecting the manufacturer didn't ...
0
votes
1answer
264 views

Using an Adafruit Trinket 3.3v with a TIP120?

I'm new, so please go easy! I'm trying to use a TIP120 transistor as a switch in conjunction with an Adafruit Trinket Pro 3.3v. According to the documentation for the Trinket, the GPIO pins should be ...
1
vote
4answers
155 views

Read AVR watchdog timer

AVR Watchdog timers. Is there any way to read the watchdog timer from within the code? Intended use case: To get an approximate idea (very rough, +/- 1sec) of how long it has been since the ...
3
votes
0answers
51 views

Can Two Or More ATTinys Share One External Crystal? [duplicate]

I've got two I2C Slave ATTiny85 chips both running at 16MHz with external crystals. Can they both share a single crystal with the 22pf caps? Is there anything wrong with this? I don't have any free ...
3
votes
2answers
300 views

Subtle difference between ATtiny parts?

I want to purchase 20 MHz ATtiny85 chips in SOIC-8 on a full reel from Mouser. I found these two variants: ATtiny85-20SUR ATtiny85-20SHR I have studied the specifications but cannot for the life ...
0
votes
1answer
268 views

ATTiny85 Not responding to anything (Arduino UNO as programmer)

I'm trying to program 8 ATTiny85's I purchased from ebay but I can't seem to get any response from them. I have tried following several guides and even tried to use High Voltage Serial Programming ...
1
vote
1answer
359 views

ATTiny 841 PWM at 450kHz

I have managed to output 500kHz PWM at 50% duty cycle on PA2 TOCC1 of ATTiny841. ...
0
votes
1answer
55 views

ATtiny861A: ADC reference voltage should be 1 Volt under AVcc?

I just faced with that ATtiny861A datasheet forcing me to use analog reference voltage to be at least 1 Volt under analog supply voltage: Let me doubt this datasheet statement for two reasons: ...
1
vote
1answer
183 views

Customized torch/flash light using a perfboard with an attiny

I am currently working on customizing the flashing frequency of a torch light (customized intervals between on&off). To program the individual frequency I have made use of an attiny 85 ...
1
vote
2answers
156 views

AtTiny84 with USB

I am having some problems with the ATTiny84 and USB. I am creating an "arduino clone" but I want a simple (and especially compact on the board) way to implement a USB serial interface. This will only ...
1
vote
1answer
290 views

ATTiny45, LED strip, MOSFET, touch interface, but Vcc drops and tiny resets

I've developed a very little board with the ATTiny45 and mosfet (STD35NF06LT4 - http://www.farnell.com/datasheets/1689946.pdf ) to drive a high power LED strip at 24V. I have a 5V dc/dc converter (...
3
votes
1answer
127 views

How to issue the SLEEP command in Attiny

I want to put an Attiny13 to sleep. In short chapter 7 of the datasheet says you have to do the following: set sleep mode sleep enable (set SE bit) issue SLEEP command Generally this is ...
0
votes
2answers
168 views

How to program via ICSP when chip is in-circuit with interfering chips?

My Circuit is: USBTinyISP <-usi/icsp-> ATTiny85 <-usi/i2c-> MCP4725. That is, the USI pins used to program the t85 are also used for i2c in the final circuit. When I try to flash-program the ...
0
votes
2answers
149 views

I2C programming ATTiny88

I am beginner at programming uC's. I have read all the tutorials on what is I2C and how it works, but I couldnt find any help specific on how to create a connection between my sensor and ATTiny88 (...
1
vote
1answer
455 views

Low-Pass filter on AVcc pin for ATtiny

The datasheet for the ATtiny861a states that "If the ADC is used AVCC should be connected to VCC through a low-pass filter". The datasheet doesn't specify what values I should use or what style of low-...
2
votes
1answer
73 views

Finding the Pull-up Resistor Value

I am designing a wireless sensor node that will be operating off of 1.8V. I am using an Atmel ATtiny861a MCU with a CC2520EMK radio and a 23A1024 External memory chip. I have a chip select pin for ...
0
votes
1answer
32 views

ATtiny861 pin change interrupt on PA.2: error in datasheet?

I faced with some confusion in subject datasheet: In one section PA.2 should be masking by PCIE1 bit as PA.2 is PCINT2 input and it should be within PCINT[7:0] and PCINT[15:12] range: On the other ...