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
0
votes
1answer
51 views

Can I generate frequencies faster than 32 MHz with ATTINY85?

I believe I can use the 64 MHz PLL clock with PWM to toggle every cycle and thereby generate a 32 MHz square wave output on an IO pin, right? Is there a trick to generate an even higher frequency (...
4
votes
1answer
76 views

Amtel ATtiny EEPROM partially erased on power cycle

I have a Digistump with an Amtel ATtiny85 MCU. I can flash the MCU's EEPROM with an ISP programmer no problem. The chip works fine, the bootloader runs and the user program executes correctly. ...
1
vote
2answers
54 views

Simulate Shift Register on AVR (Configurable Logic/Timers?)

Recently I set up two MCUs (ATtiny1616) to perform basic serial communication using shift registers I made myself. simulate this circuit – Schematic created using CircuitLab Here is the logic ...
0
votes
1answer
61 views

Toggle power between modules/devices

I'm absolutely new to this subject and I have no idea how to start, save for the fact that I need an microcontroller for this. I want to toggle the power between modules/devices I want to hook up to ...
0
votes
1answer
52 views

reading a high negative voltage with attinys running on batteries

I need to read a negative input voltage from a camera flash capacitor that can charge up to -330V. I am using an attiny85V that is running on batteries and want to set the internal reference voltage ...
0
votes
1answer
53 views

DC Boost Converter stepping up voltage very slowly, if any

I've come across DC boost converter and told myself - why not to try it as well? So I started building a simple circuit which includes BD243C NPN Transistor, ATTiny13A programmed to give some pulse to ...
0
votes
1answer
52 views

Does Attiny13 pull a lot more current in sleep mode than Attiny85 or did I do something wrong?

First off here is the code I have tested on both Attiny13A and Attiny85V: ...
0
votes
1answer
31 views

IR range problem after coding burst/gap rate and ratio for TSOP1236

I programmed an ATTINY13 to drive an IR led on 36kHz with this code: ...
0
votes
2answers
105 views

Extremely low data rate transmission over long distance for attinys

For a lighting project I need to be able to trigger 20 units every couple of seconds independently which are daisy chained with 1-2 m space between each of them like so: Control station ====== Unit 1 ...
3
votes
2answers
98 views

Not enough current draw through MOSFET

I am trying to control the current to a Raspberry Pi using a MOSFET and an ATtiny10. I am using a logic level MOSFET and it seems that the Pi needs about 250mA to turn on but it is only able to pull ...
-1
votes
1answer
41 views

MOSFET switch, ATtiny10, Raspberry Pi

I had posted a question earlier but I was using a BJT at the time and the solution provided led me to use a MOSFET for my application instead. I switched to the FET but still unable to provide stable ...
0
votes
1answer
51 views

ATTiny167 USB Programming

On Aliexpress I am finding many cheap development boards with ATtiny167 and a USB connector. From what I can gather these boards permit USB programming through USB emulation. Can anybody point me to ...
0
votes
1answer
94 views

Transistor as a switch for 3A collector current

I am using: ATtiny10 w/ 10Ohm Resistor in series to drive Base of transistor Transistor is ZTX688B Vcc is 5V and 3A source Load is a Raspberry Pi connected to Collector simulate this circuit –...
1
vote
0answers
111 views

TRIAC broke (literally) – why?

I have built a circuit according to Dimming 230V AC with Arduino, with two output channels. The basic principle is: An ATtiny does zero detection via an optocoupler; when AC crosses 0 V, it triggers ...
1
vote
1answer
73 views

How can I isolate an ATTiny from an I2C slave so ICSP will work?

I'm building a small circuit to blink some LEDs with an ATTiny. I'm planning to use a 16-channel LED driver and talking to it with an ATTiny over I2C. I'd like to use a SMD ATTiny and add some test ...
1
vote
1answer
66 views

progmem data array optimized out [closed]

I try to use a ATTiny10 to drive some APA102 LEDs. The LEDs are arranged in a 5x5 array. To draw something I stored some 'images' in PROGMEM. Program looks like this: ...
0
votes
1answer
37 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
53 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
2k 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
54 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
61 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
121 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
212 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
106 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
61 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
107 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
53 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
117 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
244 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
95 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
134 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
181 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
420 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
61 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
201 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
90 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
769 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
89 views

Generating PWM from 24 VDC Power Input [closed]

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
244 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
188 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
46 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
1k 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
73 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
147 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
207 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
77 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
75 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
461 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
86 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-...