Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
2
votes
3answers
218 views

Serializing data created by ATTiny85 for use on PC

Have an AES-128 implementation I'd like to install on an ATTiny85 for embedded use but need to come up with a way to communicate with it from a PC as you would do via Serial on Arduino Uno. For ...
0
votes
1answer
798 views

ATtiny44 millis() not working with 16 MHz external clock

I'm using ATtiny44 with Arduino IDE according to this tutorial: http://highlowtech.org/?p=1695 I have a problem with millis(). When I use an internal 1 MHz clock it works correctly but when I use ...
1
vote
1answer
2k views

How can you speed up the ADC on an ATtiny85?

I'm reading input from a camera and trying to reach a fast frame rate. Problem is my ATtiny85 has a pretty slow conversion time (65 - 260 µs Conversion Time). Is there any way to make this faster? I ...
1
vote
1answer
786 views

Does IDLE Mode not power down an ATtiny85?

So I'm trying to power down my ATtiny85 to save power, but for some reason the ATtiny doesn't power down when I'm using the default IDLE mode, but when I start using the SLEEP_MODE_PWR_DOWN the ATtiny ...
0
votes
1answer
1k views

What is the maximum prescaler you can set for an ATtiny85 Timer Interrupt?

I'm having trouble understanding the datasheets for the ATtiny and I need to know what is the largest prescaler that can be set for an ATtiny Timer Interupt? I'm new to hardware so can someone tell me ...
0
votes
1answer
222 views

How can you count the number of interrupts that have taken place?

I'm trying to program a Timer Interrupt that will go off every 33 ms. I am doing this on the ATtiny85 which has a 20MHz clock. The maximum prescaler I can set is 32 so the longest possible time a ...
0
votes
1answer
234 views

ATtiny85 (Sparfun Clone/Trinket), detect/read operation voltage

I just started with Arduino programming and currently I'm using this Sparkfun clone board: o http://nl.aliexpress.com/item/Digispark-kickstarter-Micro-development-board-ATTINY85-module-for-Arduino-...
2
votes
1answer
993 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'...
0
votes
2answers
247 views

Would rewriting my code in C help reduce RAM usage? [duplicate]

So my program fails to run because there is not enough room for my variables as well as the Arduino Core and Stack. I can't find any more ways to optimize my program so I'm thinking about just ...
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
132 views

Difference between Arduino IDE giving me headaches

For some time now I've been playing around with the latest version of Arduino IDE and my UNO and ATTiny with simple 433 RF links with the Manchester Library. It all worked fine, but for my next ...
6
votes
3answers
15k 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....
1
vote
2answers
604 views

Debugging with an ATtiny?

I have an ATtiny hooked up to two line scan modules. I'm sending digital signals to the line scan modules then receiving the analog output and storing it in an array. I have an if statement that will ...
0
votes
2answers
970 views

Can an ATtiny print results to a console?

I'm trying to port some Arduino code that I wrote for the Arduino Mega to an ATtiny and I'm having trouble figuring out how to do output. Here is what I have: char foo; #include <SoftwareSerial.h&...
1
vote
0answers
237 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
151 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
2k 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
7k 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
614 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
7k 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
131 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
339 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
53 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
1k 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
118 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
140 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
702 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
20k 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
570 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
633 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
230 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
785 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
259 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
765 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
863 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
251 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
100 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
741 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
591 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
10k 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
223 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
17k 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
4k 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
49 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 ...