Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [attiny85]

An Atmel 8-bit AVR microcontroller.

1
vote
2answers
61 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
43 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
31 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
41 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 ...
1
vote
2answers
128 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
55 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
73 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
74 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
91 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
0answers
35 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
205 views

ATTiny85 arduino interrupt

i would like to know why my code running on the ATtiny85 1Mhz not wake up after the interrupt. I use the ATTiny Core. #include <avr/sleep.h> // Sleep Modes https://goo.gl/Mm7wuk #include &...
3
votes
1answer
102 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
90 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
62 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
357 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
496 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
76 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
101 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
71 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
51 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
253 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
77 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 ...
3
votes
2answers
626 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
87 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
430 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
95 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
377 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
575 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
773 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 ...
2
votes
1answer
3k 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
375 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
2k 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
121 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
603 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
660 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
315 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
522 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 ...
0
votes
1answer
888 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
94 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 ...
1
vote
1answer
340 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
1k views

i2c wire length

I have some problems with i2c. I can not use long wires on SDA and SCK bus. This seems to be the consequence of the capacity between the SDA and SCK wires and not between SDA/SCK and GND. I figured ...
0
votes
1answer
2k 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 ...
0
votes
1answer
253 views

Simulate V1838B IR LED output

I have a HDMI switcher which uses a TL1338 IR LED that's connected via a 3.5mm audio jack. It has its own remote for switching between the inputs, but I want to use my TV remote. In order to do that ...
1
vote
2answers
1k 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 ...
2
votes
1answer
305 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,...
1
vote
1answer
497 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
3answers
200 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
5answers
4k 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 ...
1
vote
2answers
343 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 ...