Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

ATtiny85 (Digispark) with 433mhz RF transmitter not working

I have the following components: ATtiny85 Digispark 433mhz Mini Low Power RF Transmitter I got a communication flow transmit/receive working between two Wemos D1 and like to outsource the ...
0
votes
1answer
602 views

Can I program a 20MHz Attiny85 with the 8MHz Internal Clock option in the Arduino Software?

I'm looking at using the ATTiny85 for a project, but have run into a snag. After following the tutorial found at https://learn.sparkfun.com/tutorials/tiny-avr-programmer-hookup-guide, I've installed ...
0
votes
2answers
717 views

interrupt pin of attiny85 unstable

I'm trying to learn how to program a MC, so maybe I didn't know much about a MC. I tried to test interrupt pin of ATtiny85 with this simple code #include <avr/io.h> #include <avr/interrupt.h&...
1
vote
1answer
239 views

Multiple node network communication over I²C [closed]

I am working on a project where I want to send data from and to different Arduinos on a network. At the moment I²C seems the best option for my needs since I can specify where to send the data. But ...
0
votes
1answer
869 views

ATtiny84 vs ATtiny85 consumption

I'm doing a comparative study between ATtiny84 and ATtiny85, and I found from the datasheet that ATtiny84 consumes less current, is that normal even if it is bigger in terms of size and number of pins?...
0
votes
1answer
700 views

ToF VL53L1X sensor integrate with arduino

I have this latest version VL53L1X time of flight laser distance sensor: http://www.st.com/en/imaging-and-photonics-solutions/vl53l1x.html I study about this sensor, It says that sensor only Access ...
0
votes
1answer
748 views

ATTiny85 Serial communication with Bluetooth Module

For a simple project I would like to use a ATTiny85 connected to a HC-06 Bluetooth Module so it can talk to my Android phone. I wrote a code for my Arduino Uno and worked as expected. When I changed ...
2
votes
3answers
223 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 ...
2
votes
2answers
2k 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 ...
0
votes
1answer
64 views

IO with port manipulation while not interfering with i2c

I'm using an Attiny84 with the Tiny Core. I'm try to use port manipulation to write the lower four bits of port A. I'm using i2c which occupies bits 5 and 7. How can I write only to the lower 4 bits ...
8
votes
4answers
14k 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 ...
1
vote
3answers
128 views

SoftwareSerial runs out of “text” space on ATtiny

I have an ATtiny and am trying to send a very large byte array stored in a separate .h file over SoftwareSerial: for (int i=0; i<numElements; i++) { softSerial.println(myList[i]); } I imagine ...
2
votes
1answer
3k 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 ...
0
votes
2answers
221 views

Attiny13 project with leds and electret microphone

I want to make a project similar to this Turn Signal Biking Jacket . But, instead of using Arduino Lilypad I want to use an 8 pin attiny13A-SH and want to use one electret microphone instead of the ...
1
vote
1answer
2k views

PWM output while using I2C with the ATTiny library

I've noticed that when using the USI interface on the ATTiny to send I2C via the methods from "Wire.h" with the ATTiny Arduino implementation included from the library manager (ATTinyCore), while ...
1
vote
1answer
1k views

Use SPI and I2C in the same circuit (ATtiny85/84)

There is a previous question about this same topic here, but it does not answer my question. I want to use a generic I2C OLED 128x64 px display and an SPI RF24 radio in the same sketch. I know that ...
0
votes
1answer
917 views

Not sure why eeprom isn't reading back correctly

I'm new to saving data on eeprom and I'm obviously doing something wrong but I'm not sure what. I have one program which both writes to and reads the internal eeprom on a attiny85 and this seems to ...
1
vote
1answer
1k views

Trying to flash ATTiny85 bootloader using FT232R in the Arduino IDE

I have a FT232R that I want to use to flash my ATTiny85 bootloader in the Arduino IDE, can someone help me out on this? I don't want to get a AVR programmer.
0
votes
1answer
509 views

Reconnect to I2C with a different address (ATTiny85)

My project requires to reconnect to an I2C bus as a slave. I can't reset my ATTiny physically because I2C + my project + a pin to trigger the reset isn't possible due to the limited amount of pins ...
0
votes
1answer
171 views

The Wire library and an ATTiny88 MCU

This is the MCU: http://www.microchip.com/wwwproducts/en/ATtiny88 - it advertises a hardware I2C interface, but I am struggling with it. It is mounted on my own board (which worked fine if I dropped ...
-1
votes
1answer
64 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 ...
1
vote
2answers
677 views

Attiny85: Watchdog does not initialize properly when using switch(case)

