Questions tagged [attiny85]
An Atmel 8-bit AVR microcontroller.
136
questions
3
votes
1
answer
2k
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
2
answers
10k
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 ...
3
votes
1
answer
3k
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 ...
3
votes
1
answer
3k
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
2
answers
3k
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
2
answers
384
views
Arduino Digispark ATtiny85 conditional logic not working
Expected Behavior:
I am attempting to use && or nested if statements to achieve the effect of two switches being required to close prior to an LED light (i.e., flip both switches), the LED ...
2
votes
1
answer
717
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 / ...
2
votes
2
answers
426
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 ...
2
votes
1
answer
923
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 ...
2
votes
5
answers
23k
views
Digispark Serial Port Communication
I am using Digispark ATTiny85 and i need to send and receive data through the serial port of my computer.
Does anyone have an idea as to how do i proceed with sending STRINGS and NUMBERS through the ...
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 ...
2
votes
1
answer
1k
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 ...
2
votes
1
answer
4k
views
Programming a servo on an ATtiny85
Board: "ATtiny25/45/85"
Processor: "ATtiny85"
Clock: "Internal 1 MHz"
Programmer: "Arduino as ISP"
I want to run a servo forwards and backwards on an ATtiny85. The servo library is not compatible ...
2
votes
1
answer
739
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
1
answer
272
views
433MHz RF run away TX burst with ATTiny85 IC
I have recently created a sketch for an ATTiny85.
My project consists of:
1x ATTiny85 IC only
1x 433MHz RF module => using data pin 2
2x input digital pins => using pin 3 and pin 4
Running at ...
2
votes
1
answer
334
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
2
answers
356
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
1
answer
209
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
2
answers
633
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
0
answers
67
views
Reading MAX31888 works with Nano, but not with ATtiny85
I'm using the OneWire library to try and read temperatures from a MAX31888 sensor using this Arduino program:
#include <SoftwareSerial.h>
#include <OneWire.h>
#define RX PB4
#define TX ...
2
votes
0
answers
85
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 ...
2
votes
0
answers
547
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 ...
2
votes
0
answers
658
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
1
answer
1k
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
0
answers
819
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
3
answers
616
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
2
answers
532
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 ...
1
vote
1
answer
354
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
2
answers
543
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
2
answers
494
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
3
answers
9k
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
1
answer
71
views
ATTiny85 pin definitions
I have been tearing my hair out on and off for two weeks trying to figure out pin definitions for the ATTiny85 in PlatformIO. My wiring is basically this:
My sketch:
#include <Arduino.h>
#...
1
vote
1
answer
69
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 ...
1
vote
1
answer
1k
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
4k
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 ...
1
vote
1
answer
2k
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
1
answer
1k
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
2
answers
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
1
answer
1k
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 ...
1
vote
1
answer
110
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 ...
1
vote
1
answer
545
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
1
answer
335
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
2
answers
480
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
2
answers
2k
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
3
answers
4k
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....
1
vote
1
answer
818
views
How to power multiple LEDs with a microcontroller [closed]
I currently have a "tiny" setup and want to put a few (~20-30) 0402 LEDs on a 1:87 scale car. My current setup is an ATtiny85 USB Mini Dev Board powered by a 90mAh 3.7V LiPo battery which is connected ...
1
vote
2
answers
254
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
1
answer
4k
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
1
answer
118
views
Need Digistump library for QWERTY keyboard and Fixes for my issues!
Hello there🖐 I am trying to install Digistump library to support ATTiny85 by digispark. But I am encountering a problem when trying to install Digistump AVR boards after adding an additional board ...
1
vote
1
answer
165
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 ...