Questions tagged [attiny85]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
54 views

Attiny85 for wireless communication

I'm a very beginner in electronics. I'm trying to make a system which transmits a tank chemical level to a distant system. Remote system is an Arduino. For the tank unit I have 4 float switches. ...
0
votes
1answer
68 views

What is a proper way to send information from an HC-05 (Bluetooth module) to a phone?

I have 12 simple touch sensors and each of them produces an analog output. I want to send that information to a phone (or some other device). To do that I would need to use the HC-05 Bluetooth module. ...
4
votes
0answers
79 views

ATTiny85 clock speed problem

Using an ATTiny85 and an Arduino loader I created a simple device for turning on an exhaust fan based on a light sensor. The ATTiny85 turns on the fan after activating a warning light and sounding an ...
1
vote
1answer
59 views

PWM to analog voltage conversion for communication between two microcontrollers

I want to use this schematic for sending PWM signals from an STM32F0 Arm microcontroller to an ATtiny85. I want to convert the PWM signal to a proper analog voltage, so that the ATtiny analogRead() ...
0
votes
0answers
60 views

What is the proper way to reset attiny85?

I have 3 attiny85 on my pcb. And I want to have software controlled reset for them. A separate STM32F0 microcontroller is responsible for the reset. I have two states from the STM32F0 to pull up and ...
0
votes
0answers
28 views

Is this circuit ok for MCP9700 temp sensor?

I am trying to use multiple MCP9700 temperature sensors and probe certain power IC heatsinks for sensing the temperature through an attiny85. I have two parts in the overall schematic. For each ...
0
votes
1answer
58 views

Questions regarding voltage divider for micro controller sensing

I am beginner trying to develop two voltage sensors for attiny85 microcontroller. I have two separate voltage levels that I want to sense using the attiny. One of the voltage supply is 0V-5.5V and is ...
2
votes
1answer
191 views

Controlling Mosfet with ATTiny85 and IR Reflective Sensor

My plan is to start a motor, then stop the motor when the gear teeth gets to 15 (out of 16) I will be able to tell at what position the gear is by placing an IR reflective sensor under the teeth. The ...
0
votes
1answer
58 views

Does Attiny13 pull a lot more current in sleep mode than Attiny85 or did I do something wrong?

First off here is the code I have tested on both Attiny13A and Attiny85V: ...
0
votes
0answers
66 views

digispark + pcf8563 RTC interrupt not working

I have PCF8563 WAVESHARE board connected to DIGISPARK via I2C. Here is the code: ...
0
votes
0answers
339 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
62 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
163 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
52 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
42 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 ...
5
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
68 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
320 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
67 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
206 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
325 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
224 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
88 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
216 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
103 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 ...
2
votes
1answer
1k 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
130 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
83 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
1k 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 ...
1
vote
1answer
87 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
557 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
4answers
219 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
230 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 ...
2
votes
2answers
7k 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
175 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
70 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
3k 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
936 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
620 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
82 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
999 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
217 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
502 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
179 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
648 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 ...
2
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 ...
-5
votes
2answers
459 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
165 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 ...