We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
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: ...
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 ...
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 ...
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. ...
1
vote
3answers
2k views

Interfacing an ATtiny85 with MIDI via Software Serial

In order to finish a synth project that I'm working on I built a MIDI interface. To test it, I drew up some code which (is supposed to) light up an LED when any key is pressed. The light turns off ...
1
vote
2answers
2k views

Adding Attiny to Arduino IDE - attiny\variants\platform.txt file missing

I followed this guide to program AtTiny using Arduino as ISP. The problem is that it has some file missing: java.io.FileNotFoundException: C:\...\arduino-1.6.8\hardware\attiny\variants\platform.txt ...
0
votes
1answer
429 views

Mapping PPM Signals to Servo Values

This question is an extension of this question. Accessing Values From Array Within a Library The answer provided by Mark showed me how to read and print a single value from a particular array by ...
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 ...
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 ...
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 ...
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 ...
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://...
0
votes
2answers
1k views

How do I squeeze code to fit onto an ATTiny

I am using an ATTiny85 for the first time and at compile I receive the following errors Arduino: 1.6.11 (Windows 10), Board: "Digispark (Default - 16.5mhz)" C:\Users\Steve\AppData\Local\Temp\...
3
votes
1answer
604 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 ...
1
vote
0answers
591 views

programming attiny88 & attiny828 with arduino

I found some information that the attiny88 and attiny828 can be programed from an arduino, similar to the programing of the attiny85/45, simply connecting the right pins. https://electronics....
1
vote
2answers
2k views

Attiny88 programming with Arduino

I want to program Attiny88 with Arduino IDE 1.6.5. I chose Attiny88 because it's the cheapest Attiny (as low as $0.5) and at the same time has 28 pins. I found a library that support Attiny88 (https:/...
1
vote
1answer
1k views

MMA7660 accelerometer with ATTiny85

I'm trying to make the ATTiny85 work with the MMA7660 accelerometer, so far, without any success. Google search for "ATTiny85 MMA7660" gives poor results, and I'm not sure it has been done at all, at ...
0
votes
2answers
128 views

Where are the chip configurations stored in IDE 1.6.x? How to modify them?

With the new 1.6.x version of the Arduino IDE, obscurity of adding new chips has gained new level. It now seems you have to add HTTP links to some JSON files in single-line edit field in settings. I ...
0
votes
2answers
1k views

Problem with programming an ATtiny85: Error - avrdude: Yikes! Invalid device signature

I'm trying to program an Attiny85 chip using an Arduino Uno as an ISP following this two tutorials: Instructables: Program an ATtiny With Arduino and Programming an ATtiny w/ Arduino 1.6 (or 1.0) but ...