Questions tagged [attiny]

An 8-bit, low power AVR microcontroller from Atmel.

Filter by
Sorted by
Tagged with
19
votes
1answer
28k views

ATtiny85: Power consumption vs clock speed

Short and simple: What is the power consumption for an ATtiny85 running at 1 MHz and 8 MHz using the internal clock? Not using any sleep modes. I have googled a lot and can't find any info on this. I ...
11
votes
3answers
43k views

When using Arduino Uno as ISP does “Yikes! Invalid device signature” mean a bad connection, bad config, or bad version of avrdude?

I'm using an Arduino UNO to program a pre-compiled hex image to an ATTINY45, using the avrdude in the Arduino IDE directory, on Windows 7. The Uno has the ISP sketch loaded from the examples directory ...
9
votes
2answers
18k views

ATtiny85 communication with computer through USB

I am trying to receive and send some data from a computer to an ATtiny through USB. Can an ATtiny85 IC communicate with a computer through USB? If yes, how should it be connected?
9
votes
1answer
8k views

Emulating 1-wire device(s)

What I want to do is make a ATTiny IC become a slave on the 1-wire bus, with its own S/N and command list for its specific functions. What I want to know is if I can use the one wire library from ...
8
votes
4answers
11k views

Is SoftwareSerial left out for the ATTiny85/84?

I want to use SoftwareSerial with my ATTiny85 and when I google it several projects claim that they are using it... I downloaded the hardware from https://code.google.com/p/arduino-tiny/, but when I ...
8
votes
3answers
5k views

Manchester Library Won't Compile for Attiny85

I am creating a wireless sensor using an Attiny85. I want to send the data to an arduino uno, so I purchased the 315mhz rf link kit from spark fun. Since the Attiny85 does not have a TX I decided to ...
8
votes
4answers
10k views

ATtiny85. How do I burn a bootloader? What is the process?

I want to use all six I/O pins of an ATtiny85, that means also using the reset pin as an I/O pin, however, I found out that if I disable the RESET pin, I can no longer program the ATtiny using an ISP ...
6
votes
4answers
6k views

ATtiny85 minimum setup to blink led

What would be the (very) minimum schematic to make a ATtiny85 blink a led? Restrictions are: There must be a C program compiled and uploaded to it, just like an Arduino board would have. The code ...
6
votes
1answer
557 views

Problems with transmission between ATtiny85 and Arduino Uno with 433MHz RF modules and Manchester

I am trying to transmit from an ATtiny85 running at 16MHz internal clock to an Arduino Uno with the Manchester Library. The problem is that the Arduino is not receiving any data. I have hooked an ...
5
votes
2answers
1k views

Changing pins used in ArduinoISP example

I have built my own ATTiny programmer, but made a bit of a mistake along the way - I didn't align the headers properly, and now instead of them plugging into pins 10, 11, 12 and 13 as per the ...
5
votes
4answers
15k views

RF remote control using VirtualWire on ATtiny85 running at 8MHz on internal oscillator

I'm trying to make an RF remote control using ATtiny85 running at 8MHz on internal oscillator, this cheap RF 434MHz transmitter module (like the one below), and VirtualWire lib, but had no success so ...
5
votes
3answers
12k views

Can you access the EEPROM of an ATtiny with Arduino Code?

I'm attempting to reduce the amount of RAM being used by my program by writing some values to the EEPROM of my micro controller. I'm currently programming on the ATtiny85 which has 512 Bytes of EEPROM....
5
votes
2answers
279 views

Ideas for setting I2C device IDs

I am using I2C to communicate between a collection of ATtiny85s that are acting as controllers for various parts of a system and the "Main Brain" -- a RaspberryPi. Most of the ATtiny85s only have a ...
5
votes
1answer
2k views

Is programming the ATTiny85 possible in 1.5?

I upgraded to Arduino 1.5.7 in hopes of using the command line interface for a larger project. However, the old package I was using to program the ATTiny85 chip with the Sparkfun Tiny AVR Programmer ...
5
votes
1answer
657 views

Extract .hex from ATtiny45 using Arduino

As it is possible to program a ATtiny45 using Arduino as ISP Programmer, is there a way to backup an ATtiny45 program to a .hex file using Arduino?
5
votes
1answer
354 views

Operating / pin voltages ATTiny chips

I would like to set up a project with an ATtiny chip, such as the ATtiny84 or ATtiny85, in which I interface the microcontroller directly with an XBee for both wireless serial communication, as well ...
5
votes
1answer
8k views

