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
0answers
35 views

ULN2803 acting really strange when changing Vsupp from 9V to 5V

So I'm trying to replicate a camera flash for a model camera, I'm using an atTiny, pushbutton, some bright white leds and a pushbutton. My sketch is very similar to the ButtonStateChange Example in ...
3
votes
0answers
47 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
264 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
85 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 ...
0
votes
0answers
69 views

reverse engineering firmware

I have a HEX file with a firmware for Attiny45. What I want to do is to extract some kind of formula that is coded inside it. I have done some research (mostly to find out that "it is not possible", ...
1
vote
1answer
89 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
25 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
115 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
65 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
98 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
34 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
42 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
66 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 ...
0
votes
1answer
85 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 ...
1
vote
1answer
48 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
18 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 ...
0
votes
1answer
58 views

CS/SS pin configuration

I am using an ATtiny861a and I want to enable it to use SPI. In doing this I need to assign not one, but two CS/SS pins in order to communicate with a radio and an external memory. Does the CS/SS pin ...
0
votes
1answer
58 views

CC2520/ATtiny861A pin configuration

I am looking to hook up a radio with an ATtiny861A microcontroller. The radio that I will be using is the CC2520 from Texas Instruments. The RESETn pin(on the CC2520) will allow me to put my circuit ...
0
votes
1answer
91 views

For a 'customized' arduino consuming less energy making use of Attiny85 vs PCB Fabrication?

Currently I am working on a prototype project where I try to move a servo (6V) according to the level of light that is recognized by a photodiode making use of the ISR function. A torch light is used ...
3
votes
2answers
134 views

ADC calibration in ATTiny88

I'm writing an embedded app for ATtiny88 - one of its task is to measure voltages of serial connected two 12 V car batteries. The microcontroller is powered from around 4.5-5 V (LM317), measured ...
0
votes
1answer
106 views

Controlling dc motor in arduino with and without a load

I wonder if there is an alternative solution to this problem: I have a 3v water pump being controlled by an arduino, which pumps water out of a bucket. I would like the pump to turn off once the ...
1
vote
0answers
74 views

433 Mhz + Attiny85 improve range

I want to send information from my Attiny85 to my Raspberry. For the moment. Attiny and Emitter work on 5V Emitter have a 433 Mhz 1/2 waveform antenna I'am using virtual wire Raspberry receiver work ...
0
votes
1answer
48 views

No output from programmed attiny2313

I flashed a simple led blink program to an attiny2313 with a usbasp type programmer. Avrdude confirmed that the chip was programed, but the led is not blinking. I tried switching the led, varying ...
1
vote
1answer
69 views

Powering ATtiny85 for temperature sensing

I have been working on a miniature temperature sensing module which buzzes once the temperature crosses a threshold using ATtiny85, lm35 and a pico buzzer. When I power the whole circuit using an ...
2
votes
1answer
131 views

Attiny10 not triggering timer overflow interrupt while simulation (Atmel Studio 6)

I have problems simulating the timer overflow in Atmel Studio 6. The code is for an Attiny10 and looks like below. As far as I know I set all the neccessary bits to enable the counter (which works in ...
1
vote
1answer
189 views

Using ATtiny 45/85 with HC-05 (Not arduino)

I am working on a project that requires me to use an ATtiny microcontroller with bluetooth module HC-05. I have used the module with Atmega 8 in the past using UART protocol. Can anyone help me in ...
0
votes
1answer
35 views

LPM equivalent for ATtiny10?

I would like to load some data from the program memory (e.g. a sine table) on my t10. Like on other AVRs the lpm command is for that purpose but it seems not to exist on the t10. I saw this crazy ...
0
votes
1answer
371 views

Burn Micronucleus bootloader to use ATtiny85 via usb (avrdude)

I am working on an ATtiny85 usb development board, and I need to flash the Micronucleus bootloader on it. I have heard that this bootloader allows the ATtiny85 to be programmed via usb from the ...
1
vote
1answer
138 views

ATTiny IR receiver logging erratic values, but works consitently on Arduino Uno

I am making a an ATTiny85 IR receiver, programmed with an Arduino Uno. I'm using a modified version of this code (because the other IR libraries I found weren't compatible). It's working... sort of. ...
2
votes
1answer
224 views

MPU6050 DMP values read

I am using MPU6050 breakout board IMU along with ATtiny2313 microcontroller to get the accelerometer and gyroscope values from the IMU. Here's the question : I want to know what values are computer ...
0
votes
1answer
48 views

serial data from avr to python

I am using ATtiny2313 microcontroller along with a RS232 to establish communication between my microcontroller and the laptop. Here's my question : What is the predefined system for the laptop to ...
1
vote
1answer
115 views

Program an ATTINY85 on the PCB is causing me some trouble

I'm having a hell of time getting AVR ISP header on my circuit board to actually allow me to flash the chip. Basically, with an ATTINY85 you pretty much have to share programming pins with pins used ...
2
votes
0answers
146 views

I2C Slave on ATtiny841

I am using an ATtiny841 microcontroller as an I2C slave, but I have difficulty finding information on it. So for, all I have are application notes and reference code for TWI and USI module. It seems ...
0
votes
1answer
278 views

Help using an attiny85 and ir receiver

I'm trying to use 2 attiny85, one with an IR transmitter and one with an IR receiver (2 pins). I can't figure out how to use the attiny85 with the receiver. Help would be appreciated! If it is not ...
-1
votes
1answer
126 views

DC motor working on Arduino but not Attiny with batteries [duplicate]

I have a simple working circuit to control a DC motor with an Arduino as indicated in the Arduino examples. For instance, ...
1
vote
1answer
151 views

How to prevent DC motor from dropping voltage of supply when switching on

I have a circuit which uses an ATtiny85 output to a transistor (S9013), which will trigger a relay that controls a motor. The reason for the transistor to relay is because I do not have a transistor ...
0
votes
3answers
322 views

Relay not switching correctly, controlled from ATtiny85, output to motor

I have an ATtiny85 switching an NPN transistor, which will in turn switch on a relay that will run a motor. Everything is run off a 3.7V 18650 Li-Ion battery, but I have since moved over to a variable ...
4
votes
2answers
827 views

ATTINY85 measuring internal voltage

I'm using an ATTINY85 for a portable application that uses a Lithium-ion battery; therefor I need to monitor the battery voltage so I don't kill the battery. Is there a way to go about this without ...
0
votes
3answers
299 views

ATtiny85 to control a relay, which will turn on and off a motor

I am trying trying to control a 5V relay (SRD-05VDC-SL-C) with the ATtiny85. I have a simple sketch uploaded (Blink without Delay example): ...
1
vote
0answers
53 views

attiny25 doesnt want to sleep (attiny24 does)

I have an attiny25 and an attiny24 both run the same (striped) code. They shall do something (e.g. toggle a pin), go to sleep for some time and get woken up by the watschdog timeout interrupt (WDT is ...
0
votes
2answers
129 views

power 5.5v/1.8v mcu from lipo: 12v + LDO = 3.3, or just pull from one cell?

I'm trying to power an ATTiny44 (1.8v/5.5v) from the balance port of an RC 2s/3s lipo. The circuit will use very little ma, sleeping 29secs/1ua?, wake 1 secs/10ma. EDIT: the circuit is a Lost Model ...
1
vote
1answer
79 views

Should I use a voltage regulator?

I'm powering an attiny45 from a single lithium ion battery; that when fully charged should have a maximum voltage of ~4volts and will be cutoff at 3volts. I was thinking I should be safe to just ...
0
votes
2answers
162 views

Low voltage cutoff circuit

I'm powering an attiny45 from a lithium ion battery; using these batteries the voltage cannot get below 3volts or it will damage the cell. How should I go about cutting the voltage out? Software, or ...
2
votes
1answer
140 views

AVR GCC: How do I improve code optimization

I tried to compile he following C code: period = TCNT0L; period |= ((unsigned int)TCNT0H<<8); The assembler code I'm getting is the following: ...
24
votes
1answer
1k views

Why does my AVR reset when I call wdt_disable() to try to turn the watchdog timer off?

I am having a problem where executing a disable watchdog sequence on an AVR ATtiny84A is actually resetting the chip even though the timer should have plenty of time left on it. This happens ...
0
votes
1answer
238 views

Mixed SPI and I2C using ATtiny USI

I've been successfully using the USI on an Attiny84 to talk SPI to a radio module. This is good for hacking up sensors and whatnot as little radio devices. My next sensor project involves a sensor ...
0
votes
4answers
181 views

Sound Chips for attiny [closed]

Is there some kind of chip ( that doesnt use an SD Card ) so i can play prerecorded sounds using my ATtiny? I'm talking about the kinds of things in toys like Zoomer and furby etc
0
votes
1answer
149 views

Will MCP23017-E/SP be compatible with an ATtiny85? ATmega328P?

I mainly want to also be able to use the same I/O expanders with ATTiny85 projects since those chips have limited pins. I will be doing the main prototyping on an ...
0
votes
3answers
316 views

Boost Converter Problems

I'm having trouble with a boost converter I made: it outputs 1.2V with no load and 2.4 with one. I expect to draw 0.25 Amps MAX with Roughly 0.2 Amps continuous. My battery pack is 2P2S NiMH with the ...
1
vote
1answer
223 views

Adafruit Trinket Solar Power

I'm curious if anyone has experience with getting a simple board like the Adafruit Trinket or DigiSpark or any of the other ATTiny based clone boards running on solar power. E.g. with a solar panel ...