Questions tagged [attiny85]

An Atmel 8-bit AVR microcontroller.

Use this tag when a question relates to the Atmel ATtiny85 microcontroller.

This is a Microchip (who acquired Atmel) 8-bit AVR RISC-based microcontroller.

Product page: https://www.microchip.com/wwwproducts/en/ATtiny85

Flash:          8 KB
SRAM            512 bytes
Data EEPROM     512
Peripherals     (1)   SPI
                (1)   I2C
                (5)   Capture/Compare/PWM
Timers          (2)   8-bit
Comparators     1
Voltage Range   1.8 to 5.5 VDC
Pin Count       8
140 questions
3
votes
1 answer

Increase in power consumption after brown-out detection (BOD)

I'm working on a low-power energy harvesting project, where I'm considering using an ATtiny85 to perform some minor tasks. The ATtiny is put in Power Down mode most of the time and does not consume much power in this mode. Since the power source is…
hmf
  • 31
  • 2
3
votes
1 answer

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 they? Someone have an example code?
Romildo
  • 31
  • 1
  • 2
3
votes
1 answer

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 before i.e. according to the method described here.…
Rocco
  • 165
  • 5
3
votes
1 answer

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 void setup() { SerialUSB.begin(); } void loop() { …
hpekristiansen
  • 201
  • 2
  • 11
3
votes
2 answers

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 one is more lightweight, stable, bug-free,…
johny why
  • 153
  • 1
  • 2
  • 7
3
votes
5 answers

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 serial port ?? I have read that the ATTINY 85 does…
Karan Motiramani
  • 39
  • 1
  • 1
  • 3
2
votes
2 answers

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 turns on for 1 second, and then turns off. Encountered…
jmarywien
  • 51
  • 6
2
votes
0 answers

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 #include #define RX PB4 #define TX PB3 #define OW PB0 SoftwareSerial serial(RX, TX); OneWire…
Boyfinn
  • 245
  • 3
  • 11
2
votes
1 answer

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 16MHz using the ATTiny85 board core from…
Jonas
  • 141
  • 8
2
votes
0 answers

Need help with ATtiny85 code

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 relatively new to Arduinos and have done a few…
jwhenry83
  • 21
  • 3
2
votes
1 answer

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 / 1024 = 976.5625 hz, 976.5625hz = 1.024ms, 125ms /…
2
votes
1 answer

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 there. When uploading a sketch I would then get…
shmink
  • 141
  • 1
  • 3
2
votes
1 answer

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) The input triggers, (2) the CPU wakes from sleep,…
Transistor
  • 629
  • 5
  • 16
2
votes
1 answer

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 go to sleep after 30 s of inactivity. It should…
Transistor
  • 629
  • 5
  • 16
2
votes
2 answers

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 libraries I'm using? Here is my main program: …
Boyfinn
  • 245
  • 3
  • 11
1
2 3
9 10