Questions tagged [attiny]

An 8-bit, low power AVR microcontroller from Atmel.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Programming ATTiny1614; Unexpected Signature

Trying to program an ATTTYIN1614 with jtag2updi. https://github.com/ElTangas/jtag2updi I was able to use this tool to program an ATTINY1626-XFR and ATTINY807-MNR, but I'm getting an error with ...
0
votes
1answer
30 views

SMBus on ATTiny204

So I want to connect multiple LED Panels with dynamic addressing to a Master Controller. Seems like SMBus should be able to do that, however I don't find any Library for the Arduino framework. Does ...
2
votes
1answer
50 views

I am in need of a usable communication library on 1-4 pins of ATTiny84 instead of I2C

I messed up when designing my PCB and just assumed that I could use software slave I2C with ATTiny84. The reason I did so is - I needed to use all of the analog inputs. The pins I have on my ...
1
vote
1answer
43 views

Digispark Rev.3 Kickstarter ATTiny85 using all 6 pins

i have some trouble to use i2c and the other pins at the same time. im tring to control the attiny over i2c with a arduino and the attiny should control a 28byj-48 stepmotor. i started to setup the ...
2
votes
0answers
48 views

Attiny85 uploading error

I am getting an error while trying to upload programs to the Attiny85 through a USBTinyISP programmer, found here. Unfortunately, it isn't working. Following this tutorial for connecting the board and ...
1
vote
0answers
35 views

How can I control 2 servos separately using a joystick on an ATTiny85?

Prelude I haven't done a lot of work in programming chips. The ATTiny85 is the first chip I've programmed, and I have the hang of the basics I think, but I don't have an in-depth understanding of it's ...
2
votes
1answer
108 views

Driving a servo with an ATTiny13A

So, I managed to fry my cheap servo/ESC (electronic speed controller) and decided to make my own using an ATTiny13A on some perfboard. But, I have run into some issues getting the servo to respond. I'...
0
votes
1answer
38 views

Is it safe to connect VCC to a data pin on Attiny chips?

I'm trying to make a compact prototype with Attiny2313A, and want to connect VCC to pin 18 with a push button as in the picture. Is it safe? Or do I need a resistor there?
0
votes
0answers
29 views

Attiny85 with 433 mhz rf, worked fine nano to nano, not attiny85 to nano

Before downvoting or discarding the question, I have checked other questions which are of similar nature, but they use different library. So I am creating a signal message using rf module 433mhz. I ...
1
vote
1answer
72 views

ATTiny85 won't boot if PIN2 is not pulled high

I had some problem setting up a working ATTiny85 outside of its development board.Connection on my breadboard: pulled high (10K R) -- 1 PIN 8 -- VCC (+5V) trouble here!! -- 2 PIN 7 -- ...
0
votes
1answer
82 views

ATTiny85 USB Troubleshooting. Device is not recognized when programmer asks to plug in device

I have bought this cheap AVR Programmer Board and I thougth that I would be OK just plugging it into my USB port. Then after I did that nothing happened so I passed last 4 hours trying to understand ...
1
vote
0answers
32 views

send command to Slave and receive response over I2c

