# Issues with programming the Attiny85

**URL:** <https://forum.arduino.cc/t/issues-with-programming-the-attiny85/1198389>\
**Category:** 3rd Party Boards\
**Created:** [December 8, 2023, 9:29pm UTC](https://forum.arduino.cc/t/issues-with-programming-the-attiny85/1198389 "2023-12-08T21:29:34Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![GolamMostafa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/golammostafa/32/239011_2.png) [@GolamMostafa](https://forum.arduino.cc/u/GolamMostafa)\
**Post date:** [December 10, 2023, 6:01am UTC](https://forum.arduino.cc/t/issues-with-programming-the-attiny85/1198389/21 "2023-12-10T06:01:31Z")

</div>

I would suggest to develop your project using Digispark ATtiny85 Dev Board (Fig-1) with Vcc = 5V and using only one thermistor sensor at a time. After that you swicth over to 3.6V supply and tune the parameters.  
 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/6/0/a/60a1281b1f6978b6d5db686127d34526620b7df7.png)  
Figure-1:

---

<div class="post-metadata">

**Author:** ![wvmarle](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wvmarle/32/1013044_2.png) [@wvmarle](https://forum.arduino.cc/u/wvmarle)\
**Post date:** [December 10, 2023, 6:41pm UTC](https://forum.arduino.cc/t/issues-with-programming-the-attiny85/1198389/22 "2023-12-10T18:41:13Z")

</div>

> [@mjgates](#):
>
> R4 represents the internal resistance of the vibration motor in use. it requires 60 mA (80 mA max) and a max operating voltage of 3.6 volts.

R4 should be 60 Ohm for a 60 mA current, but likely if you connect a multimeter to that motor you get a much lower resistance, could be as low as 10-20 Ohm.

Why is D2 there? All it does is drop 0.7V which makes your motor spin slower. If your motor is rated 3V instead of 3.6V, better use PWM to limit the current by ratio (so about 83% duty cycle, `analogWrite(pin, 213)`) or whatever is a good speed for you.

R2 is far too low a value, trying to draw about 70 mA from your MCU pin, which it can not deliver, hence the steep voltage drop. Make that 330-470 Ohm, that should still be enough to drive that transistor well into saturation, while limiting the current from the pin sufficiently.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [June 7, 2024, 6:41pm UTC](https://forum.arduino.cc/t/issues-with-programming-the-attiny85/1198389/23 "2024-06-07T18:41:23Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.arduino.cc/t/issues-with-programming-the-attiny85/1198389.md?page=1)
