Questions tagged [attiny85]

An Atmel 8-bit AVR microcontroller.

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

ATTINY 85 - use host laptop's internet

Suppose I enable USB tethering (internet) on my laptop. Will it be possible to use that internet on an ATTINY 85 connected to USB.
manish.mandal's user avatar
2 votes
0 answers
59 views

Need help with ATtiny85 code [closed]

I am looking for help with ATtiny85 coding. The project I am working on is using an Arduino Nano and I want to switch to an ATtiny85. The code below works with the Nano but not with the ATtiny85. I am ...
jwhenry83's user avatar
1 vote
1 answer
114 views

Microcontroller freezes when triggering the gate of an N-channel MOSFET

Disclaimer: I have asked questions about this project before but this is yet another issue I'm facing. What I really want to do: Build a battery powered device with 6 colored buttons. When you press ...
boop's user avatar
  • 191
0 votes
1 answer
150 views

How to properly read ADC on an ATtiny85? [closed]

What I want to do: attach six buttons to a single input. Each button triggers a different action. How I want to do it: Use an AD conversion and add a resistor with different values to each button so ...
boop's user avatar
  • 191
0 votes
2 answers
101 views

ATtiny85 with sleep and serial

I want to communicate over serial to another device (dfplayer) and also set the microcontroller into sleep mode. The ATtiny85 does not have a hardware serial pin so I need to use a virtual serial (...
boop's user avatar
  • 191
0 votes
1 answer
92 views

problem conversion value

I have two functions that return an int16_t but I need to convert the ints to char* is for an attiny13 It would be something like this const char* msg = "value1()"+','+"value2()"+',...
jota mauel's user avatar
1 vote
1 answer
30 views

Can I program ATTINY using Arduino as ISP whilst having other I2C devices connected? [closed]

I have an SMD ATTINY that I'm using for a project. Attached to it are 3 I2C devices. When programming it using an Arduino as an ISP, can I have those devices attached? Ie, do I have to program the ...
djd53's user avatar
  • 13
0 votes
2 answers
85 views

How much readable text can fit inside an ATTINY85? Feasibility of scrolling a booklet on a 0.91-inch OLED display

I'm a total beginner, so I've been talking with Chatgpt regarding the capabilities of the Attiny85 microcontroller. But the AI would hallucinate a lot and give only partially right answers (because it ...
Moises's user avatar
  • 9
1 vote
1 answer
42 views

does ATtiny85 handles the size of the libraries mentioned below `<MD_Parola.h>` and `<MD_MAX72xx.h>`

The ATtiny85 microcontroller has very limited resources, including program memory (flash) and RAM. It has 8KB of flash memory and only 512 bytes of RAM. does ATtiny85 handles the size of the libraries ...
Sam's user avatar
  • 21
1 vote
0 answers
68 views

Choosing a good RF library for transmissions

I am trying to send information from an Attiny85 to an ESP32, through RF. I am using the most popular 433mhz transmitter on the market. I know various existing libraries to send and receive data ...
BruceWawe's user avatar
0 votes
1 answer
260 views

How to burn fuses in Digistump ATTiny85 with the Arduino IDE

I have a Digispark / digistump Attiny85. Working with Windows 11 and the Arduino IDE 2.0.4 I would like this guy to have Brown Out Detection set to 101 (2.7V) For this, I'd need to set the BOD fuses. ...
Anderas's user avatar
  • 61
1 vote
1 answer
136 views

1MHZ Attiny85 RF with MANCHESTER library

I'm trying to set up a transmitter made by the following components : Attiny85 (I need 1MHZ speed) Cheap 433mhz transmitter (FS1000A) The library I am using is the Manchester library GitHub. The ...
BruceWawe's user avatar
0 votes
0 answers
39 views

Compilation error with MMA8451 accelerometer and attiny85 using ATTinyCore

I am trying to use the Adafruit MMA8451 accelerometer with an attiny85. The Adafruit library uses Wire which doesn't work on the attiny so I used the ATTinyCore board files which have been modified to ...
Struan Lawrie's user avatar
0 votes
1 answer
146 views

Alternate full speed usb library for ATTINY85?

I'm currently working on a project using the ATTINY85 for USB communication. After some research, it turns out that the V-USB library only supports usb 1.1, which only supports a 125hz polling rate. I ...
Victor's user avatar
  • 3
1 vote
1 answer
272 views

Need help ATtiny85 not working as standalone

I have ATTiny85 that I want to drive a servo. Burned bootloader to the ATTiny85 and I am using HW-260 development board to program and to test the code. While the ATTiny85 works perfectly on the HW-...
aceschwartz's user avatar
2 votes
1 answer
435 views

Attiny timer interrupt does not make an interrupt every 1000ms

I'm making a stopwatch using an attiny85, the idea was to use the timer interrupts to count the seconds my theory was: since I set the Attiny85 to run at 1Mhz, I can use a presale of 1024; 1000000 / ...
Isael Guillén's user avatar
0 votes
1 answer
757 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 ...
shmink's user avatar
  • 21
1 vote
1 answer
130 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 ...
dessi's user avatar
  • 13
0 votes
1 answer
397 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 ...
Daniel Ribeiro's user avatar
-1 votes
2 answers
320 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 ...
Mr Fett's user avatar
  • 99
1 vote
1 answer
143 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 #...
Mah 's user avatar
  • 13
2 votes
1 answer
238 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) ...
Transistor's user avatar
2 votes
1 answer
679 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 ...
Transistor's user avatar
1 vote
1 answer
89 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 ...
Ferdinandus Ivan's user avatar
2 votes
2 answers
334 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 ...
Boyfinn's user avatar
  • 95
1 vote
1 answer
218 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 ...
Squall124's user avatar
1 vote
1 answer
77 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 ...
phoenix99's user avatar
0 votes
1 answer
117 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 ...
GEORGE BOULIS's user avatar
1 vote
0 answers
524 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. ...
Mayoogh Girish's user avatar
1 vote
2 answers
427 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 ...
Kim's user avatar
  • 11
2 votes
0 answers
438 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 ...
user76915's user avatar
1 vote
0 answers
181 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 ...
Devin Carpenter's user avatar
1 vote
1 answer
718 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 ...
Abdalrahman Seliem's user avatar
1 vote
2 answers
419 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 -- ...
Zeno Dalla Valle's user avatar
0 votes
1 answer
1k 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 ...
Zeno Dalla Valle's user avatar
1 vote
0 answers
634 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 ...
fortl's user avatar
  • 11
0 votes
1 answer
245 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 ...
Quentin HUET's user avatar
0 votes
2 answers
119 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 ...
River's user avatar
  • 103
1 vote
0 answers
174 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 ...
enoughisenough's user avatar
0 votes
1 answer
385 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 ...
cir's user avatar
  • 11
0 votes
1 answer
176 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 ...
Glen020's user avatar
1 vote
0 answers
311 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 ...
user avatar
1 vote
0 answers
207 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 ...
Hero_AK's user avatar
  • 11
0 votes
1 answer
969 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 ...
Georges Legros's user avatar
1 vote
1 answer
324 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 ...
Frank Donald's user avatar
0 votes
1 answer
53 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 ...
Rodrigo's user avatar
  • 113
1 vote
1 answer
2k views

Digispark ATtiny85 not recognized (bootloader problem)

I recently bought an ATtiny85 based development board. (picture below) I managed to install it correctly following the official guides, without a problem. Drivers are installed correctly, and I used ...
Corfucinas's user avatar
2 votes
2 answers
328 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 ...
tatty fish pickle's user avatar
2 votes
0 answers
573 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 ...
Bobby Tables's user avatar
1 vote
0 answers
117 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/...
IAmJulianAcosta's user avatar