I have a project in which I am putting my ATtiny85 to sleep. Here is the watchdog configuration (in the setup) that works just fine: void setup() { /* Setup the LCD */ lcd.init(); ...
0
votes
1answer
259 views

How do I know the size of the bootloader of ATtiny? Is it the same as ATMega328P?

I burned the bootloader in ATtiny45 with the Arduino tool. I want to know how much memory it has taken. Is this bootloader the same code of a bootloader used in the 328P or other chips? Can I see ...
1
vote
1answer
763 views

Arduino <<I2C>> ATtiny85 stops updating variables after a while

I've been working on a project for the last few days and spent a LOT of time googling, reading and testing. I'm kinda running out of ideas now and instead of bumping my head to the wall I thought ...
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 ...
2
votes
3answers
2k views

External Flash Memory for ATtiny85

I'm designing a lightweight circuit, but the ATtiny85 micro-controller I'm using to power it doesn't have nearly enough flash memory to store the code for the devices I'll have hooked up to it (It has ...
2
votes
2answers
216 views

ATtiny84A programming without shield

I am thinking about buying an ATtiny84A, which fits perfectly into my project. I want to embed it into a watch that I am designing right now. But I want to buy an SMT version so I have less space to ...
2
votes
1answer
161 views

Arduino Yún as ISP to program Attiny - why is the sketch not working after successful upload?

I want to use an Arduino Yun as ISP to program an Attiny85. I have soldered a shield following the circuit that is depicted in many sites. You can see it in this page. I have included a LED with a 1k ...
0
votes
2answers
237 views

Is it possible to recover an Arduino if it does not wake up after putting it to sleep

I have an ATTiny85 controlling the power to a number of devices. When I first power on it will power the devices via a mosfet. Take the readings it needs to and then puts itself to sleep for 15 ...
2
votes
0answers
476 views

Is it possible to put ATtiny85 to sleep while using TinywireS?

I have an arduino uno as the master I2C device talking to an ATtiny85 as the slave. What I want to do is have the Attiny85 receive a message from the UNO to tell it to power off which will then ...
1
vote
3answers
1k views

Blink a LED between servo pulses

Apparently using delay() commands locks the Arduino during the delay period and there are better ways to control a servo that free the Arduino to do other things at the same time as running the servo. ...
0
votes
1answer
3k views

Programming a servo on an ATtiny85

Board: "ATtiny25/45/85" Processor: "ATtiny85" Clock: "Internal 1 MHz" Programmer: "Arduino as ISP" I want to run a servo forwards and backwards on an ATtiny85. The servo library is not compatible ...
1
vote
1answer
54 views

Programming Attiny45 using Arduino Uno with weird behavior

I bought an Arduino Uno a few days ago. I programmed an ATtiny45 using an Arduino Uno following "How-To: Shrinkify Your Arduino Projects" video on YouTube. I uploaded the blink example successfully. ...
0
votes
1answer
387 views

Simulate V1838B IR LED output

I have a HDMI switcher which uses a TL1338 IR LED that's connected via a 3.5mm audio jack. It has its own remote for switching between the inputs, but I want to use my TV remote. In order to do that ...
1
vote
1answer
2k views

Arduino ISP ATtiny problems

As I was trying to program my ATtiny chip with my arduino, I ran across some problems. Note that I know that this problem is faced almost in every Q and A site and forum so don't flag me as repeat yet....
1
vote
0answers
327 views

What are all the cameras that are compatible with ATtiny microcontroller? [closed]

I need a tiny camera to attach with my ATtiny microcontroller for a light weight and small sized application to take pictures at a particular time and send to the device. So, what are the camera ...
9
votes
4answers
11k 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 ...
1
vote
2answers
2k 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 ...
2
votes
2answers
486 views

ATtiny85 soft-latching, and sensor-waking: Are multiple switches differentiable by pin change interrupt?

I am using a vibration switch with a pin change interrupt on an ATTiny85 to wake the processor and run some code when the vibration switch grounds an input pin. The circuit is battery-powered, so ...
0
votes
3answers
277 views

Two Arduinos get out of sync after a few seconds

I built a small PCB that has some LEDs (bare NeoPixel 5050) and an IR receiver on it. The microcontroller is an ATtiny85, and the PCB is powered by a LiPoly battery (3.7V). The circuit normally stays ...
0
votes
1answer
406 views

Avr dude programmer

I was trying to upload a hex file to my attiny85 with an arduino,and I came across this: avrdude -c avrisp (followed by other codes and the flash address ) This doesn't work and it gave one of the ...
0
votes
2answers
2k views

Reading and processing a PWM on AtTiny45

I have this question and I can't find answers! I wanted to use an AtTiny45V (due to low voltage requirements, it will run at 1.8 volts) to read a PWM from an Arduino, and then process this ...
0
votes
1answer
4k views

How can I get my Attiny85 interupt to trigger

I have an ATTiny85 set up to detect a magnet passing over a hall sensor. Every 2 detection's I want it to light up an LED. I decided to do the code using the arduino IDE and the code is as follows: ...
0
votes
0answers
482 views

Writing to flash Attiny 85

I set a project-goal for me: to make a very small compiler in Attiny.This compiler should read the code from user and translate it into code;then save it in some portion of the flash and jump there. I ...
-1
votes
1answer
1k views

Understanding schematics: resistors attached to Attiny85 pins V-USB

I'm currently trying to create my own Attiny85 usb thumb(to mimic an joystick). I understand that I have to limit the voltage on the attiny's pins that are connected to the D+/- pins from the usb. In ...
0
votes
1answer
729 views

Attiny85 not recognized at windows startup

I'm using an Attiny85 to interact with a computer using an USB connection, and everything works fine except when I restart my computer and the Attiny85 is connected. When Windows end to boot up the ...
1
vote
2answers
467 views

Interrupt handler in library

This is my first library so feel free to burn me and vote this down :D This is a library that provides me with Watchdog deep sleep on my ATtiny85 projects. In the test sketch I use the watchdog timer'...
2
votes
1answer
569 views

WDT and RadioHead with delay()

The core I use is this one The chip I use is an ATtiny85 I run this using the Arduino IDE 1.8.2 RadioHead ASK library (slimmed down) What I want to do is: deep sleep wake up every minute turn on ...
1
vote
1answer
301 views

Calculating with millis()

The following code works fine until I turn the if (tijd - action >= 500) into if (tijd - action >= 1000) I wonder why this fails. If I just loop and print the tijd - action it has no problem ...
1
vote
3answers
606 views

ATtiny85 Timer 1 comparator A interrupt problem

I'm writing a program on attiny85 using interrupts. It is a simple program: - when rising edge is detected on PCINT0, drive DEBUG_PIN to HIGH - when TIMER1 counts up to OCR1A, drive DEBUG_PIN to LOW ...