Questions tagged [attiny85]

An Atmel 8-bit AVR microcontroller.

Filter by
Sorted by
Tagged with
3
votes
1answer
823 views

Flashing an ATtiny85 with a NodeMCU?

I recently purchased a Digispark for some of my smaller electronics projects. After it initially being a great little board, I soon found myself unable to flash the board in the same way I had done ...
3
votes
1answer
1k views

Serial communication mac to Digispark ATtiny85

I want to use the Arduino IDE serial monitor with my Digispark ATtiny85 over USB. I can without problems upload this code(Digispark CDC example): #include <DigiCDC.h> void setup() { ...
2
votes
2answers
131 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 ...
2
votes
2answers
2k views

Attiny85 appears to be drawing 0.2mA current but battery running down more quickly

I am trying to get a temperature sensor (tmp36) working with an Attiny and if possible I would like it to run for several weeks. I have tried to power down the Attiny and it appears to be drawing only ...
2
votes
1answer
549 views

Attiny85 - Method to discard glitched ADC values?

I have a problem i need to solve so i will simply it as much as possible. Basically there is a system with a micro-controller where it reads 2 sensors. These 2 sensors are of variable resistance type,...
2
votes
2answers
510 views

ATtiny85 soft-latching, and sensor-waking: Are multiple switches differentiable by pin change interrupt?

I am using a vibration switch with a pin change interrupt on an ATTiny85 to wake the processor and run some code when the vibration switch grounds an input pin. The circuit is battery-powered, so ...
2
votes
1answer
916 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 ...
2
votes
1answer
168 views

Arduino Yún as ISP to program Attiny - why is the sketch not working after successful upload?

I want to use an Arduino Yun as ISP to program an Attiny85. I have soldered a shield following the circuit that is depicted in many sites. You can see it in this page. I have included a LED with a 1k ...
2
votes
1answer
102 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
0answers
165 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 ...
2
votes
1answer
604 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 ...
2
votes
0answers
652 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 ...
2
votes
3answers
430 views

analogRead() hangs [closed]

With this code I try to send a measurement over 443MHz using RadioHead. All parts work but when combined they fail. This chip used is an ATtiny85. The function 'measure' torpedoes the entire program. ...
1
vote
1answer
97 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 ...
1
vote
2answers
251 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 ...
1
vote
3answers
6k views

ATTiny85 Digispark clones failing USB handshake - how to program them?

I've recently bought a batch of ATTiny85 modules (Digispark clones) from China, and tried to write a first test program into them now. I noticed that they do seem to have some bootloader already ...
1
vote
1answer
46 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
1answer
864 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 ...
1
vote
1answer
633 views

Powering a Tiny Arduino Project

I'm trying to build a tiny project. After I program the board, to power the dev board - how can I power it to run the code? Question: I was curious as to how I would be able to power the ATtiny85 ...
1
vote
2answers
161 views

Sending over a number from Arduino to Attiny85 [closed]

I recently started my first arduino project, displaying a number on a 4x 7 segment display. I want to keep this code and use the display in other projects to display 4 digit numbers (creating a ...
1
vote
2answers
7k views

I2C libraries for ATTiny85?

I want to transmit I2C data, using a Digispark ATTiny85 board: http://digistump.com/products/1 http://digistump.com/wiki/digispark/tutorials/connecting I've found the following I2C libraries. Which ...
1
vote
2answers
2k views

I2C from two masters (ATtiny85, ESP8266) to one slave (ATmega328)

I've been working on a project with I2C protocol where an ATmega328 (Arduino) configured as slave, receives messages from an ATtiny (ATtiny85, ATTinyCore by SpenceKonde) configured as master, or from ...
1
vote
1answer
63 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 -- ...
1
vote
1answer
268 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
182 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
3k views

PWM output while using I2C with the ATTiny library

I've noticed that when using the USI interface on the ATTiny to send I2C via the methods from "Wire.h" with the ATTiny Arduino implementation included from the library manager (ATTinyCore), while ...
1
vote
1answer
126 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
vote
1answer
406 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
2answers
280 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
vote
1answer
98 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
72 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
1answer
147 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
1answer
402 views

How to use -F option while Burn bootloader for ATtiny 85 using Arduino IDE

I'm very new to Arduino. I tried programming Attiny 85 module using Arduino as ISP. It worked fine few times. after that i'm getting below error. Device signature = 0x000000 avrdude: Yikes! Invalid ...
1
vote
1answer
191 views

Safely powering a relay from same source as attiny/arduino?

My project involves using ATTINY to control a 5v relay (specifically JZC-11F and will be ground triggered) in an automotive setting. I keep seeing the warnings of powering a relay from the same ...
1
vote
2answers
687 views

ATtiny85 serial communication, bootloader and setting up fuses

I have been reading some articles about ATtiny and how to burn the bootloader. And I have two questions which I can't figure out. Do I need to manually setup fuses to run 8 MHz on my ATtiny when I'm ...
1
vote
1answer
1k views

Always 255-response in I2C between ATTiny85 (8MHz) and Arduino Uno

I tried to set up an I2C conversation between ab ATTiny85 (8MHz) and an Arduino Uno. However I always get a 255 response from my I2C slave. I am using Arduino 1.8.5. What am I doing wrong? ATTiny85-...
1
vote
1answer
992 views

ATtiny85 MIDI IN using SoftwareSerial - Is it possible?

I'm trying to read MIDI notes using an ATtiny85 via SoftwareSerial; so far, I've got no success at all. The ATtiny is using the internal clock, 8Mhz, 5V. The MIDI keyboard sends clean note on/off ...
1
vote
1answer
2k views

I2C requesting more then one byte

I got an Arduino Uno set up as an I2C master to an ATtiny85 slave, using the Wire (Master) and TinyWireS (Slave) libraries. Communication works good. I have been able to keep the network running ...
1
vote
1answer
1k views

Trying to flash ATTiny85 bootloader using FT232R in the Arduino IDE

I have a FT232R that I want to use to flash my ATTiny85 bootloader in the Arduino IDE, can someone help me out on this? I don't want to get a AVR programmer.
1
vote
0answers
51 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
64 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
51 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
35 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
156 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
297 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
37 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
302 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
145 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 ...
1
vote
1answer
800 views

Arduino <<I2C>> ATtiny85 stops updating variables after a while

I've been working on a project for the last few days and spent a LOT of time googling, reading and testing. I'm kinda running out of ideas now and instead of bumping my head to the wall I thought ...
0
votes
1answer
99 views

How long does it takes for arduino to reach main()?

I am trying to emulate the behavior of a circuit using an Attiny85 This is the result I got so far: In the picture above, D2 is VCC, D4, D5 and D6 are outputs of the circuit I am trying to emulate. ...