ATtiny is a range of programmable 8-bit AVR microcontrollers by Atmel.
Questions tagged [attiny]
160 questions
0
votes
1 answer
Uart issue in Atiny167 Controller
i am trying to get an data over uart of Attiny167,in interrupt mode at baud rate of 57600 but when i debug the programme i only receive CR & LF no data i am receiving why is it happening in this controller below is my code:
#define CPU_CLOCK_FREQ…

pranjal khanduri
- 351
- 1
- 3
- 16
0
votes
1 answer
Arduino SoftwareSerial Rx/Tx pin order error?
I'm writing code to run on an ATtiny being programmed by an Arduino as ISP. The ATtiny is to send AT commands over serial link to an RN42 Bluetooth module.
Since the ATtiny has no UART I'm using SoftwareSerial on pins 0 and 1. It seemed logical to…

Matt K
- 33
- 8
0
votes
1 answer
Attiny85 using global variables in timer interrupts
I'm pretty new to Arduino programming. I have however been coding for a while. I'm currently trying to code a polyphonic piano using the Arduino IDE and a Digispark Attiny85 development board. To play multiple notes at once I'm using sine tables and…

Mattasdqwe
- 3
- 1
0
votes
1 answer
ATtiny Arduino as ISP AVRDude flash command
I recently bought a couple of ATtiny85 chips and have been using my Arduino UNO as an ISP Programmer to flash them from the Arduino IDE.
Now I want ot flash some code made in Ateml Studio onto the chip.
I tried C:\>avrdude -c arduino -p attiny85 -P…

000000000000000000000
- 1,467
- 1
- 19
- 38
0
votes
1 answer
Error Communicating between ATtiny85 and Arduino via I2C using TinyWireS
I am attempting to communicate between an Arduino and an AtTiny85 with I2C using the TinyWireS library. I only need the Arduino to send commands to the AtTiny, it does not need to talk back.
The Arduino is using the Wire library, and it works fine,…

landon berg
- 1
- 1
0
votes
1 answer
Modifying hex codes to produce a larger output
I was working on this project : http://elm-chan.org/works/sd8p/report.html
and I failed in every possible way from the start. Now that the .Hex files have been uploaded, and the fuses written, when I plugged the SD card in, nothing happened. Nothing…

See Jian Shin
- 101
0
votes
1 answer
Pulse width modulation (PWM) on Attiny 9
I am using an Attiny 9.
I connected a LED to PB1.
I wrote following code and upload it to the Attiny 9.
#define F_CPU 800000UL
#include
#include
#include
#include
#define D0 PB1
int…

neosarchizo
- 648
- 1
- 7
- 16
0
votes
0 answers
I can't build an Atmel Studio 7 project with Arduino.h header file
I'm writing a code for an ATtiny841 which is using
And when I click on Build (F7) I have this in the build window:
Severity Code Description Project File Line
Error Arduino.h: No such file or directory
Then I try to include the…

fabocode
- 62
- 1
- 13
0
votes
1 answer
Programming attiny45 chip and ir remote library
I'm using the IR Remote library with an attiny45 chip. The codes works fine with an Arduino but getting error message when uploading to attiny45 chip.
#include
int RECV_PIN = 2;
int led = 1;
int relay = 0;
IRrecv…

Shaam
- 92
- 13
0
votes
1 answer
Replace Wire Library with TinyWireM (Make Library ATtiny compatible)
[I asked this question on the Arduino Stack Exchange, and I waited a while and got no answer, so I thought that I'd ask it here!]
I want to integrate Pololu's vl53l0x Time of Flight distance sensor into a project of mine. They created a library to…

Alex Wulff
- 2,039
- 3
- 18
- 29
0
votes
0 answers
Arduino Attiny85: analogWrite resolution
This question is a follow-up of this hardware question:
https://electronics.stackexchange.com/questions/266536/digital-optical-volume-control-with-led-and-photoresistor-light-to-seperate-cir
but this time it is about software, analogWrite.
I use an…

Codebeat
- 6,501
- 6
- 57
- 99
0
votes
1 answer
Attiny85 AC Phase Control for dimming a light bulb
I'm trying to dim a light bulb via a attiny85 which accepts commands sent over I2C. My problem is that bulb is barely dimming and is flickering quite a bit.
My circuit can be seen here:
Attiny85 dimming circuit controlled over I2C
The opto-isolator…

thread9000
- 11
- 1
- 2
0
votes
1 answer
If won't trigger inside while
currently I'm trying my best at programming a microcontroller.
int main()
{
init_ports();
while(1){
if(gameStatus == 1){
gameStatus = 2;
beep(120);
}
}
}
is my main, gameStatus is a global…

3jfx
- 75
- 5
0
votes
3 answers
ATtiny85: how to respond simultaneously to pin and timer interrupts
I've recently been playing around with the ATtiny85 as a means of prototyping some simple electronics in a very small package. I'm having a spot of trouble with this since the language used for many of its functions is very different (and a lot less…

Ash
- 9,064
- 3
- 48
- 59
0
votes
1 answer
atTiny85 loop till no read from arduino OR timeout
I would like to loop nothing in my atTiny till I get a read on an specific Input or the maximum time is reached. The reading comes from Arduino.
Here is my sample code but it does not seem to work, the code jumps straight out of the loop.
void…

Hannes Oberreiter
- 671
- 8
- 15