Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

How can I adapt this code for the ATTiny85?

So I set up an Arduino circuit that while a button was pressed, a sound effect would play and an LED would activate until I stopped pressing the button. Since I didn't use a micro sd card module, I ...
-1
votes
1answer
27 views

Increasing speed of Vl6180x Sensors

I have 5x vl6180x pololu ToF sensors. I have managed to hook up all of the sensors to the arduino via I2C by making each sensor startup at different times and when they do, changing their addresses, ...
0
votes
1answer
39 views

Is changing values in boards.txt and choosing Burn Bootloader enough to write fuses?

I am using Arduino IDE to program ATtiny84A connected to an Arduino Uno and Programmer set to Arduino as ISP. I would like to modify low and high fuse bits for ATtiny84A. As far I do not understand ...
0
votes
1answer
32 views

How can I make FastLED set every 2 LEDs to the same color?

I'm controlling an WS2812 LED strip in which every 2 leds is controlled together - they are setup as "eyes" in a prop. I'm looking to control hundreds of these, so in an effort to save RAM I'd like ...
0
votes
1answer
29 views

Which pins are represented by these constants from ABR library?

The following code comes from AtTiny serial library that I want to use: #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> // change these to use another pin #...
0
votes
1answer
62 views

AtTiny analog read always 1023

I am trying to replicate Low power LED firefly project. So what I'm trying to do is to do an analog read from a LED, to detect light. To simplify it a bit, I am using different pins and different leds ...
0
votes
1answer
80 views

Digispark Micro (ATTINY85) not working on Macbook Pro 2016

I just bought 2 Digispark Micro to start learning some Arduino things. But when I try to upload the code to my Digispark, it just send me an "Device search timed out" error. My Digispark is plugged ...
1
vote
2answers
229 views

Digispark ATtiny 85 - not recognised as HID device

I am trying to create auto-username-writer with Digispark ATtiny 85. I have a pretty simple sketch: #include <DigiKeyboard.h> void setup() { } void loop() { DigiKeyboard....
0
votes
1answer
15 views

Can I program an ATtiny87 with Arduino

I have a project, and I want to use an ATtiny167(ATtiny87), I know that an Arduino can progam ATtiny84 (84/44/24), ATtiny85 (85/45/25), and ATtiny2313 (4313). but I don't know if it can program an ...
0
votes
1answer
48 views

My software serial code won't work at > 4800bps

I've put together a simple software serial (send-only) implementation for use on my attiny8[45] microcontrollers. I realize that there are more efficient USI-based implementations out there; this was ...
0
votes
0answers
76 views

Software reset on Micronucleus possible?

I'm wondering if anyone knows if it's possible to do a software reset using the watchdog timer on a microcontroller using the Micronucleus bootloader. When I try it, it doesn't fully reset, as in ...
1
vote
0answers
133 views

Integer corruption

I use a sensor to measure the temperature. This is returned as float. I feed this float using typecasting (int) to a blink function. This works fine. But the next is step is using this same unchanged ...
1
vote
0answers
76 views

Why does the program size increase so drastically with these switch-cases?

EDIT: The problem is my op-code catch is op >= 0x20 || op <= 0x2F rather than op >= 0x20 && op <= 0x2F and so most of the switch-case was being optimised away! This is a really ...
0
votes
1answer
136 views

Controlling LED and Button with single pin

I am trying to use an ATTINY85/Ardunio Uno to turn an LED on and listen to a button input. I don't mind if the LED turns on when the button is used. I am have found this thread from a couple of ...
0
votes
1answer
267 views

Adafruit Trinket M0 persistent storage?

I am using an Adafruit Trinket M0 to program a small game and would like to save the game state every so often. I am programming it through the Arduino IDE as the chip does not have enough space to ...
2
votes
1answer
43 views

Using external reset to trigger radio receipt

I am designing a low-power RF application using an ATTiny (Adafruit Trinket). When the system receives a radio signal, it needs to read some sensors, and transmit with that data. Because I am short ...
1
vote
1answer
83 views

Safely powering a relay from same source as attiny/arduino?

My project involves using ATTINY to control a 5v relay (specifically JZC-11F and will be ground triggered) in an automotive setting. I keep seeing the warnings of powering a relay from the same ...
1
vote
2answers
198 views

Reconstruct uint32_t from char array to RTC.set

I am currently experimenting with a Digistump ATTiny85. Since it has no Serial, I use the basic DigiUSB library for communication. The RTC library used is this one: https://github.com/JChristensen/...
0
votes
0answers
126 views

Is this a good way of making a low power attiny? Unpower instead of sleeping

I am making a low power rf remote that just has 3 buttons and sends rf signals accordingly. I've been trying to make pin interrupts work when it's in deep sleep but it's a huge hassle. And then I ...
0
votes
3answers
85 views

Digital Comparator with ATTiny85 doesn't behave as expected

Here is my schematic: I've removed the resistors from the LEDs to make it smaller. The 1 and 2 on the left are outputs from the arduino (which supplies the VCC and ground). These 1 and 2 are HIGH or ...
1
vote
1answer
49 views

Changing type of one variable dramatically changes compile size

I have a sketch containing the following method: // Writes zeros to the complete screen clearing it: void clearScreen(uint8_t val) { setDrawArea(0x00, 0x7f, 0x00, 0x07); // complete screen ...
0
votes
1answer
85 views

attiny85: ISR not triggering for PCINT2?

I am using an attiny85 to read the fan speed reported by a pair of 4-wire fans. I had planned to attach the TACH output from the fans to pins 1 and 2, but I ran into a problem: I was able to handle ...
0
votes
1answer
1k 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
282 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
509 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
171 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 ...
1
vote
1answer
115 views

Use ATtiny85 to perform initial config on a Cisco router using its USB console port

We have 200+ brand new Cisco routers that have USB console ports (but not the old RJ45 serial console ports). This is quite frustrating because the routers didn't ship with console cables and Cisco ...
0
votes
1answer
420 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 ...
2
votes
2answers
747 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
58 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 ...
1
vote
3answers
99 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
1k 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
1answer
521 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
2answers
133 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
2answers
1k views

I2C communication between Attiny85 as master and arduino UNO as slave

I want to make my Attiny85 and my Arduino UNO communicate together with I2C protocol. Since Attiny do not support Wire library, I use TinyWire by lucullusTheOnly and Wire on the Uno. The Attiny is ...
1
vote
1answer
887 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 ...
0
votes
2answers
1k views

Digispark ATtiny85 keyboard

I have a small project that I have in mind and I'm pretty new with Arduino. I want to make a small device that if a key was pressed it would do something. Now I know I could use a button with the ...
0
votes
1answer
619 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 ...
0
votes
1answer
315 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 ...
2
votes
3answers
1k 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 ...
1
vote
2answers
178 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 ...
0
votes
1answer
100 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
vote
1answer
109 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
1answer
181 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
377 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 ...
0
votes
2answers
194 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
327 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 ...
0
votes
1answer
521 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
3answers
693 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
2k 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 ...