Questions tagged [attiny85]

An Atmel 8-bit AVR microcontroller.

Filter by
Sorted by
Tagged with
1
vote
0answers
36 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 ...
0
votes
0answers
62 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
1answer
29 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
70 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 ...
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 ...
0
votes
1answer
68 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 ...
-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 ...
0
votes
1answer
59 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 ...
0
votes
0answers
73 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 ...
1
vote
0answers
45 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 ...
0
votes
1answer
161 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
1answer
84 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
1answer
39 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 ...
0
votes
0answers
169 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
1answer
93 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 ...
1
vote
0answers
130 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
1answer
101 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 ...
-1
votes
0answers
109 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 ...
0
votes
1answer
881 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
1answer
49 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 ...
0
votes
1answer
56 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 ...
0
votes
1answer
175 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\...
1
vote
1answer
293 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 ...
1
vote
0answers
136 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
votes
2answers
53 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
2answers
238 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
1answer
212 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 ...
0
votes
1answer
150 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
1answer
837 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
3answers
602 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 ...
2
votes
2answers
112 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
1answer
236 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 ...
1
vote
1answer
166 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 ...
1
vote
1answer
92 views

Receiving i2c bytes on an attiny85

I've been trying to write a small i2c lib in C over the past week. I managed to get writing to slaves working (for example I can write to an ssd1306 oled) but reading (for example date/time from an ...
1
vote
1answer
69 views

ATtiny167 Device not recognized

I'm frustrated I feel like I am 90% there but my computer will not recognize the ATtiny167. Here i9s the list of things I have completed/tried using Windows 10 and Arduino 1.8.6; 1) ...
1
vote
0answers
277 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 ...
0
votes
0answers
136 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
2answers
159 views

How to program micro chips directly with USB

Is it possible to program chips like the Arduino uno's Atmega328P directly with USB serial from your computer? Where can i find information on the protocols/standards to do such a thing? More ...
1
vote
1answer
136 views

Using software Serial for Adafruit Thermal library and more general cpp question

I'm working on a proof of concept for using the Adafruit_Thermal printer library with an ATTiny85. The ATTiny85 does not come with hardware serial capability, so I started looking into using ...
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, ...
0
votes
3answers
1k views

DigiSpark AT Tiny85 compile problem?

Friend asked me to find problem with compilation for his DigiSpark AT Tiny85 board. We are trying to compile sketch from here: https://forum.arduino.cc/index.php?topic=314773.0 But with no luck - ...
0
votes
2answers
711 views

Two rpm counters with interrupts

Can I use two interrupts on to count rpm square signals coming from two hall effect sensor modules (that has built in comparators to generate square signals) ? What if two signals come together ? ...
1
vote
2answers
229 views

Use ATTiny as a battery-backed RAM?

So, I found an interesting article the other day, and I'm trying to build a project that could benefit from a battery-backed memory (no wear limits, but keeps data over power cycling). The article ...
0
votes
2answers
916 views

How can I tell which fuses are set on an ATtiny?

Following on from this question, Problem with programming an ATtiny85: Error - avrdude: Yikes! Invalid device signature, if the response from avrdude is 0x000000 then the internal oscillator is ...
1
vote
1answer
754 views

Digispark Micro (ATTINY85) not working on Macbook Pro 2016

I just bought 2 Digispark Micro to start learning some Arduino things. But when I try to upload the code to my Digispark, it just send me an "Device search timed out" error. My Digispark is plugged ...
0
votes
1answer
182 views

Measure small capacitances with ATtiny85 (Digispark board)

I have successfully run the code provided here on an Arduino Nano. If nothing is connected, it will output a very small capacitance (~ 1 pF). Then I tried to migrate the code to the ATtiny85 (using ...
0
votes
2answers
1k views

Digispark ATtiny 85 - not recognised as HID device

I am trying to create auto-username-writer with Digispark ATtiny 85. I have a pretty simple sketch: #include <DigiKeyboard.h> void setup() { } void loop() { DigiKeyboard....
0
votes
1answer
248 views

ATTiny85 I2C connection with Arduino Nano

I am trying to send and receive data using I2C between an Arduino Nano and an ATTiny85. The ATTiny is mounted on this board: Link I've tried to reach the slave with the simple I2C scanner, but I don'...
2
votes
1answer
573 views

attiny85 reset itself instead of wakeup procedure

I have a digispark attiny85, and I am using SLEEP_MODE_PWR_DOWN to sleep, and wake-up with external interrupt on pin2. I am trying to count number of interrupts received with the code below. Problem ...