Skip to main content

Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
1 vote
3 answers
68 views

Confusing Pinouts on MH-ET ATTiny88

I am a little bewildered about the analog pins on the Arduino ATTiny88. First of all, am I correct in thinking the functions analogRead() and analogWrite() can use either the string A0 - A7 or a ...
LesRhorer's user avatar
1 vote
2 answers
152 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 ...
mfusco's user avatar
  • 11
1 vote
1 answer
78 views

Increase in power consumption after brown-out detection (BOD)

I'm working on a low-power energy harvesting project, where I'm considering using an ATtiny85 to perform some minor tasks. The ATtiny is put in Power Down mode most of the time and does not consume ...
hmf's user avatar
  • 11
1 vote
0 answers
86 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 ...
Sudras Elagor's user avatar
2 votes
1 answer
276 views

433MHz RF run away TX burst with ATTiny85 IC

I have recently created a sketch for an ATTiny85. My project consists of: 1x ATTiny85 IC only 1x 433MHz RF module => using data pin 2 2x input digital pins => using pin 3 and pin 4 Running at ...
Jonas's user avatar
  • 143
0 votes
1 answer
45 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.
manish.mandal's user avatar
1 vote
1 answer
167 views

Microcontroller freezes when triggering the gate of an N-channel MOSFET

Disclaimer: I have asked questions about this project before but this is yet another issue I'm facing. What I really want to do: Build a battery powered device with 6 colored buttons. When you press ...
boop's user avatar
  • 191
