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
1
vote
1answer
55 views

How to check led current

I'd like to check if a lamp shines and if it's dead, a relay is supposed to switch. I thought about using an attiny with a hall sensor. There are some sites that complain about the inconcurrency ...
0
votes
0answers
31 views

ATmega168 versions for low power applications

I am interested in using an ATmega168 for a simple application, which has however very strict power limitations. As a result, the important thing for me is to find the version with the least power ...
2
votes
2answers
92 views

Generating 40 kHz square wave using ATtiny13

I'm using an ATtiny13 running at 1.2 MHz and would like to generate a 40 kHz square wave on PB3 and PB4. The signal on PB4 should be 180 degrees offset (inverted) from PB3. I know that I need to set ...
0
votes
1answer
36 views

Establishing common ground between attiny and 24v motor, and between attiny and 12v logic circuit, without connecting 24v motor and 12v logic grounds

I have a coin hopper which has a 12V logic circuit and a 24V motor. It also has 2 brass plates which sense the amount of coins in the unit, one plate has high voltage, and second has low. These plates ...
1
vote
0answers
50 views

Alternatives to a hardware configuration of an input pin for uC

I'm trying to figure out how to read-in a configuration to the small ATtiny10 microcontroller. I want to find out 5 or 6 different configurations, adjustable by hardware into one IO using the same ...
0
votes
0answers
41 views

ATtiny Series 1 High Voltage HVSP 12V Enter into UPDI

I'm unable to find usable information on how to enter into UPDI mode after disabling UPDI on new-ish ATtiny Series 1 MCUs, e.g. ATtiny412/817/3216 etc. There some information for older devices like ...
1
vote
2answers
64 views

ATTiny1616 writing the SUT fuse in SYSCFG1 with AVRDude Command Line

I want to write the SUT fuse in SYSCFG1 to be 0x0 for 0ms startup time as per page 40 of the datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/ATtiny1616-3216-DataSheet-DS40001997C.pdf I am ...
0
votes
1answer
61 views

Simplex UART echo implementation on ATtiny

I'm currently trying to implement a simple UART echo application on the ATtiny85, with no additional pins other than RX/TX (no autoflow control). I'm using the Universal Serial Interface of the ...
0
votes
1answer
35 views

AVR ATtiny1634 - PB3 as Input and Watchdog Timer

I'm quite a beginner in AVRs and this is my first project soldering the microcontroller and programming it on board. I know the ATtiny1634 QFN might not me the best micro for a beginner, but ...
1
vote
1answer
117 views

AVR ATtiny1634 - Programming Issue

I've have already used Arduino as ISP Programmer to load codes to Atmel chips like ATmega328p and ATmega8 quite a few times without any problem. On my last project though, I decided to use an Atmel ...
1
vote
1answer
77 views

How to avoid a MCU to run constantly when a superheterodyne radio receiver is receiving nothing, and possibly enter in deep sleep?

TL;DR: How to avoid an ATtiny to run constantly when the radio receiver is receiving nothing, and possibly enter in deep sleep mode? Configuration: ATtiny45 (on breadboard) SRX882 Superheterodyne ...
1
vote
1answer
87 views

Why does my MCU work better when powered to Vcc and PA1=D2 instead of Vcc and GND?

I'm making a MIDI processor, with its power coming ... directly from the MIDI signal itself, as done by the author of this page (see "Powered by MIDI" paragraph): it works well with a 100µF cap. I ...
0
votes
0answers
43 views

what's that symbol in the attiny13a I/O schematic? [duplicate]

I was reading the ATtiny13A datasheet and I can't figure out what's that symbol in the general digital I/O schematic. I've circled it the figure below.
0
votes
2answers
160 views

Circuit to know when two batteries are connected to each other

I'm using a Victron Cyrix (12V 120A) Smart battery combiner to connect the starter and the leisure battery in my RV. I wanted to know when the two batteries are connected to each other, but ...
0
votes
2answers
176 views

“Normally closed” switch: does it use more power than a “Normally open” for a low-power battery-powered ATtiny project?

I have a "normally closed" magnetic door sensor, that I'd like to use with an ATtiny microcontroller. Does a "normally closed" switch use more power than a "normally open" switch? i.e. since the ...
0
votes
2answers
58 views

Switch AtTiny1614 on and off

I have built the following circuit to reset an AtTiny1614 (the mega tiny 1 series). They don't have a reset switch and I thought with this circuit I could (hard-)reset the chip by doing a power cycle. ...
2
votes
3answers
184 views

Gosh darn PORT structs on AVR

To my shock, Atmel has restructured the way they do port addressing in the ATtiny-avr-one series (1616 for example.). I am writing a function that takes in a pin and a port and sets the corresponding ...
2
votes
3answers
2k views

How to make a PCB based on ATtiny easily updatable by end users?

I've made a prototype PCB containing an ATTINY 4313: Each time I want to change the program, I upload it with an Arduino used with the "Arduino as ISP" sketch. If one day I sell such a module to ...
1
vote
3answers
132 views

GND arriving to the wrong pin of this chip on my PCB

I had originally done a PCB for another chip. All pins I'm using (1, 2, 3, 17, 18, 19, 20) are fortunately correct for the ATtiny4313 I'm now using, except GND that arrives on pin #4 of my PCB ... ...
0
votes
2answers
156 views

Read 8 serial ports at the same time with an Attiny

I'm building a MIDI merger, based on a Attiny (either 84 or 85). How to read multiple serial ports at the same time (for example 8 RX inputs)? I can't find the blog article anymore, but I think I ...
0
votes
1answer
110 views

Arduino to Attiny841 with ATTinyCore — pins not working

I have code that works using Arduino. Because I wanted to size down the project, I replaced it with an Attiny841. Process: I soldered the 841 on an adapter and checked all pins using a multimeter ...
1
vote
1answer
99 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
110 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. ...
2
votes
2answers
79 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
79 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
61 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
2answers
88 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
58 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
32 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
122 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
149 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
62 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
69 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
128 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
127 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
142 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
78 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
55 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
80 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 ...
5
votes
3answers
3k 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
61 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
73 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
173 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
2answers
168 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
105 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
148 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
72 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
176 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
357 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
133 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
2 3 4 5
8