Is it possible to program an Attiny85 with a USB-to-TTL converter?

I currently use my Arduino to program Attiny85. As I have one of these USB-to-TTL adapters I am wondering if it is possible to program Attiny85 with it, to free up my Arduino. I know it is possible to ...
5
votes
2answers
45 views

Arduino IDE won't use selected port

I'm trying to program an ATtiny85, using an AVRISP mkII programmer (this one: https://www.amazon.de/dp/B00IYNAXUC/ref=cm_sw_r_sms_c_api_i_VXOWDb3H3N5ND) with the Arduino IDE (version 1.8.10 on Ubuntu ...
5
votes
1answer
4k views

Can I connect an SD card shield to Digispark ATtiny85 board?

I have a Digispark ATtiny85 Arduino board (as shown in the picture). Can I connect a SD card shield to this board as a normal Arduino? How can I do that I'm new to this field?
5
votes
1answer
585 views

ATTiny84 blink mystery

Novice mode, please. I programmed my ATTiny84 using Arduino Ethernet (Arduino IDE 1.6.7) using https://github.com/damellis/attiny branch - 1 MHz internal oscillator mode. I uploaded ISP sketch to ...
5
votes
2answers
13k views

I²C with ATTiny85 at 8MHz using TinyWireM library

Hello fellow Arduino enthusiasts, I am trying to make the ATTiny85 talk I²C with a MMA7660 breakout board I have (it's an accelerometer, this is a follow up question to my previous one). I would ...
4
votes
2answers
8k views

How to program ATTiny85 running 3.3V

I have a working project built around ATTiny85 on a breadboard running at 5V. Now I want to move this prototype on a PCB where it will be powered from batteries. All components used are capable of ...
4
votes
1answer
719 views

Creating a library for attiny85 out of working program

Apologies if this is the wrong sub-forum, the involvement of ATTiny and arduino places this into a strange category. Please correct me if I should post elsewhere. It is important for this to be a ...
4
votes
2answers
5k views

ATTiny85 I2C LCD

My setup is as follows: Arduino IDE 1.6.11 Arduino Pro Mini as ISP ATTiny85 1602A LCD with I2C board The libraries I use are: TinyWireM (source: https://github.com/adafruit/TinyWireM) ...
4
votes
1answer
5k views

I²C between ATTiny85 (8MHz) and Arduino Uno

I keep receiving the following error in myATTiny85-Slave code below: sketch_mar12a.ino: In function 'void setup()': sketch_mar12a:19: error: 'class USI_TWI_S' has no member named 'onRequest' ...
3
votes
1answer
3k views

ATTiny 85 analog input pin number problem

I am using AT Tiny 85 to read voltage from lead acid battery charger while charging. Basically the setup has two 7-segment displays driven by two SIPO shift registers(74ls164n). And used tiny 85's ...
3
votes
2answers
460 views

ATtiny85 LM75 I2C

I would like to read temperature from a LM75 using the ATtiny85 running a core by SpenceKonde and utilizing the TinyWireM library. My Logic Analyzer does not pick up any I2C communication, when I ...
3
votes
1answer
127 views

How does if(serial) work, a c++ question

The Arduino documentation says if(Serial) always returns 1, except for the case where Leonardo USB serial connection delays becoming ready. (Leonardo has two USB IDs, and switches between them for ...
3
votes
1answer
602 views

How to add the -F switch for avrdude in Arduino IDE

So, before starting to learn with something else, I'll give it one last try. The avrdude is complaining that the device signature doesn't match. Whatever, I don't care. To me, what's written on it is ...
3
votes
2answers
733 views

Replace Wire library with TinyWireM

I want to integrate Pololu's vl53l0x Time of Flight distance sensor into a project of mine. They created a library to interface with the vl53l0x over I2C, which works great on my Uno. The only problem ...
3
votes
1answer
4k views

Attiny85 and 433Mhz RF

I have this cheap RF link that I had working with the Arduni UNO, but I wanted to make it smaller and ATTiny85 should do the trick. The RF module is connected (data pin) to PB3 on the ATTiny. But I ...
3
votes
2answers
2k views

ATtiny88 ADC reference voltage setting

I'm writing a simple application that reads voltage from analog input 0. Here is the code: #define OUT 5 #define ADC 0 void setup() { ADMUX &= (0<<REFS0); //Setting reference voltage to ...
3
votes
2answers
9k views

Using ATtiny85, NRF24L01+, DHT2: can't get data from DHT22

I am trying to make a sensor that gets temperature and humidity values from a DHT22 and send it through NRF24L01+ to a Raspberry Pi 2 Model B. To connect NRF24L01+ to ATtiny85 and to free two pins ...
3
votes
1answer
1k views

BLE SPI Module with ATtiny85

Adafruit carries a number of Bluetooth LE 4.0 modules in their store, notably the SPI (https://www.adafruit.com/products/2633) and UART (https://www.adafruit.com/product/2479) version. I have used the ...
2
votes
1answer
1k views

What is using up all the RAM in my program?

I am running a program on the ATtiny and for some reason I am way over the 512 bytes of RAM that are available to me. This is confusing because when I did the math by hand I should have 432 bytes. ...
2
votes
2answers
939 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
3answers
2k views

Change Digispark clock speed, run at low voltage?

I have a low voltage (3.2v) application. I was hoping to use the Digispark. I have a solution using a separate Tiny85, but want to use the Digispark USB programming. To run at lower voltage I think ...
2
votes
2answers
7k views

Reading from a KY-040 rotary encoder with Digispark

I have a rotary encoder KY-040 connected to a Digispark like this: CLK go to p0 and and DT go to p2, SW is disconnected for now (it's just a button). I did everything like the instructions here: ...
2
votes
1answer
2k views

Wire.h library works on Uno but won't compile for ATtiny85

TL;DR: Arduinos are current hungry so I want to switch my microcontroller code works on Uno, I change upload to ATtiny85, code doesn't compile Wire.h breaks at the TWBR input Should I keep trying to ...
2
votes
5answers
6k views

EBay “Development Programmer Board for ATtiny”

Has anyone tried these? Does the ATtiny have a bootloader? What software is used to program the chip? Arduino compatible? Looks a lot more convenient than programming the ATtiny via an Uno. http://...
2
votes
2answers
5k views

RCSwitch on Attiny85

I would like to use my Attiny85 as an remote controlled relay switch. I have already tested the sketch on my Atmega328 and it worked. Now I wanted to burn the sketch on my Attiny85 using ArduinoISP ...
2
votes
1answer
18k views

ATTiny85 Interrupt id vs pin when programming with Arduino

I am using an Arduino Uno with the Arduino as ISP sketch to program an ATtiny85. I followed this tutorial to set up to program the ATtiny, and successfully got it to run Blink and an interrupt-free ...
2
votes
2answers
2k views

Low Power Pin Change Detection (ATtiny)

I want to use an ATtiny as data logger for the opening and closing of a door/window. For that I am using a reed-switch. Since I want to run it from a 3V coin battery, long term power consumption is ...
2
votes
1answer
2k views

Attiny85 code on Attiny84

I made OLED timer/watch using Attiny85, but as internal clock isnt accurate i need external crystal. On Attiny85 im short on pins so i am switching to Attiny84 but i have problems to compile/upload ...
2
votes
1answer
860 views

Is the a low memory alternative to SoftwareSerial?

I'm running a program on a ATtiny85 and running into problems because of a lack of available RAM. When I ran avr-nm on my ELF file I found that SoftwareSerial was taking up a lot of RAM even though I'...
2
votes
1answer
6k views

ATtiny85 and INPUT_PULLUP

I have read some conflicting sources about what pins have internal pullup resistors available for the Attiny85 microcontroller. Can all I/O pins work with INPUT_PULLUP, or just some of them? And if so,...
2
votes
2answers
2k views

How to access Attiny84 port B in Arduino IDE code?

Referring to guide at High-low tech, I were able to flash ATTiny84 via UNO through Arduino IDE 1.6.7. I loaded a simple blink LED program on IDE pin 0 (physical Attiny84 pin 13, PA0) and everything ...
2
votes
2answers
6k views

'OUTPUT' was not declared in this scope - ATtiny85 with Arduino Uno r3 as ISP

I'm trying to follow this this tutorial to program an ATtiny85 micro-controller using my Arduino Uno r3 as the ISP. I am up to the final step on the tutorial, but get an error when attempting to ...
2
votes
1answer
59 views

Attiny45 resets when setting digitalOutput to low

I currently try to program an Attiny45 with an Arduino UNO as ISP. The Arduino is able to program the Attiny45. However, when I try the blink example, it resets the Attiny, when setting ...
2
votes
3answers
3k views

Attiny13 + Arduino

I started my first try in programming an ATTINY13 with my Arduino 2560. Everything seemed fine, however when I wanted to run the blink example, my LED did not blink, it keeps lighting. I am using 5V ...