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
1answer
15 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
0answers
19 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
37 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. ...
0
votes
0answers
33 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
0answers
18 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
60 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 ...
0
votes
0answers
33 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
43 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 ...
-2
votes
1answer
66 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
73 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
142 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
336 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
58 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
23 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
78 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
71 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
55 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
83 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: ...
21
votes
1answer
650 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
111 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
101 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
93 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
192 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 ...
0
votes
1answer
108 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 ...
0
votes
1answer
68 views

Attiny84 has a slow rising and falling edges

I'm using an Attiny84 to generate 100us pulses for a totem pole gate driver. I was expecting rise and fall times in the order of 10's of nanoseconds, what I got was rise times of 7.8us (10% to 90%) ...
0
votes
1answer
50 views

Interacting with the host OS

I am wondering if an ATMEL micro controller such as an ATMEGA8 or ATTINY2313 has libraries to interact with a computer (windows OS) over USB? If so is there any premade libraries that does the bulk of ...
0
votes
0answers
75 views

Serial communication with the ATTiny85

I'm moving my project from the Uno to the smaller ATTiny85, and I'm having some problems. It builds and uploads just fine, but I think I've messed up the serial communication somewhere along the way. ...
5
votes
6answers
498 views

WLCSP MCU's - what hardware is needed for programming these tiny chips?

I just received my DigiKey order of some Atmel ATTiny4 MCU's from DigiKey. I wanted to tinker with one of the smallest MCU's I could find, and this was one of them. It is, in fact, so small because ...
0
votes
2answers
119 views

Delay introduced by transistor

I have the following circuitry: PWM-2V8 is a square 50% 40kHz signal as this (R37 not populated on this capture): On P8, I get the following signal which is distorted and the duty is more like ...
4
votes
4answers
178 views

How often do AVR's actually glitch and need a watch-dog reset in the real-world?

Have you ever seen an otherwise happy AVR spontaneously glitch and require a reset? Assuming: a nice stead power supply that stays inside the specified range a correctly sized decoupling cap ...
0
votes
2answers
104 views

Can you set the PWM output of an Atmel AVR to a specific frequency and have control over duty cycle?

I'm trying to drive an LED at 38kHz with a low duty cycle like 10% from an Atmel ATTiny88. The chip is currently running at 8MHz, but could be adjusted for this portion of code, if need be. Using ...
4
votes
2answers
205 views

ATTiny project resets when plugging in phone

Project I'm not very experienced with electronics and microcontroller-programming yet. I recently (accidentally) bought a couple of ATTiny13A microcontrollers, assuming I could program them using ...
2
votes
1answer
296 views

How do I avoid a reset when using the watchdog in interrupt mode and changing the timeout?

I'm writing a program for an ATtiny85. I want to use the watchdog to wake up from power down in certain intervals. It all works fine as long as the intervals for a watch dog event don't change within ...
2
votes
1answer
153 views

I'd like to improve this design to support ICSP

I'm new to electronics and this is my first circuit. I have some questions about implementing ICSP in this design. This is a bit of a long post with quite a few questions so I'll apologize in ...
1
vote
2answers
198 views

Porting Code from Arduino Uno/ATMega328P to ATTiny85 not working, too many variables?

I have an Arduino Uno and am running a sketch with lots of variables (23 constant char arrays that have 54 object in each array). Along with all these variables there is lots of if statements. The ...
1
vote
2answers
158 views

Can I run a program, on an ATtiny85 with micronucleus bootloader, without usb connected?

I have managed to put micronucleus bootloader on an ATtiny85. Using it, I can successfully upload programs to my ATtiny through USB and they run as they should, as long as they are connected to USB. ...
0
votes
2answers
57 views

Inverted PWM with ATTiny10

On a 10MHz ATTiny10, the following code generates the same 40kHz 50% duty PWM on both pins 0 and 1: ...
0
votes
0answers
375 views

ATTiny85. How do I use the reset pin as an analog input or digital output?

According to this datasheet, the ATTiny85 has 6 I/O pins if we include the reset pin. I used five of them to charlieplex 18 LEDs and I need another one to use as analog input. Would it be possible to ...
3
votes
3answers
237 views

AVR SRAM limitation

I'm just an enthusiast looking for some advice. I'd like to use a microcontroller to read frames from a camera and write those frames to a small LCD screen. The camera and screen are on the same SPI ...
1
vote
1answer
104 views

Cannot program ATTiny85 fused for 32 kHz

Now, I know what you're thinking. I've been thinking it all night too. Yes, I know that with the tiny fused for a 32 kHz crystal that I'll need the SPI clock to be 8 kHz or less. Even that, however, ...
0
votes
1answer
83 views

Square wave 40kHz with ATtiny10

I'm using a 12 MHz ATtiny10 and I would like to generate a square wave on PB0 at 40 kHz. I think that I need CTC. What should be the values of TCCR0A, TCCR0B, OCR0A and OCR0B?
1
vote
2answers
180 views

ATtiny2313 vs ATtiny84 software compatibility

I make and sell a variant of the USBtiny AVR programmer. It uses an ATtiny2313 clocked at 12 MHz and does bit-banged USB using hand-tuned assembly language (that someone else wrote - it's an open ...
0
votes
1answer
176 views

Does the Atmel-ICE Debugger work on ATtiny MCUs?

I've looked on the interwebtubes and could not find out if the Atmel-ICE debugger works with ATtiny MCUs. In theory, since the debugger supports debugWire and SPI modes, it should, but the official ...
1
vote
1answer
164 views

driving LEDs via a PI a attiny and TLC5940 (validation) and possible powering issues

at the moment I am planning my first real (big) electronics project. I want to build a LED lamp, that can be controlled by a RaspberryPi (for e.g. programming a binary clock or changing the brightness ...
-1
votes
1answer
122 views

Small low-power device-to-device proximity detector

I would like to find or create a small low-power proximity detector to tell a device when another device is near. This would be coupled to a small microcontroller like the AT-tiny 45. It doesn't ...
2
votes
3answers
662 views

How much current is a powered-down ATtiny84 supposed to take?

I know this sounds like a stupid question, but I'm wondering if the datasheet has an error or something. I have an ATtiny84 connected to my bench power supply set for 3 volts. It's fused for the ...
1
vote
1answer
127 views

ATtiny85 absolute ratings for outputs?

The ATtiny85 datasheet specifies an absolute maximum negative voltage for any pin of -0.5 volts relative to ground. Consider this partial schematic: MOSI and MISO are the respective ATtiny85 pins ...
0
votes
1answer
1k views

Control relay from Bluetooth on ATtiny85

I know someone else has made a Bluetooth transmitter to a relay so i wanted to ask a few questions about it being possible? I am an almost newbie at electronics but i do know a few things, so first of ...
5
votes
3answers
713 views

ATtiny85 power consumption double expected

I'm trying to get an ATTiny85 to run off a battery. I have it clocked from a 16.384 MHz crystal, with the divide-by-8 fuse set. Vcc is 3.3 volts. Figure 22-7 in the datasheet says that at idle ( ...
0
votes
2answers
105 views

No response from AVR microprocessor while programming

I've been attempting to program a few different micro-controllers using nothing but an FTDI 5V TTL cable and self-written software to bitbang the needed pins on the chips. Until now I had success only ...