Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [attiny]

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

1
vote
0answers
74 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 ...
0
votes
0answers
29 views

Packet Loss From Cheapest USB Hardware [closed]

I'm considering making a cheap USB slave device with the ATtiny85 and curious about the inefficiencies I'm accepting. I know that it uses "low-speed USB 1.1" with only 1.5 Mb/s transmission (and no ...
1
vote
0answers
64 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 ...
-1
votes
0answers
57 views

Gyroscrope (I2C) with ATTiny85

I'm trying to upload code to an ATTiny85 using a Tiny Programmer. The end result is to use an ITG-3200 gyroscope to trigger a piezo sensor to beep anytime the gyroscope is moved. I was able to code ...
0
votes
1answer
49 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
64 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 ...
0
votes
0answers
82 views

Using Attiny85 with rechargeable Li-Po battery pack?

I have an attiny that I would like to integrate into a project. I was originally going to use the Adafruit Trinket, but the attiny is enough for my task. I would like to be able to recharge the ...
2
votes
1answer
33 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
55 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
54 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
67 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
50 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
41 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
60 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
599 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
164 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
343 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
107 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
82 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
337 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 ...
3
votes
2answers
397 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
47 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
80 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
670 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
383 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
102 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
605 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
538 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
0answers
219 views

ATtiny85 I2C SSD1306 (screen not working)

I have been on this issue for more than 3 days now after I got my SSD1306 I2C in the mail. I have a Tiny Programmer from Sparkfun, which I use with a breadboard. This is my pin layout: pin2-->SDA, ...
0
votes
2answers
774 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
557 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
216 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 ...
1
vote
3answers
878 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
141 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
91 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
79 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
136 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 ...
0
votes
0answers
47 views

Macro with float takes up ~600 bytes more program space than with integer (ATTiny4313)

So I've defined a macro that converts an input angle to A&B interrupts from a stepper motor. The macro can be seen below: #define ANGLETOINTERRUPTS(x) ((x * INTERRUPTS_PER_REVOLUTION) / ...
1
vote
1answer
264 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
157 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
249 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
384 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
496 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
1k 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 ...
0
votes
0answers
415 views

avrdude: Can't find programmer id “{upload.protocol}”

Every half a year I get an urge to make some program for my ATTiny 13. The fascinating thing is, that every half a year I run into a problem, even though I got it to work 6 months before. So, this ...
0
votes
1answer
200 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
407 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.
1
vote
0answers
141 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 ...
2
votes
2answers
221 views

AtTiny85 and MMA8452Q accelerometer cannot connect using i2c

I am trying to connect the MMA8452Q with AtTiny85 using the TinyWireM library. I made the proper hardware setup with pull-ups on SCL and SDA pins - tested it on Arduino Uno and it works, however ...
1
vote
2answers
282 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 ...