Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
14 views

ATtiny icsp pins dual purpose

I am using an ATtiny88 in a pcb design. It is directly driving a LED matrix. I am only driving half bytes at a time, so the max current limit will be followed. It is my understanding that I can dual ...
1
vote
1answer
39 views

LED-strip PWM works with Raspberry Pi, doesn't work with Attiny45

I'm trying to control an RGBW analog LED-strip by PWM modulation. When using an Attiny45 the LED-strip just blinks at a low frequency (approx. 2-3 hz). However, using a Raspberry Pi 3 to control PWM ...
4
votes
3answers
1k views

Does ATtiny RESET pin need a resistor?

I need to make sure that my ATtiny does not reset unexpectedly. To do that, I am planning on connecting the RESET pin directly to VCC. However, I have heard some places that you need a 10k resistor ...
-1
votes
1answer
43 views

ATtiny45 program/reset issue

I'm pulling my hair out trying to get this ATtiny45 to work, hopefully someone out there can help. The ultimate goal is to drive an RGB LED strip using PWM, but I'm getting some unreliable behavior ...
0
votes
1answer
53 views

How do you add an onboard ISP for an ATTiny85?

I've taken a liking to building circuits around the ATTiny. Typically I add 6 headers and use an AVR programmer or an Arduino to program the ATTiny in circuit. I'm trying to figure out how move that ...
0
votes
1answer
88 views

Easiest (or cheapest) way to get both 5V and 3.3V on one circuit

I'm working on a circuit based on an ATTiny85 and I need accelerometer input. I was looking at using an analog accelerometer (KXTC9-2050 that runs around 240 uA) because I have the extra pin and I'm ...
0
votes
0answers
30 views

Watchdog on Attiny13 every 2 minute

I am trying to use a watchdog on Attiny13. With this code I get 70-100sec (it is not constant) sleeping time and 8sec wake up (pull X pin high) time: ...
0
votes
2answers
56 views

Use ADC as Analog Comparator (AttinyAVR)?

I have recently been trying to transition from Atmel's Atmega 328p avr to the newer (and much smaller) attiny416. The trouble is, the 416 only allows you to choose between two positive inputs and two ...
0
votes
0answers
35 views

Drive 433Mhz emitter and Attiny with two coin cells

I would like to detect when the postman put mail in my box, so I was thinking about a simple attiny with tilt sensor (which would wake up the attiny) and a 433 MHz emitter: The problem is that one ...
2
votes
1answer
77 views

Sound sensor not working when connected to DC motor

I made a small circuit to control a DC motor with a sound sensor, using an ATtiny 85 and an L293D. It worked on breadboard, but now that I have a prototype PCB it ceases to work. Whenever I connect ...
0
votes
1answer
29 views

How do I maintain ICSP functionality?

I'm a novice hobbyist building a trivial circuit where an ATTiny 85 controls an RGB LED. In addition to the three PWM outputs, I have 2 inputs. The first input is a potentiometer I'm using to set ...
0
votes
2answers
76 views

Attiny45 12V LED Driver

I want a fading effect on a 12V led strip when power is turned on/off. I want to keep it simple and efficient, so I choose an Attiny45. The problem is that for the Attiny to work, I would first need ...
0
votes
3answers
136 views

How to switch PIR sensor on/off based on photocell result

I've built the following circuit based on an ATtiny85 for a night lamp. The circuit is powered by a 3.7v LiPo battery. I'd like to turn off the PIR sensors when the photocell detects light in order to ...
0
votes
1answer
73 views

Low voltage LCD glass displays

I have a simple circuit I built using a 7-segment LCD glass display and an ATTiny (just a simple timer for now). I was hoping to use the setup in a low power, single coin cell device (3.3V - 2.7V), ...
1
vote
1answer
83 views

ATtiny20 ISP, low voltage on MISO

I have been trying for quite some time to program a factory-new ATtiny20. After unsuccesfully trying with a USBASP and with ArduinoISP, I decided to take a look with my scope. Turns out the device is ...
0
votes
2answers
153 views

Using a microcontroller to produce a shock

I am currently working on a project for school and we are creating a mock pavlock although much simpler. We basically want a microcontroller to be able to keep time and shock at specific times. We ...
1
vote
2answers
271 views

Timer0 overflow interrupt does not work on ATtiny10

I am trying to use the Timer0 overflow interrupt to make a little project. I used such a timer in the ATtiny45 and it worked, but with ATtiny10 no result. So I tried an easy LED blinking program and ...
0
votes
0answers
30 views

