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
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
1k 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
652 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
367 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
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 ...
1
vote
2answers
192 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
109 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
116 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
196 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
452 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
210 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
363 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
585 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
813 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 ...
0
votes
0answers
597 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
315 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
634 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
232 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
310 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
395 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
1answer
719 views

AtTiny44 and AtTiny 85 communication

I'm working on a project where I use two microcontrollers: an AtTiny44 (20MHz ext clock) and an AtTiny85 (8MHz internal). What I'm trying to achieve is an I2C communication between the 85 and the 44, ...
0
votes
3answers
197 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
0answers
723 views

cannot get low power with Adafruit Trinket

I want to get as low power use during sleep as possible with an Adafruit Trinket. Based on results presented on various places in the internet (blogs etc), I expect to be able to go down to 50 - 100 ...
2
votes
2answers
4k views

ATTiny85 and DHT11 - Sensor always returning 0

Good day. I am making a small weather station using ATTiny85, DHT11, and an OLED display. There are many, many tutorials that explain how this works, and various libraries that show you how to get ...
1
vote
0answers
406 views

I2C on ATtiny85 and Si4703 radio

I've got an Si4703 breakout from Sparkfun, which communicates via I2C. I have gotten it to work very easily using a regular 3.3V Arduino Pro Mini, but am now trying to move everything over to an ...
0
votes
1answer
306 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
1k 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 ...
1
vote
1answer
1k 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
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 ...
1
vote
0answers
487 views

Manchester.h message format

I'm sending some data by 433Mhz transmitter using manchester.h library from here https://github.com/mchr3k/arduino-libs-manchester and I'm trying to wrap my head around message format. In manchester....
0
votes
1answer
2k 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
398 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
851 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 ...
1
vote
2answers
344 views

Attiny85 Timer 1 comparator B doesn't work properly (while A does)

I'm writing a simple program that is using Timer 1 comparator B to generate a square wave on DEBUG_PIN. So my code at first turns on timer 1 with prescaler 8192 so that one tick is approximately 1ms....
0
votes
1answer
584 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
490 views

Using ATiny102 as HID device(emulating mouse)

I am trying to make my own mouse/keyboard from an attiny (it doesn't have to be attiny102 as the title suggests). I have read many articles on this subject: some are using v-usb library.But I ...
1
vote
2answers
385 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'...
1
vote
1answer
457 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
246 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
1answer
379 views

RadioHead and DallasTemperature error

The RadioHead library only runs on a very old core for the ATtiny85. It sends data but I would like to send something useful. The problem is I cannot read any sensors using this core. And on any other ...
3
votes
2answers
465 views

ATtiny85 LM75 I2C

I would like to read temperature from a LM75 using the ATtiny85 running a core by SpenceKonde and utilizing the TinyWireM library. My Logic Analyzer does not pick up any I2C communication, when I ...
0
votes
3answers
418 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 ...
1
vote
0answers
712 views

ATtiny85 Comparator C interrupt on timer 1

I have a program that uses Timer1 comparator A in CTC mode. I realize that I need to set OCR1C for the timer to reset at given value. However there is no such thing as an interrupt generated by timer1 ...
1
vote
2answers
528 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(); ...
5
votes
1answer
4k views

Can I connect an SD card shield to Digispark ATtiny85 board?

I have a Digispark ATtiny85 Arduino board (as shown in the picture). Can I connect a SD card shield to this board as a normal Arduino? How can I do that I'm new to this field?
1
vote
1answer
48 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
421 views

Too low voltage on digital input on attiny45

I'm using one of my attiny's pins as digital input. I use it with a pulldown resistor. As input I use simple square wave generated by a separate waveform generator. igh state for square wave is 5V, ...
2
votes
0answers
260 views

Software flashing attiny167 from RPi with avrdude

I am trying to flash a program onto an attiny167 (already bootloaded with the micronucleus bootloader) with a Raspberry Pi via avrdude and USB. Background I have 50 Raspberry Pi 3B's connected to an ...