Questions tagged [attiny85]

An Atmel 8-bit AVR microcontroller.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
631 views

ATtiny85 and MPU-6050 Gyroscope

I'm doing a project that involves sending MPU-6050 gyroscope data via serial communication to the laptop. Is ATtiny85 micro-controller suitable for this job? Is it powerful enough to do it? I was ...
1
vote
0answers
30 views

Reusing Digispark ATtiny85 micro-USB as 1-wire bus

I'm working on a project of my home plants irrigation/hydroponic system(not cannabis!)) just chilies and other eatables). Also I'm trying to recycle modules, wires and other projects' leftovers such ...
1
vote
0answers
63 views

To reduce the Attiny85 current consumption

I am using Attiny85 to control 4 LEDs parallelly with a programmable switch. But even though when the LEDs are in OFF state, current consumption is around 7-8mA. I am using a 200mAh battery in my ...
1
vote
0answers
44 views

Error in uploading sketch to digispark attiny85 board

I'm trying to use Digispark attiny85 board and running into issues uploading the sketch. The drivers are correctly installed. I have followed this page as a reference. Below the sketch and the error ...
1
vote
0answers
128 views

Using an ATTiny85 and DigiKeyboard.h, can I detect when USB HID is connected?

I am building a project to send HID keystrokes to a computer with an ATTiny85. I want to detect when the USB communication is working, in order to turn on a LED saying that everything is good. If USB ...
1
vote
0answers
32 views

Consequences of messing with Timer 0

I'm following this tutorial to generate square waves using the timers of the attiny85, but I'm afraid this could mess with something else in the chip. This is the relevant snippet: // Set up Timer/...
1
vote
0answers
133 views

Send RAW IR code with ATtiny85

I am looking for a ATtiny85 send RAW IR code using a ATtiny85. I have it sending HEX code just fine, but just cannot find something for RAW. I have IRsend RAW IR running just fine on a NANO. Problem ...
1
vote
0answers
274 views

How to remove the 5 second boot delay on Digispark PRO (Attiny167)

I know there’s already a solution for removing the 5 seconds boot delay on Digispark (Attiny85), by writing a new bootloader someone already did to the Digispark. And to write code to it, you need to ...
1
vote
0answers
35 views

How to adapt this code using a DF Mini Player and interrupts for the ATTiny85?

So I programmed my Arduino Mega 2560 to play certain sound effects from a DF Mini Player that I have. I took the base code that I modified from online so some fo the names might seem odd. Currently, ...
1
vote
0answers
290 views

Is this a good way of making a low power attiny? Unpower instead of sleeping

I am making a low power rf remote that just has 3 buttons and sends rf signals accordingly. I've been trying to make pin interrupts work when it's in deep sleep but it's a huge hassle. And then I ...
1
vote
0answers
115 views

Arduino button trigger coding

I am trying to write a simple coding to change the color of an RGB LED using a push button trigger. I just need the the pin output to change when the button is pressed. I would like to do this using ...
0
votes
0answers
60 views

USB Device not recognised - Attiny85

Some weeks ago, I've made a small project using an Attiny85. I've thought it'd be nice to connect it to a PC via USB. I've used Digispark in the past, so I kinda "borrowed" it's schematic ...
0
votes
0answers
72 views

DHTNEW library not working with ATTiny85 + DHT11

I tried to make a simple project with Attiny85 chip and DHT11 sensor. After 2 days of struggle, made it finally work, but not quite as expected. TinyDHT library does work, while DHTNEW does not. I ...
0
votes
0answers
168 views

Digispark Atinny85 not recognized (bootloader problem)

I recently bought the Attiny85 (picture below) I managed to install it correctly following the official guides, never that a problem. Drivers are installed correctly, and I used the Arduino IDE to ...
0
votes
1answer
173 views

Digispark - Bootloader stuck

I have a digispark that I want to reprogram, soldered into a circuit. I have burned the default t85 micronucleus firmware. This is the command I used: "C:\Program Files (x86)\Arduino\hardware\tools\...
0
votes
0answers
134 views

Attiny85: how to rotate the servo continuously with a press of a button?

I'm trying to use two Bluetooth commands in my code: one is press off a button "1" the servo should do its routine without stop second one press of the a button "2" servo should stop. What am I ...
0
votes
1answer
235 views

Using Arduino as ISP and SoftwareSerial at the same time

I'm trying to use my Arduino Uno as an ISP to program an ATTiny85 and at the same time check my board by using the SoftwareSerial library to output the values I'm getting from my sensor. Is this ...
0
votes
0answers
859 views

ATTiny85 arduino interrupt

i would like to know why my code running on the ATtiny85 1Mhz does not wake up after the interrupt. I use the ATTiny Core. #include <avr/sleep.h> // Sleep Modes https://www.nongnu.org/avr-...
-1
votes
1answer
68 views

After reinstalling Arduino IDE, can't program Attiny with Arduino Uno [solved]

I use Ubuntu 20.04, and recently have reinstalled Arduino IDE. After that, I can't program Attiny85 or 2313 with an Arduino Uno board. Earlier, this setup worked fine for -85 chip. Test 1: upload a ...
-1
votes
0answers
107 views

Digispark ATtiny85 “The last USB device you connected to this computer has malfunctioned“

When I exceed a certain amount of characters in my .ino file, although I'm at about the 70% of the memory available on the device I get this error “The last USB device you connected to this computer ...
-1
votes
2answers
52 views

Why does my ATtiny85 blink program only work with 4 out of the 16 registers?

The following blink program runs fine on my Attiny85 SparkFun Tiny AVR programmer board. It produces 5 short blinks and then stops. It also works fine when I change r16 to any one of the registers ...
-1
votes
1answer
111 views

Adadfruit Trinket software not running on ATtiny85

I have an application that uses a pair of nRF24L01+ as a simple RF link between a camera PC sync output and a set of LED flashes. The important factors are power and low latency - hence the 2.4GHz. I ...
-1
votes
1answer
828 views

AtTiny44 and AtTiny 85 communication

I'm working on a project where I use two microcontrollers: an AtTiny44 (20MHz ext clock) and an AtTiny85 (8MHz internal). What I'm trying to achieve is an I2C communication between the 85 and the 44, ...