Stack Exchange Network

Stack Exchange network consists of 175 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 [attiny85]

ATtiny85 is small, low-power 8-bit, 8-pin RISC microcontroller from Microchip.

0
votes
0answers
34 views

CAN BUS ON ATTINY85

I have some difficulty migrating the MCP_CAN_lib-master library to work with tinySPI the goal is to setup the ATtiny85 so that it can read all the can messages on my system currently there are three ...
0
votes
1answer
40 views

Serial Communication Between Android and Attiny85

I am planning to build a sensor module for smartphone using Attiny 85 as its microcontroller. The sensor module will have a USB type A and to connect to the smartphone, OTG is required. Serial ...
0
votes
1answer
69 views

Attiny85 crashes when I run a motor through an L293D

I'm trying to run a motor through an L293D turned on and off by an Attiny85. The Attiny85 has the micronucleus bootloader on it, which is why pin 3 is connected to a pull up resistor. On the Attiny ...
1
vote
0answers
40 views

IoT wireless solenoid circuit

I am a Newbie and I do not have a lot of expirience. The circuit has been put together from pieces I have found on the internet. My goal is to develop a reliable wireless solenoid circuit to water my ...
4
votes
2answers
2k views

I found an audio circuit and I built it just fine, but I find it a bit too quiet. How do I amplify the output so that it is a bit louder?

I want to try something audio related and found the following circuit from technoblogy I built it and loaded a sound clip. Everything works fine, but I found it a bit too quiet and I want to amplify ...
0
votes
0answers
32 views

How is it possible to program an ATTiny over USB without a USB to TTL chip?

I have been testing out my Digispark and the board has no USB to TTl converter chip and yet you can program it over USB. Is it possible to do this with an ATmega328p for example?
8
votes
2answers
2k views

Need help with a circuit diagram where the motor does not seem to have any connection to ground. Error with diagram? Or am i missing something?

I'm following a really simple electronics instructable found in this link: https://www.instructables.com/id/Vibrating-Timekeeper/. I've been studying the circuit provided but can't figure out why ...
4
votes
3answers
2k views

Does ATtiny RESET pin need a resistor?

I need to make sure that my ATtiny does not reset unexpectedly. To do that, I am planning on connecting the RESET pin directly to VCC. However, I have heard some places that you need a 10k resistor ...
0
votes
1answer
59 views

How do you add an onboard ISP for an ATTiny85?

I've taken a liking to building circuits around the ATTiny. Typically I add 6 headers and use an AVR programmer or an Arduino to program the ATTiny in circuit. I'm trying to figure out how move that ...
-1
votes
2answers
185 views

ATtiny85 can't be programmed [duplicate]

I've bought 2 ATtiny's from AliExpress and I can't program them. I've read some feedback and people say that they might be fake but then I saw some activity on IO pins. So I've made a small ...
0
votes
1answer
44 views

How do I maintain ICSP functionality?

I'm a novice hobbyist building a trivial circuit where an ATTiny 85 controls an RGB LED. In addition to the three PWM outputs, I have 2 inputs. The first input is a potentiometer I'm using to set ...
6
votes
2answers
171 views

LED as light sensor not properly working in circuit

I read some articles about using an LED as a light sensor. I chose an IR LED and checked the voltage levels produced in different light situations resulting in about 200-300mV in full artificial light ...
0
votes
3answers
198 views

How to switch PIR sensor on/off based on photocell result

I've built the following circuit based on an ATtiny85 for a night lamp. The circuit is powered by a 3.7v LiPo battery. I'd like to turn off the PIR sensors when the photocell detects light in order to ...
0
votes
2answers
156 views

How to measure output voltage of this Li-Ion battery circuit?

I've designed an AtTiny85 based Lithium-Ion battery protection/boost circuit that monitors the battery voltage and cuts the battery power to the external powered circuit when the battery dips below a ...
0
votes
1answer
55 views

Reasonable Li-Po Battery Protection Circuit?

I'm designing a circuit to monitor the voltage of a Li-Po battery (single cell 3.7v, 2500mAh, 25A) and switch off the battery when the voltage drops to a certain threshold. The Circuit will also ...
0
votes
1answer
135 views

Conflict of polarity?

With the following circuit, would the R2 resistor not change or affect the polarity in some negative way (no pun intended)? In the image below I added the red box as well as the red text in an effort ...
1
vote
1answer
74 views