can't figure out why my micronucleus/V-USB setup doesn't work

I built a small attiny85-based board using vusb and essentially the schematic of the discontinued Sparkfun "AVR Stick" (at least on the usb/uC side; see https://www.sparkfun.com/datasheets/Widgets/AVR-...
0
votes
2answers
150 views

Automotive circuit to power ATTINY

Trying to make a simple but reliable 15-12v to 5v circuit to power the ATTINY85 from an automobile (15v-12v), wondering if I have the right components and ratings, I don't know a lot about circuit ...
1
vote
1answer
56 views

ATTiny414 inline assembly operand constraints for IO pin parameter

I'm trying to use the light_ws2812 library to drive WS2812 LEDs from an ATTiny414. The core of that library is an inline assembly snippet that bitbangs the serial line. here it is with the timing-nops ...
8
votes
2answers
657 views

ATtiny13A - Can't generate software PWM with CTC mode

I'm trying to make a remote control RGB LED light using an ATtiny13A. I know the ATtiny85 is better suited for this purpose, and I know I might not eventually be able to fit the whole code, but for ...
1
vote
2answers
76 views

Generating PWM from 24 VDC Power Input

I have a Piezo buzzer that has an internal transducer so is able to take 24VDC and work. This one has a continuous sound. Just a beeeeeeeeeeeeeeeeeeeeeeeee... I have a 24V output that needs to power ...
1
vote
1answer
165 views

Attiny10 with RSTDISBL and USBAsp

I have some project what requires all GPIO pins of attiny10 so I have to program RSTDISBL fuse. But only programmer I have is low voltage USBasp (with latest firmware supporting TPI interface). The ...
3
votes
2answers
168 views

Strange issue with ATTiny10 + avr-gcc: counter used in ISR corrupted by global variables?

I have a very strange issue of a possible memory corruption when using global variables and a timer overflow interrupt on the ATTiny10 (using avr-gcc 4.9.2). I can't make any sense of it but managed ...
1
vote
1answer
42 views

Serial protocol and connector choice for tethered firmware distribution project

I am designing a system in which a central host controller that has a cellular internet connection is going to be used to query/control/flash intermittently tethered (wired) nodes. The central host ...
1
vote
2answers
695 views

Can I use an ATtiny84 as SPI slave and i2c master in the same application

I'm designing a board using the ATtiny84A which uses a USI (Universal Serial Interface), and as such there is no dedicated I2C and SPI peripheral. I have gotten I2C to work and tested it by ...
1
vote
1answer
66 views

What is the difference between these two attiny44a parts?

I bought two Chirp plant watering alarms and I noticed that the attiny44a used are marked differently: atmel1722 and atmel1619. What is the meaning of the numbers? I cannot find this information in ...
0
votes
0answers
106 views

Use an ATtiny85 instead of an ATtiny13 - Where do I place the XTAL?

Having looked at a circuit diagram in Beginners Introduction to the Assembly Language of ATMEL­ AVR ­Microprocessors by Gerhard Schmidt, I came across a circuit presented by the author (in which an ...
0
votes
2answers
169 views

Low-power solar cell source using capacitors

I am designing a circuit using AtTiny10 to supply a downstream microcontroller with power using only capacitors and a small solar cell. Would the following design work ? The basic idea is that the ...
0
votes
1answer
63 views

Speed of a mosfet triggered directly from the logic pin of an Attiny85?

I have a an N-Channel Mosfet soldered to an adapter board and connected to PB4 of an ATtiny85 via a solderless breadboard. The mosfet currently switches the ground leg of some other low power ...
1
vote
1answer
70 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
426 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
65 views

Recieve serial data on multiple pins ATTINY85

I am working on a project in which multiple ATTINY's need to send numerical data between each other. In most cases the ATTINY wil have to receive multiple streams of data on different pins. See the ...
1
vote
2answers
55 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
86 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
254 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
116 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 ...
1
vote
2answers
3k 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
269 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
105 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 ...
0
votes
0answers
322 views

ATTiny85 Hall Effect Sensor with i2c

I am trying to make a hall effect sensor with i2c capabilities using a US1881 latching hall effect sensor and an ATTiny85. I am using the Arduino TinyWireS library for the i2c communication and the ...
5
votes
1answer
580 views

Strange behaviour of Attiny's ADC

...
0
votes
2answers
127 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
0answers
1k 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
504 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
120 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
835 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
234 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 ...
0
votes
2answers
596 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://...