Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
603 views

ATTiny85 VirtualWire AnalogRead 1

My ATTiny85 is connected to a 433 transmitter and an analog sound sensor. The 433 is working fine (using VirtualWire) but when I send the reading from the sensor all I receive is a 1. What I would ...
1
vote
0answers
776 views

Manchester 433MHz Nano to ATTiny85

My transmitter is a Nano, the receiver is a Tiny85. I use a Logic Analyzer to check if stuff is moving, I can clearly see data coming in at the receiver. The receiver does not 'decode' the data, man....
0
votes
0answers
49 views

Will an in-circuit programmer mess up my board?

I am designing a circuit board that will contain, among other things, an ATtiny85 and an NRF24L01 module. I would also like to use an SOIC-8 ATtiny variant. In order to program this chip I will then ...
1
vote
3answers
915 views

Is it possible to burn a bootloader to an ATTiny85 with USB TTL and avrdude?

I have: An Digispark clone (with no Arduino bootloader) A USB -> TTL serial device A development breadboard Avrdude I want to burn the micronucleus bootloader to the chip. Is this possible, are ...
0
votes
0answers
2k views

Arduino IDE Can't find the USB Port

I'm on a Mac, running 10.11.6 and Arduino IDE 1.8.1. I've been prototyping some projects using an Adafruit Trinket. I was not having any problems, until at some point my Mac stopped recognizing the ...
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 ...
1
vote
1answer
602 views

Analog inputs on ATtiny85 don't work

I want to use a ATtiny85 to check the voltage of two 12 V batteries (later to control a relay). Therefore I'm using the analogRead() function. For programming I'm using an Arduino Mega 2560 board. // ...
3
votes
2answers
737 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
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 ...
1
vote
2answers
1k views

Reduce current consumption on ATtiny85

I am trying to reduce current consumption on my project. Right now it is using ~1.28mAh, it should be possible to get it much lower (I am using AA batteries as the power source). The ATtiny85 has its ...
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\...
0
votes
1answer
434 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 ...
1
vote
1answer
511 views

Win10 PCs won't see ATtiny boards

I bought some ATtiny boards on ebay but I can't get my computers to see them. When I plug them in I get the USB connected sound then a couple of seconds later it gives the USB unplugged sound. The ...
0
votes
1answer
2k views

ATtiny85 AC Phase Control for dimming a light bulb

I'm trying to dim a light bulb via an ATtiny85, which accepts commands sent over I2C. My problem is that the bulb is barely dimming and is flickering quite a bit. My circuit can be seen here: The ...
0
votes
1answer
2k views

Microcontrollers with built in HID support

I am trying to build a wireless gamepad for which i am using NRF24l01 module for my wireless need and for Sending data to computer i need an mcu which support to act as hid device. So far, i got ...
0
votes
3answers
128 views

How to prevent ATTiny program from running after I flash it with Arduino?

I am making a simple voltage regulator. The whole idea is to just use ADC to read voltage on output side and based on the result, adjust PWM power. I am using PWM on physical pin 5. That's the same ...
0
votes
1answer
118 views

Software PWM implementation on ATTiny44 screws up timing functions

I've came up with a poor man's implementation of software-based PWM for the ATTINY44 and I'm kinda stuck now. It works but it screws up the timing functions badly (delay, delayMicroseconds) no matter ...
1
vote
1answer
35 views

Need to turn on project twice in order for screen to work!

This problem is really stumping me. I made a simple printed circuit board with an ATtiny85, a 128x64 I2C OLED display, and a Sharp IR analog distance sensor. You can view the circuit here: circuits.io....
0
votes
2answers
7k views

Using ATTiny85 as a USB HID Mouse [closed]

Our project involves using an arduino compatible microcontroller to control a mouse on a computer with an accelerometer and flex sensor. We had narrowed down to the ATTiny85 due to its small size. We ...
0
votes
1answer
238 views

How accurate the an attiny timer function

I have an AT-Tiny (trinket) and I want to trigger LED on for 30 seconds every 24 hours. I'm using the timer library as follows timer.setInterval(86400000, toggleit()); void toggleit() { ...
1
vote
1answer
2k views

AVR timer overflow interrupt not working

My problem is an interrupt service routine (ISR) that seemingly never executes! Here's some info on my set up: I am flashing an avr attiny85. I have the bare bones of a project set up so far with ...
0
votes
1answer
601 views