Not able to program Attiny85-20PU

I have a small amount of Attiny85-20PU which I am trying to program with a stk500v1-type-programmer (for the sake of simplicity say an Arduino with ArduinoISP-Sketch). My first attempts with that ...
-1
votes
0answers
61 views

Can I program an ATtiny85 using AVR SPI headers with I2C peripherals attached

I am preparing a schematic that includes an ATtiny85 MCU and a few I2C peripherals. It also has a MOSFET attached to pin 6 that drives a motor. I plan to use an AVR header to program my device. I'm ...
2
votes
1answer
561 views

Data memory usage reported by AtmelStudio for ATtiny85

I am using AtmelStudio to program an ATtiny85, which has 512 bytes of SRAM data memory. My code includes a large lookup-table (array) which is 512 bytes: ...
1
vote
1answer
109 views

71 RBG LEDs, 3 transistors, and 1 ATTiny85

I am trying to design a circuit to control a total of 71 RGB LED's (wired basically in parallel for each color channel) using an ATTiny85 to control the on and offs for each color channel. I figure ...
0
votes
1answer
76 views

Speed of a mosfet triggered directly from the logic pin of an Attiny85?

I have a an N-Channel Mosfet soldered to an adapter board and connected to PB4 of an ATtiny85 via a solderless breadboard. The mosfet currently switches the ground leg of some other low power ...
0
votes
2answers
706 views

Is it possible to talk with Attiny85 via serial interface?

Alright, I know this question is pretty silly, but I have stumbled upon different posts saying opposing things. So to make a conclusion, does anyone knows for sure if it's possible to send data via ...
0
votes
0answers
243 views

How does PC recognizes Attiny85 as “serial device” through USB connection and assign it COM port?

I'm pretty sure my question is not well put so I will try to explain it little bit more. Let's say I have a Attiny85 without any firmware. What kind of firmware do I need to flash Attiny with, in ...
1
vote
1answer
65 views

Send a single pulse low/high pulse then stay high

I have a small OLED display that I'd like to drive with an ATtiny85 micro controller. The OLED is the 4 wire SPI type, with no CS. It has a Reset pin that is required to be pulsed low-high at power on ...
1
vote
1answer
337 views

How to recover locked ATTiny 85

I was following this tutorial: http://highlowtech.org/?p=1695 and by mistake I uploaded code with 8 MHz External clock settings. The tutorial says ...
0
votes
3answers
156 views

I2C Arbitration lost on ATtiny85

I'm new to I2C and am trying to get two ATtiny85 to talk to each other. I have Arduino IDE 1.8.0 I used this link (damellis) to install the ATtiny board in the IDE I use an Arduino nano to program ...
0
votes
3answers
225 views

What resistors do I need

Hello community My first post here. I am fairly new to electronics and I’m building my own pyrography power supply. I have done a couple things to accomplish this but have not yet been successful. I ...
1
vote
2answers
4k views

How to achieve low power consumption with ATTINY85

I am creating a project that uses an ATTINY85. Most of the time, the circuit should be off and consume as little power as possible. According to the data sheet, in power-down mode, the microcontroller ...
0
votes
2answers
139 views

What happens to 2 INPUT_PULLUP linked together?

I have an Arduino project (attiny85) with an input pin configured as INPUT_PULLUP. I've got an another Arduino a few meters far from the first one. Both input pins are connected together to a ...
1
vote
1answer
69 views

Consecutive PWM signals with different prescaler settings

My ATtiny85 circuit generates signals like this one on PB1 (OC0B) using fast PWM (preamble, 16 bit data, stop pulse): I have trouble with the leftmost longer pulse. At the moment i use simple ...
2
votes
2answers
2k views

ATtiny85 and high frequency PWM for driving a ferrite transformer

Some background: I have an ATtiny85 running at 8 MHz under the Arduino IDE. I have been gifted a large ferrite transformer and some MOSFETs & drivers to drive it. However I am lacking a ...
0
votes
2answers
774 views

Serial bi-directional (one-wire half-duplex) digispark device works however answers itselfs

I followed this guide to create an one wire bi-directional (debug) device for a Digispark (Attiny85): https://digistump.com/wiki/digispark/tutorials/debugging (see section Bi-directional Serial ...
0
votes
1answer
529 views

ATTiny85 Not Working at all

I am using Arduino to program my ATTiny85 like this. I am trying to make a simple blink example, here's the code: ...
3
votes
2answers
80 views

