Questions tagged [attiny]
An 8-bit, low power AVR microcontroller from Atmel.
319 questions
-1
votes
2
answers
102
views
ATtiny402-SSNR minimum hardware requirement
I am using an ATtiny402-SSNR in a project. I have never used AVR MCUs before, so I need a minimum hardware requirement schematic for this chip. I could not find a schematic for this on the internet.
...
2
votes
2
answers
133
views
Problem sending serial data between Arduino and ATtiny back and forth
I am working on communication between a Arduino and ATtiny13, and I need to get this bare-bone communication to work. There is a Arduino Nano powered by USB cable from the PC, and there is ATtiny13 ...
0
votes
2
answers
138
views
ATTiny84 and Shift Register not working
I know this isn't exactly an Arduino question, but I'm using the Arduino IDE and feel it's close enough. So I'm working on a project that uses an ATTiny84, two SN74HC595N SIPO shift registers, and a ...
0
votes
1
answer
213
views
Trouble Programming ATTINY1616 with Arduino Nano via UPDI: No Communication
I'm trying to program a board I designed with an ATTINY1616. The schematic is shown in the photo. I'm trying to connect an Arduino Nano. +5V and GND are shared, while the UPDI pin is connected to the ...
2
votes
1
answer
87
views
UART Transmission Incorrect on ATTiny826
I'm currently trying to test an extremely simple circuit where I use an ATTiny86 to output some arbitrary values via serial to an Arduino micro. The problem I am facing is that all of the values being ...
1
vote
1
answer
154
views
Does changing the prescale for Timer 0 or Timer 2 affect the micros() function?
I am using an ATTiny88 to drive a PWM device. First of all, digging through the literature, it's hard to tell what the differences between the ATTiny85 and ATTiny88 are, and the vast majority of ...
2
votes
2
answers
749
views
Programming ATtiny1616 error: A programmer is required to upload
I have this ATtiny1616 breakout board, and I'm attempting to upload an Arduino sketch to it following this documentation, but I'm getting the error "A programmer is required to upload" upon ...
1
vote
0
answers
187
views
Bluetooth (HC_06) on the Attiny85
I'm trying to make a hc_06 Bluetooth controller work on the attiny85-20pu.
In the end, I want to control a stepper motor through Bluetooth.
But for now to keep it simple I'm searching for a working ...
0
votes
1
answer
100
views
ATTINY 85 - use host laptop's internet
Suppose I enable USB tethering (internet) on my laptop. Will it be possible to use that internet on an ATTINY 85 connected to USB.
0
votes
2
answers
544
views
ATtiny85 with sleep and serial
I want to communicate over serial to another device (dfplayer) and also set the microcontroller into sleep mode.
The ATtiny85 does not have a hardware serial pin so I need to use a virtual serial (...
0
votes
1
answer
770
views
IDE will not upload to ATTiny88
I was successfully compiling sketches and uploading to various MCUs, including the ATTiny88. Suddenly the IDE quit compiling and complained of various missing compilers. I found and corrected an ...
1
vote
1
answer
116
views
subroutine with if else does not work
Everything in this code seems to work as expected except the subroutine speedcw at the bottom. It should change the time_delay variable.
#define ENA 2 //pin 2 on chip
#define in_A 0 //pin 0 on chip ...
2
votes
0
answers
141
views
I goofed: I used a digital output rather than an analog output
OK, I have a little hardware issue I need to fix in software for the time being. I say, "For the time being," because I already have the PC Boards printed, and I need to make do for this ...
-3
votes
1
answer
380
views
Using internal voltage reference for sensor
i am using 3.7~4.2V lithium battery. I am using internal voltage reference to read constant battery voltage as we know that the battery voltage level depletes overtime. The problem is that my sensor (...
2
votes
1
answer
677
views
How to declare PB3 reset pin of ATtiny44 in program (using arduino IDE platform)
As follow-up of my former question:
Hi, I want to know how I can access PB3 reset pin of ATtiny44 IC. I ran out of pins so I am using it as I/O pin, but I am unable to declare it in the code.
This ...
0
votes
1
answer
1k
views
Why are ATTiny so expensive compared to ESP modules compared to features they offer? [closed]
I was looking for a cheap MCU solution for a project, apart from being compact, ATTiny doesn't seem to provide much value. I was hoping it is cheaper but nope, They are mostly above 1.5 USD in any ...
1
vote
1
answer
762
views
Need help ATtiny85 not working as standalone
I have ATTiny85 that I want to drive a servo. Burned bootloader to the ATTiny85 and I am using HW-260 development board to program and to test the code. While the ATTiny85 works perfectly on the HW-...
2
votes
1
answer
208
views
Issues Uploading Code to ATTiny84 with Sparkfun AVR Pocket Programmer and ATTinyCore
I am getting back into programming with Arduino and built a POV fidget spinner inspired by an instructable by MakersBox. I am using the SparkFun AVR Pocket Programmer and an ATTiny84 (8MHz internal ...
0
votes
1
answer
197
views
On ATtiny84, why does delay() stop working properly when RadioHead ASK is used?
When I call the delay() function on the ATtiny84 micro, it delays for the expected time, until I call the init() function on an RH_ASK object. After this, the micro seems to freeze.
#include <...
7
votes
4
answers
1k
views
Optimizing code for ATtiny10
I'm trying to squeeze code onto an ATtiny10, but I'm just not getting there. I'm using 1060 bytes and only have space for 1024 bytes.
The code is simple enough; I need to read a button pin. If high it ...
1
vote
1
answer
168
views
Adding an Interrupt to ATtiny45 with Arduino
I recently wrote a simple script to...we'll say, "flash some LED's" and uploaded it to an attiny45. In short, the script cycles through 3 LED's and turns them on for a specified frequency, ...
2
votes
2
answers
511
views
How can i reduce my global variable use? Attiny85
I'm trying to compile my code but i keep exceeding my global variable memory by 12%.
Is there anything i can do in my code to further reduce RAM usage?
Or do i have to do modifications to the ...
0
votes
1
answer
299
views
Programming ATTiny1614; Unexpected Signature
Trying to program an ATTTYIN1614 with jtag2updi.
https://github.com/ElTangas/jtag2updi
I was able to use this tool to program an ATTINY1626-XFR and ATTINY807-MNR, but I'm getting an error with ...
2
votes
1
answer
162
views
I am in need of a usable communication library on 1-4 pins of ATTiny84 instead of I2C
I messed up when designing my PCB and just assumed that I could use software slave I2C with ATTiny84.
The reason I did so is - I needed to use all of the analog inputs.
The pins I have on my ...
2
votes
0
answers
750
views
Attiny85 uploading error
I am getting an error while trying to upload programs to the Attiny85 through a USBTinyISP programmer, found here. Unfortunately, it isn't working. Following this tutorial for connecting the board and ...