Questions tagged [attiny85]

An Atmel 8-bit AVR microcontroller.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 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
39 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
48 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 ...
0
votes
1answer
24 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) ...
0
votes
0answers
55 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
39 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
51 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
56 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 ...
0
votes
0answers
20 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
2answers
172 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
107 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
83 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
2answers
166 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 ...
0
votes
1answer
162 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
0answers
114 views

Flash erase error -32

When uploading code to the ATtiny85 (on a Digispark USB board) with the Arduino IDE (1.8.2) I get the following error about ~ half of the times: ... erasing: 65% complete >> Flash erase error -...
0
votes
1answer
85 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
458 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
108 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
218 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 ...
0
votes
1answer
185 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
1answer
142 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 ...
0
votes
1answer
80 views

Using Arduino as ISP and SoftwareSerial at the same time

I'm trying to use my Arduino Uno as an ISP to program an ATTiny85 and at the same time check my board by using the SoftwareSerial library to output the values I'm getting from my sensor. Is this ...
0
votes
0answers
407 views

ATTiny85 arduino interrupt

i would like to know why my code running on the ATtiny85 1Mhz does not wake up after the interrupt. I use the ATTiny Core. #include <avr/sleep.h> // Sleep Modes https://www.nongnu.org/avr-...
3
votes
1answer
182 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 ...
1
vote
1answer
167 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 ...
0
votes
1answer
67 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. ...
0
votes
1answer
607 views

ATTINY85 with RGB LED

I'm trying to DIY about a dozen BlinkSticks (discontinued, Adafruit) pictured here I'm thinking to use a Digispark ATTINY85 to control a single RGB LED to show the status of some program running ...
2
votes
1answer
752 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() { ...
1
vote
1answer
98 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 ...
0
votes
0answers
161 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 ...
0
votes
3answers
117 views

Digital Comparator with ATTiny85 doesn't behave as expected

Here is my schematic: I've removed the resistors from the LEDs to make it smaller. The 1 and 2 on the left are outputs from the arduino (which supplies the VCC and ground). These 1 and 2 are HIGH or ...
0
votes
0answers
52 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 ...
0
votes
1answer
362 views

Can I program a 20MHz Attiny85 with the 8MHz Internal Clock option in the Arduino Software?

I'm looking at using the ATTiny85 for a project, but have run into a snag. After following the tutorial found at https://learn.sparkfun.com/tutorials/tiny-avr-programmer-hookup-guide, I've installed ...
0
votes
1answer
87 views

Attiny85 route vcc though output pin

I'm still learning the basics so please bare with me if something seems unclear ;-) I want to hook up an Attiny85 to a WiFi module (esp8266) and 2 sensors. The VCC will be provided by a battery pack ...
2
votes
2answers
953 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 ...
0
votes
1answer
92 views

Adadfruit Trinket software not running on ATtiny85

I have an application that uses a pair of nRF24L01+ as a simple RF link between a camera PC sync output and a set of LED flashes. The important factors are power and low latency - hence the 2.4GHz. I ...
0
votes
2answers
541 views

Attiny85 not able to understand data from 433Mhz using VirtualWire.h

The basic plan is to have a Attiny85 pass information from a 433Mhz RF module to another chip/Arduino via I2C using VirtualWire and Wire libraries. I have been able to make this system work on their ...
1
vote
2answers
108 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
454 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
769 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
1k 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
2answers
4k 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 ...
0
votes
2answers
1k views

Digispark ATtiny85 keyboard

I have a small project that I have in mind and I'm pretty new with Arduino. I want to make a small device that if a key was pressed it would do something. Now I know I could use a button with the ...
1
vote
0answers
438 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 ...
1
vote
2answers
3k 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 ...
0
votes
1answer
128 views

How can I modify Arduino code to work with ATtiny85?

Push a tactile switch to cycle through several different patterns on the LED strips. I want to modify the Arduino code so that I can use the ATtiny85 instead. *****The code posted here works on the ...
0
votes
1answer
652 views

ATTiny85 Serial communication with Bluetooth Module

For a simple project I would like to use a ATTiny85 connected to a HC-06 Bluetooth Module so it can talk to my Android phone. I wrote a code for my Arduino Uno and worked as expected. When I changed ...
0
votes
1answer
985 views

FastLED: “Invalid pin specified”

I have an Adafruit Trinket (5v, 16mhz, based off of the AtTiny85 chip), and am wishing to use it with a strip with 24 3 pin, individually addressable LEDs (WS2812B). When I try to compile my code, I ...
0
votes
0answers
401 views

Attiny85 output voltage is too low

I'm trying to get a attiny85 chip running for the first time. I followed these instructions: https://create.arduino.cc/projecthub/arjun/programming-attiny85-with-arduino-uno-afb829 Here is the code ...
1
vote
1answer
680 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 ...