Questions tagged [attiny85]

An Atmel 8-bit AVR microcontroller.

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

Unable to upload code to my digispark ATtiny 85 after upgrading bootloader

I've just received my digispark ATtiny85 (model B, I believe). I'm using Pop_OS for my PC, had a bit of a headache getting the arduino IDE recognising the device but after some trial and error I got ...
  • 21
0 votes
0 answers
74 views

Communication between Tiny85 board and PC

Having successfully programmed ATtiny85 controller using Arduino IDE through USB, got the question: how could program, running on PC, communicate with that controller? Through which interface? There ...
  • 101
1 vote
1 answer
58 views

ATTiny84 I2C with NeoPixels not working

I fetch RGB values via I2C - which works (with a splitting function). Now I have a problem: When I write values directly into strip.color() like strip.Color(255,0,0,0) the NeoPixels turn red when ...
  • 13
0 votes
0 answers
44 views

Unlocking Digispark ATTiny85 after flashing it to HID

I made a simple test sketch to make my ATTiny85 emulate a Keyboard and send a sequence of keystrokes. #include "DigiKeyboard.h" void setup() { // don't need to set anything up to use ...
-1 votes
1 answer
48 views

Anyone had Digispark Attiny85 not SEEN by some USB controllers but seen via HUB or DOCK on same device?