Unexpected bits when shifting out (ATtiny85)

I'm trying to spoof a 433 MHz remote and I have a sequence of 32 bytes that I want to repeatedly shift out to one of ATtiny85's pins. The signal then goes to a cheap Chinese-type 433 Mhz transmitter. ...
-2
votes
1answer
832 views

how to connect i2c peripherals to digispark Attiny85

I am new to micro controllers and I have problem with understanding and connecting I2C devices to Attiny85 digiSpark micro controller. According to this picture SDA and SCL are on the same pin and I ...
1
vote
0answers
209 views

Trouble getting attiny85 to drive nRF24l01+

I'm attempting to make an nRF24l01+ send out a simple identifying code when a button is pressed. I'm trying to keep the solution as small as possible, so I want to use the attiny85 to drive it. Her'...
0
votes
2answers
382 views

Open drain on Attiny85

I'm quite new at MCU programming (mechanical engineering background), but managed programming an Attiny85 to source an LED and switching modes (blinking/solid) by using a switch. I would now like to ...
0
votes
2answers
169 views

Attiny85 and Atmega328 for RC projects

I am designing modules for radio controlled aircraft. Most of the time I have to read a PWM pulse and produce a PWM pulse between 1000 - 2000 microseconds. When I use an Atmega328 (@16 MHz with ...
2
votes
4answers
512 views

Is the ATtiny85 actually used in any consumer electronics?

I was wondering if anyone here knows of any products that utilize the ATtiny85. It appears to me that it's solely used by makers/electronics enthusiasts. I'm asking because I think it would be ...
3
votes
3answers
2k views

AtTiny85 analog / digital pin configuration order in setup

Bug in compiler or what ever? Simplified circuitry there is 2 LEDs and 1 analog input. LED connected to pin PB1 lights very dim when output is high. It seems that output has been configured to high ...
-6
votes
2answers
373 views

Can I use Attiny insted of Arduino uno? [closed]

can anyone suggest me that, can i use a Attiny85 instead of Arduino uno board? and how it can be posible?
0
votes
3answers
129 views

Resistor in parallel to circuit is causing VREG to output higher voltage

I am building a circuit to convert a 300Hz PWM signal to a 30Hz PWM signal with the same duty cycle. It's a pretty simple circuit: I'm having a weird issue with the R7 resistor though. It's in ...
0
votes
0answers
71 views

Question on Simple Digispark ATTiny85 L

I am using the following simple program to blink 5 pairs of LEDs using my Digispark ATTiny85. The circuit is very simple, not even have the necessary resistors to limit current. I was just trying for ...
0
votes
1answer
707 views

AtTiny85 128khz clock and power consumption

I am wondering about the Tiny85 power consumption and methods. I cannot find answers for the following questions in the datasheet, maybe I will find it here.. The 128Khz internal watchdog clock ...
0
votes
1answer
360 views

ATtiny85 analog input constantly on max

I am currently getting into AVR programming and I want to read in two values from two potentiometers on the analog inputs PB3/ADC3 PB4/ADC2. I want to (just for now) light an two LEDs (PB1 and PB2) ...
0
votes
1answer
253 views

BJT not switching (off) fast enough?

I have an ATTiny85 with a PWM output (freq. aprox. 1kHz). Connected to this pwm output pin is a NPN general purpose BJT (2N2222) with base resistor of 1k. A LED is in series with this transistor (...
1
vote
1answer
2k views

How to disable reset pin on Attiny

I am using an Arduino as ISP to program an Attiny85. Is there any way to disable the reset pin such that it is not functional. I think this is a fuse setting but I am not sure.
1
vote
1answer
171 views

ATTINY85 variants

I am using an Arduino as ISP to program Attiny chips at 8Mhz (internal). I am using the Arduino IDE as I find this easier. Some of the chips I was programming however appeared to be working at 1Mhz ...
2
votes
2answers
796 views

Missed Interrupt Problem with Attiny85

I'm trying to use an Attiny85 (digispark) to wake another controller from sleep (an ESP8266). The Attiny is connected to an IR receiver which has an active low output. Basically I have connected an ...
2
votes
3answers
807 views

attiny84 input resistance

Looking at the datasheet for the attiny family, you find something called 'reference input resistance'. (Datasheet: http://www.atmel.com/images/Atmel-7669-ATtiny25-45-85-Appendix-B-Automotive-...