Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
226 views

Attiny cores with SPI support?

It's been done, but the the tutorials I find seems incomplete. What I'm trying to do is make the ATTiny84 talk to the 2.4 GHz NRF24L01+ radio. I understand that in order to do that I need the MCU to ...
0
votes
1answer
145 views

ATTiny85, how to fix overwritten clock pins?

I'm using an ATTiny85 with an external 16MHz clock. I accidentally set pins 3 and 4 to output using pinMode() in a program and uploaded it, and now I'm getting an invalid device signature (the ...
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 ...
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://...
1
vote
1answer
570 views

ATTiny85 433Mhz with sleep

I would like to micromize my Arduino project and move it to ATTiny85. The first step was using sleep functions because I just want it to run once a day. Now I need to connect the 433Mhz stuff but I'm ...
1
vote
1answer
1k views

How do I use an AtTiny85 (or other AtTiny) with Arduino?

Please mind that this is an "example" question. How to make a "tiny arduino"? I've ordered a bunch of ATtiny85's off E-bay, they're like tiny Arduino's. I've set up the latest Arduino IDE and would ...
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,...
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 ...
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
2answers
329 views

Problem with ATtiny85 and RF modules

I am doing a project on a ATtiny85 which involves using 433MHz RF modules. Whenever I want to compile any sketch using the Manchester library I always get these errors : "Manchester library doesnt ...
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 ...
0
votes
1answer
51 views

Regulator magic smoke

I have accidentally released the magic smoke from the regulator on a digispark board. I did this when I accidentally plugged a circuit into the 5V and the VIn instead of the 5V and Gnd, and then ...
1
vote
1answer
861 views

ATTiny watchdog and interrupt

I'm trying to control an Arduino Barebone from an arduino with relays. Basically when the attiny starts it should switch on the arduino for 4 seconds. The Arduino sends a signal back to a digital pin ...
0
votes
2answers
114 views

Programming an ATtiny85

Recently I ordered some ATtiny85's from Jameco, and I've been trying to upload code to them through an Arduino Uno, following the instructions from this video on YouTube. I've been getting a lot of ...
1
vote
0answers
135 views

Reprogramming a specific slave from the master ATTiny 85 (connected to IDE)?

Given that every ATTiny connected already has a bootloader (micronucleus) installed, here's my theoretical chain: Computer > Master ATTiny (Connected via USB) > ATTiny Slave A > ATTiny Slave B Is it ...
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 ...
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?
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 ...
1
vote
1answer
519 views

Arduino non-blocking software PWM LED fader not working

I am trying to write a simple software PWM to fade some LEDs because I don't have enough PWM I/O Ports. The code evaluates how long you want the LED to fade, and breaks it down into a number of steps....
1
vote
2answers
485 views

RF24 Stalls Arduino Program with powerDown

I have an ATtiny85 and an Arduino Uno both using NRF24L01 chips to communicate with one another. The ATtiny85 is powered by a CR2032 coin cell. I am using tmrh20's fork of the RF24 library which can ...
1
vote
3answers
214 views

No Battery Microcontroller Operation - (Motion, heat, induction etc)

I am using an ATtiny85 to sleep for a long period of time, collect some data, send it over radio, and go back to sleep, after disabling everything possible. The ATtiny is currently powered by a coin ...
1
vote
1answer
743 views

NRF24L01 Connection Not Working

I have an ATTiny85 connected to an NRF24L01+ module using this wiring diagram: diagram. The ATTiny85 periodically goes in and out of sleep to send some value to a receiver, an Arduino Uno. If the ...
1
vote
1answer
225 views

Is it possible to reduce the size of this program to 1KB

I want to use attiny13 in my project but this program is going over 1KB void setup() { Serial.begin(9600); delay(2000); Serial.println("AT+CMGF=1"); delay; } void loop() { for (int i=0 ;i &...
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 ...
0
votes
2answers
787 views

Small, Power-Efficient wireless communication with ATTiny85

For a project that I'm working on I need an extremely small, power efficient wireless device (could be radio, or some other interface) to network between a series of ATTiny85s and a larger Arduino. ...
0
votes
1answer
224 views

ATTINYx5 usi for uart?

Can the ATTINYx5 use its universal serial interface for a better UART than the Sofware Serial library alone? If so, is there a library or tutorial for this?
1
vote
1answer
93 views

Where is the Aref pin for Attitny88

I would like to use the external analog refence voltage in an Attiny88 project I am working on that will be powered with batteries. However, the datasheet for this processor does not show an Aref ...
2
votes
1answer
695 views

ATtiny85 SPI with Timer 0

Trying to shift out from ATtiny85 to a shift register using the USI in SPI mode. I have Timer 0 running as slowly as possible (checked it was running by temporarily changing it to toggle a pin with an ...
1
vote
0answers
572 views

ATtiny85 + HC-05 + Oled = smart watch

I am using an ATtiny85 for making a smart watch. Bluetooth module HC-05 with ATtiny85 pins PB3->TX, PB4->RX and it works. Secondly I have connected a 0.96" OLED on PB0 (SDA) and PB2 (SCL) and this is ...
1
vote
4answers
2k views

Generating a 38 KHz signal without timers

I am currently trying to generate a 38 KHz signal for my TSOP4838 (http://www.vishay.com/docs/82459/tsop48.pdf) with an ATtiny84A. I know the real thing would be to utilize a timer but the ATtiny ...
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 ...
2
votes
0answers
202 views

error with avrdude command line using arduino as isp (i think)

I am trying to upload a .hex file to my attiny85v-10pu and using my arduino as a isp (i think thats the right term) but it come up with this error. ser_open(): can't open device "lpt1": The system ...
1
vote
2answers
15k views

avrdude: verification error, first mismatch at byte 0x0000 : 0x00 != 0x16 using USBasp

I'm having this strange error, which pops up around 90% of the time. I am trying to program my attiny25 using USBasp and the Arduino IDE / library. Sometimes it works, most times it doesn't.. This ...
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 ...
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: ...
1
vote
0answers
48 views

Attiny88 problem with LEDs and voltage

I have the following problem and wonder if anyone may have some inside into what may be happening. I have an array of 20 leds that i manage to multiplex using the attiny88 using only 9 pins (4 ...
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 ...
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 ...
0
votes
1answer
441 views

ATtiny461 PWM CTC mode help

I am a beginner at AVR and programming. I am using ATtiny461 and asked to make code to use timer in PWM and CTC mode and use interrupts and pin toggle, this code worked for me with normal timer and ...
-1
votes
1answer
1k views

USB Device not Recognised - Custom Wattuino Nanite 841

What I have done: I have made a custom Nanite 841 which uses an ATTINY841 microcontroller. I have used the schematics from Wattuino to design my circuit, my PCB was made using a router with all ...
0
votes
1answer
399 views

Attiny88 as SPI slave

I have programmed Attiny88 with Arduino IDE 1.6.5 using https://github.com/SpenceKonde/ATTinyCore . I chose Attiny88 because it's the cheapest Attiny (as low as $0.5) and at the same time has 28 pins ...
2
votes
1answer
652 views

Attiny45 wake by Software Serial

I would like to wake Attiny45 from sleep by Serial communication. RX is connected to pin 7 (D2). When I try to use PCINT0_vect routine, I get an error "multiple definition of `__vector_2'" so it looks ...
1
vote
0answers
590 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

Flash a .hex to an ATtiny45 with Arduino

I'm trying to upload a hex file to an ATtiny45 with an Arduino. I uploaded the Arduino ISP sketch to my board. I connected the ATtiny as shown below: Then I go to CMD and type: avrdude -c avrisp -p ...
0
votes
1answer
340 views

ATTiny to drive LEDs

I'm installing some daylight running lights in my car and I have purchased 2 LED bars, each with 8 white LEDs. They use 12V and I need to make some effect when they turn on. Like in some modern cars, ...
0
votes
1answer
258 views

Is crystal mandatory on attiny84?

I am trying to make a mini project with attiny84 and I searched the web so I can make an arduino on breadboard. What I saw on the internet is that they didnt use crystal. Is it mandatory if I want to ...
1
vote
2answers
3k views

Program ATtiny13 - 20PU

I'm trying to program my ATtiny 13 - 20PU. An it seems to work, but there is no action upon the "delay" command. If on the sketch below I comment out the "High" line, my led is off all the time and ...
0
votes
1answer
6k views

How do i properly read an analog pin on attiny85?

Anyone ever run into a problem with your attiny not reading your analog pins correctly? (-1023 or 1023 or 0 value) How did you resolve the issue? Here's what my code looks like now : 4th revision ...
0
votes
1answer
500 views

IR not working on Attiny85

After countless attemps on making this thing work i'm not sure what the hell is going on. First of all you can't use the normal IR library because Attiny85 is crap and due to timer isses it wont work. ...