I have purchased a couple of different types of DigiSpark Attiny85 clones (couldn't find originals available) and they have worked great except some devices (so far, just laptops) don't see the device ...
  • 99
1 vote
1 answer
78 views

Problem with IR remote and Pushbutton for digispark

As digispark is more compact and suitable for my electrical application. Following the same procedure in brtiberio answer. I tried to convert the script from Arduino UNO to digispark, but not succeed #...
  • 13
2 votes
1 answer
72 views

ATtiny85 giving multiple wake from IDLE if INT0 held low

Desired behaviour: Go to IDLE sleep mode. When PB2 (blue trace) goes low wake up and give a 10 ms HIGH on PB1 pulling a pull-up low (yellow trace on Figure 1). Go to 1. What I get: Figure 1. (1) ...
2 votes
1 answer
227 views

ATtiny85 won't wake from sleep

My ATtiny 85 won't wake up! The purpose of the device is to monitor a reed switch and give a 20 ms output pulse on every alternate positive-going transition of the reed switch input. The device should ...
1 vote
1 answer
53 views

ATtiny85 plugin and removed it self

So I bought ATtiny85 recently, when I plug it to my PC it make sound like mouse has been plugin, but then it make sound like the device has been removed. It happen again and again until I remove the ...
2 votes
2 answers
220 views

How can i reduce my global variable use? Attiny85

I'm trying to compile my code but i keep exceeding my global variable memory by 12%. Is there anything i can do in my code to further reduce RAM usage? Or do i have to do modifications to the ...
  • 95
1 vote
1 answer
124 views

Program ATTiny85 running at 16 KILOhertz

I set the fuses of my attiny85 so it uses the internal 128khz clock, prescaled so it is 16kHz. I set the CKOUT fuse too so I can check the clock using an oscilloscope on pin 3 and yes it is 16kHz. Now ...
1 vote
1 answer
72 views

how to write a program in Arduino that pairs a single Rx to multiple Tx modules? i want to learn implementing this protocol

I have two Attiny85 communicating over 433mhz radio (Rx & Tx on either ends) using virtual wire library, how will the programming be to pair them by the press of a button on either module ? i have ...
0 votes
2 answers
68 views

How to run a sketch for a period (e.g. 1min) and then attiny85 goes to sleepmode automaticaly?

Another beginner to arduino device. My knowledge for programming is so weak. As i mention to the title i would like your help. I just want to run this simple sketch into attiny85 for lets say 1 min ...
1 vote
0 answers
231 views

ESP32 + Attiny85 AC Dimmer

I am working on an AC Dimmer project using ESP32 and Attiny85. Note : I know ATtiny85 is overkill for this project, And it can be done without Attiny85, I have already done this using ESP32 alone. ...
1 vote
2 answers
234 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 ...
  • 11
2 votes
0 answers
205 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
0 answers
111 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 ...
1 vote
1 answer
379 views

Programming ATtiny85 with Arduino-IDE and an 8MHz external oscillator

I have a digispark ATtiny85 development board and I am using the Arduino IDE to program it along with the Arduino UNO as my hardware programmer. I have successfully burned the fuses for both the ...
1 vote
2 answers
270 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
1 answer
479 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
0 answers
372 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 ...
  • 11
0 votes
1 answer
121 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
2 answers
100 views

Is there a limitation of how many instances of the `String` class?

Platform Attiny85 with AttinyCores 1306 OLED i2c with Tiny4KDisplay Goal using a joystick for menu navigation up/down choose left enter (not finished yet) right back (not finished yet) inverse ...
  • 103
1 vote
0 answers
108 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 ...
0 votes
1 answer
258 views

How to connect D1 mini and ATTINY85 over data wire

I’m trying to connect my D1 mini module and attiny85 USB module together over a data wire, but I don’t know how to do it. Basically, what I want to do is have the D1 broadcast a hotspot with a web ...
0 votes
1 answer
134 views

Attiny85 Clone Cannot set P1 to input [closed]

Everything i read about the chinese Digispark attiny85 clones says you can use p0-5 as digitlal I\O (p5 as after fuse reset) Simple test code for a button will not let me use P1 as an input tied to a ...
1 vote
0 answers
233 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 ...
's user avatar
1 vote
0 answers
131 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 ...
  • 11
0 votes
1 answer
616 views

ATTINY85 and POT

I need to read a potentiometer value from an ATTINY85. I have big fat 10K POT but for this use case I need it to be very small so I used a salvaged 2.4K one, the kind that is soldered directly onto a ...
1 vote
1 answer
250 views

Problem with programming digispark ATtiny85 board with Arduino IDE

I have bought a Digispark ATtiny85 board to learn about that microcontroller. So I tried using internal register names in the code rather than using Arduino in built functions. I can get the board to ...
0 votes
1 answer
49 views

Is extra hardware and components needed to connect the bare MCU directly to a PCB, without a shield?

As a hobbyist I code in a variety of arduino's and in Digispark's (Attiny 85 and 167). But I'm doing a project with space contraints, so I'd need to use just the MCU directly over my pcb. Apart from a ...
  • 113
0 votes
1 answer
1k 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 ...
2 votes
2 answers
242 views

What is "tws_delay" and how can I use it? (with an ATTiny85)

EDIT: Alright I'm stupid, I had the 2012 library installed somehow, maybe when I downloaded it indirectly from another old tutorial site. Thanks a ton to Peter Freerick for pointing that out! It ...
2 votes
0 answers
406 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
0 answers
68 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
1 answer
250 views

ATTINY85 - RF Transmitter (RH ASK)

I am working on a small RF sensor powered by a battery. I used the code from Mr K. (https://arduino.stackexchange.com/a/55516/65870) as base and adapted it to the RH Ask protocol: #define F_CPU ...
  • 21
1 vote
2 answers
2k views

Attiny85 microcontroller programming without arduino

I have decided to make a simple project so thinked about arduino but that seems very worthy so i decided to use attiny85 ic for my project,but i don't have arduino or avr to program it. Is there any ...
0 votes
1 answer
91 views

About ATTINY85 Development Board

I am thinking to buy one of "ATTINY85 Development Board"... Before buying I was checking details/Advantages of it. First I thought this is just a breakout board & USB for power. But, then found ...
  • 35
0 votes
1 answer
174 views

Attiny85 SoftwareSerial not working on battery power

I have a very small test project running on an Attiny85 (set to internal 8MHz). Everything works when powering the circuit from an Arduino (3.3 or 5.0 volt). But when changing the power to a 18650 ...
  • 119
0 votes
1 answer
474 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\...
3 votes
1 answer
2k views

How to use attachInterrupt() in ATtiny85 with Arduino IDE?

It's possible use external interrupts/attachInterrupt() with the ATtiny85 when I program with Arduino IDE? If is possible, how many inputs (for external interrupts) the ATtiny85 have and which are ...
  • 31
1 vote
0 answers
281 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 ...
  • 11
-1 votes
2 answers
74 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 vote
2 answers
744 views

Convert float to char array on ATtiny85

I'm having a hard time trying to convert a float into a char array so it's stored like '7.125' just like the float looks. I'm trying to communicate with an ATtiny85 (slave) and a program on a ...
-1 votes
1 answer
437 views

Attiny85 simple analog and digital output problem

I'm just lighting up an LED through a TIP31C, pin 0 goes through a 560kohm resistor to the tip's input pin pin 1 goes through a 750 ohm resistor to the tip's input pin ^i'm not sure this information ...
1 vote
1 answer
410 views

Attiny85 PB4 works for analog output but not PB3?

I can get PB4 to work but not PB3 on my ATtinny85. I'm just lighting up an led (with 150 ohm resistor) (using internal 16mhz) void setup() { pinMode(3, OUTPUT); pinMode(4, OUTPUT); } void loop()...
2 votes
1 answer
2k views

Digispark ATtiny 85 erases flash after power loss

I have some issues with my Digispark ATtiny85 board. If I upload the blink sketch for example the LED starts blinking and everything looks fine. But as soon as I unplug the Digispark from the USB ...
0 votes
3 answers
1k views

Digispark Attiny85 draws more power for digital input than expected

I'm trying to figure out why my attiny85 (on a digistump developer board) draws around 3mA at 3V when setting up a pin as INPUT and connecting it straight to ground. The current is measured with a ...
  • 111
1 vote
2 answers
303 views

Attiny85, high output impedance, dim leds

I designed what I thought should be a very simple badge using the Attiny85 SU, schematic below: The problem is the tiny doesn't seem to be sinking current properly. For testing I switched to a 20 PU ...
1 vote
1 answer
686 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 ...