so I have an Arduino mega as the master and an attiny84 as the slave the master can send a command S to the slave and the slave should respond with TRUE so here is my code: master: bool GetOnline(){ ...
0
votes
1answer
101 views

Fail uploading any sketch to ATtiny85 USB

I have a Digistump's ATtiny85 (probably a clone ), which fails uploading any sketch, saying: Warning: device with unknown new version of Micronucleus detected. This tool doesn't know how to upload to ...
0
votes
1answer
40 views

Chips & High voltage: Connected in Series?

I have 3 micro-controllers that will be connected to a battery, and I need to provide each of them between 3 and 5 volts maximum. I have 3V batteries but they do not seem to provide enough power, ...
0
votes
1answer
38 views

Attiny : Is it possible to analog read on PB1?

I'm trying to read an analog input on the Attiny85 physical pin 6 (PB1, PWM), but analogRead(PB1) always returns 1023. Is it even possible to use analogRead on this pin? I'm fairly new to this so ...
0
votes
2answers
73 views

How to use a push button & transistor as a kickstarter for power supply?

My goal is to save energy, and I intend to do so by powering a chip with itself, and cut power whenever unnecessary. The best image I can have is of a startled monkey who jumps on the branch, screams ...
0
votes
1answer
67 views

Voltage from batteries in series operating on 3 ATTiny, 3 Buttons, and 3 Piezo buzzers

I intend to power three ATTiny45 chips (each requiring around 3.5V) in parallel with 2 pill batteries (namely Maxwell's CR2032) in series (which would come to around 6V). They will each play a sound ...
3
votes
1answer
115 views

ATtiny85-DHT11-TM1637

I have tried many combinations and I can get the Attiny85 to display on the TM1637 just fine, but I cannot get ant readings from the DTH11, tried different pins, libraries. I upload code via UNO as ...
1
vote
1answer
296 views

Record data to SD card with ATtiny85

An application of ATtiny with SD card is complicated due to missing of hardware SPI in attiny. The "ATmega" code for creating of a "SD file" is: #include <SPI.h> ...
1
vote
0answers
70 views

Problems with I2C on an Attiny84 [closed]

I am attempting to write an I2C to SPI bridge using an attiny84. The problem that I am running into is that the I2C seems to start and stop working intermittently. Sometimes my interrupt functions ...
12
votes
1answer
882 views

_delay_ms() is much slower than expected (by a factor of 6) on TinyAVR 0/1 (ATTiny1604)

I designed a custom AVR development board using the Atmel ATTiny1604 microcontroller. It belongs to the new Tiny-0 family, due to its recentness, some required changes to relevant toolchains have yet ...
1
vote
1answer
283 views

How do I Upload a Program via Serial Port to an Optiboot_X-Enabled TinyAVR-0/1 Microcontroller using the Command Line?

Background In 2019, Microchip acquired Atmel and released several new AVR microcontrollers, including the Tiny-0 and Tiny-1 Series. On these mircocontrollers, traditional Atmel ICSP programming was ...
2
votes
1answer
132 views

use Nodemcu to program Attiny85

I have a dev board for my attiny85. when connecting it to the computer I get "unknown USB device(device descriptor request failed)" although I have the needed drivers, so I thought of trying ...
2
votes
2answers
182 views

Uploading sketch to ATTiny84 with Nano as “Arduinio as ISP” stopped working

Update 12/11 Working through the answer posted. Upload reset appearance - [Works blinks correctly.] Convince yourself that reset appearance code reliable indicates DTR resets. [Opened the serial ...
0
votes
1answer
62 views

Arduino to AtTiny change of pin interrupt behaviour?

I have a project which, to save on battery, is put to sleep until an interrupt pin is rising from LOW to HIGH. This works well on Arduino Nano, however the translation doesn't on the ATTiny. #include &...
2
votes
1answer
225 views

Measure Vcc on ATtiny13a?

I am trying to figure out if I can measure the Vcc of attiny13a, but the code I use for arduino's and attiny85 does not work. This is where I got the code from. I know that it works by using the 1.1v ...
1
vote
0answers
43 views

Arduino IDE on Attiny45: What kind of power does a chip need?

I have this little AtTiny45 which I'm loading a program with Arduino as ISP. My goal to use this chip along with a op amp, a piezo buzzer and a press button, and have it automatically sleep between ...
0
votes
1answer
28 views

log STK500v2 commands while flashing a Mega

My final goal is to replicate the process with which the PC programs the arduino. I have gone through the commands.h file and made a couple of attempts to get the logic right. But no success at ...
1
vote
1answer
44 views

How to specify a timer's name depending on the chip it will be compiled to?

I need to enable a timer interrupt for a chip, and in the mean time, I am testing the code on Arduino Nano rather than (feed the chip, test the chip)++. So as part of the code I have to TIMSK0 |= (1 &...
1
vote
1answer
87 views

Setup of Arduino Uno as ArduinoISP for programming attiny45

I have an Arduino Uno SMD and an attiny45, which I want to use as a sensor communicating via i2c. For a first step in finding out how to work with the attiny45 I just want to use the attiny as ...
0
votes
0answers
104 views

Burning Digispark bootloader without an Arduino

I've been wondering if there is any method to burn a Micronucleus bootloader into a blank ATtiny85 Digispark using just Windows or a Linux distro, and not needing another Arduino board such as UNO ...
1
vote
0answers
182 views

Digispark green led being the only one to turn on

I was doing some tests with an ATtiny85 Digispark module using Arduino IDE on my Windows PC. I was testing some stuff with the DigiKeyboard library from Digistump. Everything was going fine until ...
1
vote
2answers
55 views

Weird assembly output

I was taking a look at the disassembly for a loop of mine that seemed to be taking too long and I found these assembly instructions that I don't understand. Why does it load 0 into r25 and then do two ...
0
votes
1answer
62 views

ATTiny84 fuses reading as 0

I was programming my ATTiny84 when it randomly stopped being able to be programmed. I have an external 32768 Hz crystal connected to it, and I have been using my Arduino UNO with the ArduinoISP sketch ...
0
votes
1answer
398 views

ATtiny85 - report error “Device reports version as: 2.2”

I've bought ATtiny, from see link. Trying to upload a basic Blink sketch I get this error: Device reports version as: 2.2. 1) Board manager was updated using http://digistump.com/...
2
votes
1answer
230 views

Interrupt every second on ATTiny84 (and sleep the rest)

I'm building a digital watch just like in this post, except I'm using an ATTiny84. However, the ATTiny84 doesn't have an asynchronous Timer2 like the ATMega328 and does not have a power save mode, so ...
0
votes
1answer
52 views

I keep getting this error exit status 1 expected ';' before 'DigiKeyboard'

\ here is my code include "DigiKeyboard.h" void setup() { DigiKeyboard.sendKeyStroke(0); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(MOD_GUI_LEFT); DigiKeyboard.delay(100); ...
0
votes
1answer
587 views

Managing configurations via EEPROM by writing it with the hex file

I've been looking into I2C bootloaders for an ATTINY coprocessor on a board I'm developing, and I ran into a bit of a snag. I have the need to detect what board the main processor's code is running on,...
1
vote
0answers
226 views

Radio receiver: deep sleep when no byte arrives, and wake up when a byte arrives?

This code works to listen for bytes via radio (with a 433 Mhz receiver module) with the Manchester library and Manchester code, and do an action when certain bytes are received: #include "Manchester....
1
vote
3answers
1k views

PCINT0, PCINT1, PCINT2, etc. on ATtiny45/85

According to the datasheet: we could think that, if we want to have a pin change interrupt for 3 pins, we have to create multiple instances: ISR(PCINT0_vect){ ... } ISR(PCINT1_vect){ ... } ...
1
vote
1answer
2k views

How to assign an interrupt to a button press with an ATtiny? (interrupt not fired with my code)

(Here is finally a solution). I'm using the following code on a ATtiny45 to assign an interrupt to a button press (pin #7, PB2, INT0). However the LED doesn't blink when the button is pressed, as if ...
5
votes
2answers
2k views

How to deep sleep ATtiny/ATmega (to run for years with batteries) but still detect a button press?

Question (TL;DR): what is the optimal method to deep sleep (to run an ATtiny45 or ATmega on batteries for 1+ year) but still be able to detect a button press? Is it possible to deep sleep until a ...
1
vote
1answer
363 views

Arduino IDE with ATtiny85 error “multiple definition of `__vector_5”

I am having a problem compiling the code for my ATtiny85 circuit. I am using the timer/counter0 in normal mode so that when it overflows it triggers the TIMER0_OVF_vect ISR. When I have that ISR in ...
0
votes
2answers
1k views

How to use ATtiny pins that are usually 'reserved' for chip programming?

How to program an ATtiny45 to use the pins 1, 5, 6, 7 (i.e. PB5, PB0, PB1, PB2) as input or output? pinMode(5, OUTPUT); pinMode(0, OUTPUT); pinMode(1, INPUT); pinMode(2, INPUT); digitalWrite(5, HIGH);...
1
vote
1answer
200 views

Having trouble figuring out CTC on Timer 1 with ATTiny85

I'm using Timer1 on the Attiny85 clocked at 1MHz to toggle an LED every 1 second. However, I'm having some issues regarding prescaler and OSC value selection. I'm using this formula, which I found in ...
6
votes
2answers
276 views

Arduino IDE won't use selected port

I'm trying to program an ATtiny85, using an AVRISP mkII programmer (this one: https://www.amazon.de/dp/B00IYNAXUC/ref=cm_sw_r_sms_c_api_i_VXOWDb3H3N5ND) with the Arduino IDE (version 1.8.10 on Ubuntu ...
3
votes
2answers
3k views

Use std::list in Arduino programming

When trying to compile #include <list> std::list<byte> l = { 7, 5, 16, 8 }; in the Arduino IDE (with ATtinyCore for ATtiny4313), I get this message: error: list: No such file or ...
0
votes
1answer
200 views

Sending multi-byte data over I2C between different processors

I have been attempting to read data from an ATTINY84 via an ESP8266. Both are programmed via the Arduino IDE, though as PlatformIO is a proxy for that, I'm not certain what version of the ATTINY core ...
1
vote
1answer
317 views

Attiny85 Watchdog fires only once

I build something like a flashlamp with different modi. From the hardware site it's quite simmilar to the Nanjg105c. There is a Attiny85 which generates a PWM signal to an AMC7135. I have one push ...
2
votes
1answer
367 views

Current mouse pointer position with Digispark attiny85

I am trying DigiMouse library for attiny85 Digispark board. It allows to emulate the mouse quite well. However, I also need to know the current cursor position. Is there a way to get it?

1
2 3 4 5 6