USB Communication like serial RS232 with an Attiny

Basically I want to use an Attiny running an Arduino boot loader as an usb device. I'm not sure how to even start or what phrases to search for. So here's what I ultimately wish to do. Load a ...
0
votes
2answers
430 views

digispark - 2 pin push button to iterate through an hashmap

I'm trying to create a project with my digispark where i can iterate through an hashmap, when i press the push button the digispark writes via digikeyboard the values from an hashmap. Each time i ...
1
vote
1answer
141 views

ATtiny84A support with “Attiny” board manager installed to Arduino IDE

Referring to page http://highlowtech.org/?p=1695, is it possible to program ATtiny84A as well, or just the chip version ATtiny84 (without "A")? Does anybody know?
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 ...
1
vote
2answers
458 views

Which interrupts are enabled when programming an ATTiny85 with Arduino IDE?

I have programmed a tiny85 using the Arduino IDE. I am using the pulseIn() function. Wrapping it in noInterrupts()/interrupts(); appears to make the function more consistent. This would imply that ...
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
0answers
1k views

Read string from DigiUSB

I wrote simple code for my Digispark (Attiny85 with Micronucleus bootloader) in Arduino IDE: #include <DigiUSB.h> String inst; void setup() { DigiUSB.begin(); pinMode(1, OUTPUT); } void ...
-1
votes
1answer
60 views

Replacing stock String.cpp with smaller version

Hey all I am wondering if it's possible to modify the WString.cpp file to only include the commands that I need for my project since that file is so large. I am using a Digispark arduino that 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 ...
1
vote
2answers
1k views

Proper Attiny85 timer/delay

Im having problems with Attiny85 programming. I am making something similar like this project. But i added function that every day on some time it turns on output - something like alarm clock. The ...
2
votes
1answer
1k views

How do I use ATTiny pin 5 (RESET) as a digital output?

I am using an Arduino Uno as ISP (Using the standard ArduinoISP sketch) to program an ATTiny13A through the Arduino IDE. (I also have a USBtinyISP 2.0 and a USBASP 2.0, but can't reliably get either ...
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) ...
1
vote
1answer
898 views

Interrupt and delay problems on Attiny 85

I wrote this code and uploaded it to attiny85: int hours = 2; int minutes = 4; static int MINUTES_COUNT_BIT = 5; static int HOURS_COUNT_BIT = 3; #define button 2 void setup() { pinMode(3,...
2
votes
1answer
116 views

ATtiny serial.print() crash with INTs

I'm trying to print some data to and from an ATtiny85 via serial, using the SoftwareSerial library. So far I've tried these setups with no results: 1/8MHz clock baud rates from 9600 to 57600 (...
1
vote
3answers
3k views

Cheap ATtiny programmer on Debian

I've recently purchased a no-brand 1€ ATtiny programmer off eBay, and with the ridiculous price obviously came no documentation nor support from the seller. At first I thought that using it with the ...
0
votes
1answer
4k views

Debugging my created Library - Error - request for member … which is of non-class type

This seems to be a very common error, I am struggling to understand what exactly the solution to this is. I am attaching everything, library files, code, and errors. If you have a moment, I need ...
0
votes
1answer
55 views

Creating a Library Help with errors

I am attempting to create a library out of an existing code to use inside of another code. To clarify, I have one code, I need to add the functionality of another code to. Instead of plopping the ...
0
votes
1answer
366 views

Can I create a serial.read command with the arduino code alone?

I am trying to manipulate a project and the simplest way to do what I am trying to do would be to use the existing code. This code is designed to take an input from the serial monitor using serial....
1
vote
1answer
151 views

digitalPin giving lower voltage than Vcc

I am using an ATTINY88 for a project that requires to turn on an LED. Right now I am using pin PA1(ADC7/PCINT25). I noted, however, that when the pin is ON, I get about half the voltage that is ...
6
votes
1answer
558 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 ...
0
votes
3answers
1k views

Why can't the Atmel ATtiny family delay over a minute?

I have some really simple code and tested on an 8 MHz ATtiny85 and ATtiny2313. It's basically a blocking blink: int relayPin = 7; long offPeriod = 1 * 60 * 1000; long onPeriod = 1 * 60 * 1000; ...
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
3answers
211 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
738 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
682 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
191 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
208 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-...