0 votes
2 answers
284 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 (...
boop's user avatar
  • 191
0 votes
1 answer
115 views

problem conversion value

I have two functions that return an int16_t but I need to convert the ints to char* is for an attiny13 It would be something like this const char* msg = "value1()"+','+"value2()"+',...
jota mauel's user avatar
0 votes
1 answer
453 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 ...
Leslie Rhorer's user avatar
1 vote
0 answers
73 views

Attiny84 with external eeprom-write and read beyond 255

Just starting with external EEPROM and ATTiny's. I am successfully writing and reading to the 24LC64 chip using the following code with TinyWireM (thanks to other help on the forums). However, I ...
VinnyP's user avatar
  • 11
1 vote
0 answers
63 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 ...
benjamin nikkel's user avatar
2 votes
1 answer
439 views

Sudden Error: File does not exist [closed]

I am suddenly getting an error every time I try to compile code in the IDE, even though every one of the sketches previously compiled just fine: Arduino: 1.8.13 (Windows 7), Board: "MH-ET LIVE ...
Leslie Rhorer's user avatar
2 votes
0 answers
100 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 ...
Leslie Rhorer's user avatar
0 votes
1 answer
74 views

ATTiny88 missing pulses - maybe

I have been given to understand the ATTiny88 is very similar to the Arduino Uno / ATMega328 MCU. There does not seem to be a tag for the ATTiny88, so that is why I chose the tags I did. I do not ...
Leslie Rhorer's user avatar
-3 votes
1 answer
166 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 (...
electro_nooobbbb's user avatar
-3 votes
1 answer
197 views

Reading constant battery voltage and using the obtained value in sensor formula

there i am working on a project in which my system is connected to 3.7v~4.2V lithium battery, I have to read constant battery voltage irrespective of the current battery voltage and to do that I am ...
electro_nooobbbb's user avatar
2 votes
1 answer
511 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 ...
electro_nooobbbb's user avatar
1 vote
1 answer
378 views

adc arduino using reference voltage to read stable/constant lithium battery voltage

I want to read my lithium battery voltage. I WANT TO CREATE A FUNCTION TO READ MY 3.7~4.2V,1200mAH BATTERY VOLTAGE THROUGH A MICROCONTROLLER (ARDUINO OR ATTINY44). THEN I WANT TO CALL THE CREATED ...
electro_nooobbbb's user avatar
0 votes
1 answer
567 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 ...
Anil Maharjan's user avatar
0 votes
1 answer
213 views

Alternate full speed usb library for ATTINY85?

I'm currently working on a project using the ATTINY85 for USB communication. After some research, it turns out that the V-USB library only supports usb 1.1, which only supports a 125hz polling rate. I ...
Victor's user avatar
  • 3
1 vote
1 answer
515 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-...
aceschwartz's user avatar
0 votes
2 answers
216 views

slower clock frequency than expected on attiny202

I am programming an attiny202 which as per datasheet can run up to 20Mhz, but after compiling/uploading this simple code to the attiny202 and watch the PA2 pin on the oscilloscope, I see that the pin ...
Joe Cabezas's user avatar
2 votes
1 answer
138 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 ...
fmarquet's user avatar
0 votes
0 answers
482 views

How to program Attiny12 with Arduino?

I bought a bunch of Attiny12's from Digikey without checking if I can even program them with an Arduino. I've looked around a bunch, and I've only ever found ways to program Attiny13 and Attiny10. ...
explodingfilms101's user avatar
0 votes
1 answer
118 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 <...
Nick Bolton's user avatar
1 vote
2 answers
60 views

Can we use more than one timer when programming an Atmega32/16?

I tried to do a simple program using the ATmega16 microcontroller, the program is to toggle two LEDs the first one by using timer0 interrupt and the other using timer2 interrupt.
Ebraheem Ali Abd Al-Maksod's user avatar
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 ...
Earthbound Ruben's user avatar
-1 votes
1 answer
213 views

atTiny85 5V and servo usage

I have an AtTiny85 that I would like to move a servo on I/O "4" for this project. I can't seem to get it to work, no matter what I do. I had tons of issues getting it to program, but I've ...
Perplexing Pies's user avatar
1 vote
1 answer
98 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, ...
JoeBro391's user avatar
1 vote
1 answer
935 views

'GIMSK' was not declared in this scope

I'm programming an ATTiny 85 using the Arduino IDE and an Arduino Nano as "Arduino as ISP" to program the ATTiny. I succeeded a week ago and now I want to program a second chip but get the '...
Transistor's user avatar
2 votes
2 answers
428 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 ...
Boyfinn's user avatar
  • 115
1 vote
0 answers
70 views

ATTINY13A, Servo only makes half a sweep

I have been trying to get a servo to sweep using an attiny13A. And i managed to get the servo to (kindoff) work by the help of a previous thread. But i'm now getting an issue. The servo only goes to ...
Earthbound Ruben's user avatar
0 votes
1 answer
197 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 ...
EdHayes3's user avatar
  • 160
-1 votes
1 answer
257 views

SMBus on ATTiny204 [closed]

So I want to connect multiple LED Panels with dynamic addressing to a Master Controller. Seems like SMBus should be able to do that, however I don't find any Library for the Arduino framework. Does ...
Christopher's user avatar
2 votes
1 answer
80 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 ...
Antonín Gazda's user avatar
1 vote
2 answers
536 views

Digispark Rev.3 Kickstarter ATTiny85 using all 6 pins

i have some trouble to use i2c and the other pins at the same time. im tring to control the attiny over i2c with a arduino and the attiny should control a 28byj-48 stepmotor. i started to setup the ...
Kim's user avatar
  • 11
2 votes
0 answers
552 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 ...
user76915's user avatar
1 vote
0 answers
214 views

How can I control 2 servos separately using a joystick on an ATTiny85?

Prelude I haven't done a lot of work in programming chips. The ATTiny85 is the first chip I've programmed, and I have the hang of the basics I think, but I don't have an in-depth understanding of it's ...
Devin Carpenter's user avatar
2 votes
1 answer
1k views

Driving a servo with an ATTiny13A

So, I managed to fry my cheap servo/ESC (electronic speed controller) and decided to make my own using an ATTiny13A on some perfboard. But, I have run into some issues getting the servo to respond. I'...
Rearthbound's user avatar
0 votes
1 answer
95 views

Is it safe to connect VCC to a data pin on Attiny chips?

I'm trying to make a compact prototype with Attiny2313A, and want to connect VCC to pin 18 with a push button as in the picture. Is it safe? Or do I need a resistor there?
user avatar
1 vote
2 answers
500 views

ATTiny85 won't boot if PIN2 is not pulled high

I had some problem setting up a working ATTiny85 outside of its development board.Connection on my breadboard: pulled high (10K R) -- 1 PIN 8 -- VCC (+5V) trouble here!! -- 2 PIN 7 -- ...
Zeno Dalla Valle's user avatar
0 votes
1 answer
1k views

ATTiny85 USB Troubleshooting. Device is not recognized when programmer asks to plug in device

I have bought this cheap AVR Programmer Board and I thougth that I would be OK just plugging it into my USB port. Then after I did that nothing happened so I passed last 4 hours trying to understand ...
Zeno Dalla Valle's user avatar
1 vote
0 answers
403 views

send command to Slave and receive response over I2c

so I have an Arduino mega as the master and an attiny84 as the slave the master can send a command S to the slave and the slave should respond with TRUE so here is my code: master: bool GetOnline(){ ...
Dexter Grif's user avatar
-1 votes
1 answer
641 views

Fail uploading any sketch to ATtiny85 USB

I have a Digistump's ATtiny85 (probably a clone ), which fails uploading any sketch, saying: Warning: device with unknown new version of Micronucleus detected. This tool doesn't know how to upload to ...
guyd's user avatar
  • 1,043
0 votes
1 answer
48 views

Chips & High voltage: Connected in Series?

I have 3 micro-controllers that will be connected to a battery, and I need to provide each of them between 3 and 5 volts maximum. I have 3V batteries but they do not seem to provide enough power, ...
B7th's user avatar
  • 167
0 votes
1 answer
326 views

Attiny : Is it possible to analog read on PB1?

I'm trying to read an analog input on the Attiny85 physical pin 6 (PB1, PWM), but analogRead(PB1) always returns 1023. Is it even possible to use analogRead on this pin? I'm fairly new to this so ...
Quentin HUET's user avatar
0 votes
2 answers
261 views

How to use a push button & transistor as a kickstarter for power supply?

My goal is to save energy, and I intend to do so by powering a chip with itself, and cut power whenever unnecessary. The best image I can have is of a startled monkey who jumps on the branch, screams ...
B7th's user avatar
  • 167
0 votes
1 answer
174 views

Voltage from batteries in series operating on 3 ATTiny, 3 Buttons, and 3 Piezo buzzers

I intend to power three ATTiny45 chips (each requiring around 3.5V) in parallel with 2 pill batteries (namely Maxwell's CR2032) in series (which would come to around 6V). They will each play a sound ...
B7th's user avatar
  • 167
3 votes
1 answer
823 views

ATtiny85-DHT11-TM1637

I have tried many combinations and I can get the Attiny85 to display on the TM1637 just fine, but I cannot get ant readings from the DTH11, tried different pins, libraries. I upload code via UNO as ...
Jim Rodemeyer's user avatar

1
2 3 4 5
7