Program ATtiny85 directly via USB

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2024

ความคิดเห็น • 34

  • @stevebarrow3042
    @stevebarrow3042 10 หลายเดือนก่อน +1

    Thanks for posting this easy to follow tutorial. I am going to try this and use a chip mount to program my attiny's with

  • @vitporiz
    @vitporiz 5 หลายเดือนก่อน

    Hey thanks for the tutorial, it helped me a lot! However, even though it works, i believe there is a mistake in the schematic. There should be a capacitor between DTR and the RESET pin of the ATTiny (1), thats correct. But then RESET pin should be pulled high. The way you have it, the DTR pin is pulled high and RESET pin is floating, which is wrong.
    If you check the schematic of arduino UNO for example you see that its designed the way i described. I believe your version works only because of imperfections of the capacitor.
    The rest of the video is amazing tho and thank you for the tutorial!

  • @lorivalmagalhaes5262
    @lorivalmagalhaes5262 ปีที่แล้ว

    It's just that the pull up resistor appears on the schematic (for the FTDI), but on the Prontoboard, the pull up resistor is on the attiny.
    Thanks!

  • @ZephodBeeblebrox
    @ZephodBeeblebrox 7 หลายเดือนก่อน

    Interesting. I have a project that this might be good for. How much power does the ATTiny85 use? I have one on a board and it seems to use 8-10ma. I bet just the chip uses less.

  • @atihrot755
    @atihrot755 ปีที่แล้ว

    Cheers. I uploaded Botlander, but already with the same programmer, and according to the procedures, it won't upload the program for me. Can you help me why? Well thank you.

  • @przemekbundy
    @przemekbundy 2 หลายเดือนก่อน

    If my FTDI doesn't have a reset pin, only RX and TX, can I trigger the reset in Tiny85 myself, like I do when programming Arduino Pro Mini? Regards.

  • @TomLeg
    @TomLeg ปีที่แล้ว

    Brilliant ... should be great for creating IO peripheral processors

  • @przemekbundy
    @przemekbundy 2 หลายเดือนก่อน

    while compiling it has this error:
    cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  หลายเดือนก่อน +1

      This may have to do with your Arduino IDE version. You can check online, or you can do a "fresh install" download the portable Arduino IDE (link : th-cam.com/video/_rBOEHqnFZA/w-d-xo.html) set it up for Attiny 85 separately, this way you will not affect your current Arduino IDE installation. Good luck! 🙂

  • @ndavid42
    @ndavid42 8 หลายเดือนก่อน

    Everything work fine until the last uploading (blink test to attiny85), when I got this orange error message: "cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin." (Arduino IDE 2.3.0, Win10 x64)

    • @ndavid42
      @ndavid42 8 หลายเดือนก่อน

      Ok, I solved it, I needed the older, 1.8.19 version Arduino IDE, it works perfectly!

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  8 หลายเดือนก่อน

      @@ndavid42 yes you can use the protable version : th-cam.com/video/_rBOEHqnFZA/w-d-xo.html

  • @QCAndre
    @QCAndre ปีที่แล้ว

    Great and simple

  • @louisferreira9055
    @louisferreira9055 8 หลายเดือนก่อน

    Great tutorial! I tried this on Arduino IDE 2.3.x and it doesn't work :( But it does work on version 1.8.x Would be great if you could get this working with IDE 2.0 and show us how to do it!

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  7 หลายเดือนก่อน

      Thank you louisferreira9055, honestly I gave up on Arduino IDE2.x even though I liked the GUI and features. For these old Attiny's I suggest to install a portable Arduino IDE in a local folder so you can keep your IDE2.3 running for your other projects and boards. Instruction to make portable IDE: th-cam.com/video/_rBOEHqnFZA/w-d-xo.html

    • @louisferreira9055
      @louisferreira9055 7 หลายเดือนก่อน

      I actually have 1.8 and 2.3 installed side by side with no problems (yet)

  • @Lanco.valdivia
    @Lanco.valdivia 10 หลายเดือนก่อน

    Y es muy necesario, cargar bootloader a un attiny85 siempre he tenido la duda. ya que cuenta con tan poca memoria. Algun ejemplo de oled con attiny85, gracias

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  10 หลายเดือนก่อน +1

      For Attiny 85 OLED you need 2 libraries: "Tiny4kOLED library" by Stephen Denne.
      "TinyWireM" library for the I2C.
      Optional: "TinyOLED-Fonts" library
      Arduino IDE, tools, manage libraries, search "Tiny4kOLED " and "TinyWireM" and install them and try the examples. 🙂

  • @marckerger
    @marckerger 8 หลายเดือนก่อน

    does this also work for attiny84 ?

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  8 หลายเดือนก่อน

      I do not think so maybe for the Attiny45 which is similare to Attiny85 but with less mamory.
      For the Attiny84 you can use ATTinyCore github.com/SpenceKonde/ATTinyCore (you can program it as I describe in this video with the "Arduino as ISP")
      and then add a software serial port for the communication (not programming) as in this video: th-cam.com/video/1xwWpz2V__4/w-d-xo.html

  • @lorivalmagalhaes5262
    @lorivalmagalhaes5262 ปีที่แล้ว

    resistor 10k vai no pin 1 attiny and + vcc? (pullup 1 reset high level)

  • @ivolol
    @ivolol ปีที่แล้ว

    How is it directly if it is over a serial port?

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  ปีที่แล้ว

      If you do not want to use an FTDI you can check this video.
      th-cam.com/video/XwEZvaGyKDE/w-d-xo.html
      This one uses the Micronucleus Core from Dr Azzy.

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  ปีที่แล้ว

      However the bit-bang USB communication is less reliable than a custom FTDI chip. Also that bootloader will use ~2 k of your flash

  • @sarathkumar-gq8be
    @sarathkumar-gq8be ปีที่แล้ว

    doo you know how to attiny85 analog read

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  ปีที่แล้ว

      With the circuit from this video you can use the command "analogRead(feedbackPin)"
      Then before Setup() you define "int feedbackPin = A1 or A2 or A3 to select which ADC you pick (A1=pin7, A2=pin3, A3=pin2)

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  ปีที่แล้ว

      //Analogread test
      //Using Snapduino bootloader
      //connect a analog voltage of 0-5V to pin 7 of the IC
      int feedbackPin = A1; // works with IC pin 7 (A2=pin3, A3=pin2 of the IC)
      #include
      SoftwareSerial mySerial(1,0); // RX, TX
      void setup() {
      mySerial.begin(9600);
      pinMode(feedbackPin,INPUT);
      }
      void loop() {
      mySerial.print("the value is ");
      delay(500);
      int v1 = analogRead(feedbackPin);
      mySerial.println(v1);
      }

  • @henkoegema6390
    @henkoegema6390 ปีที่แล้ว

    👍

  • @atihrot755
    @atihrot755 ปีที่แล้ว

    Cheers. I uploaded Botlander, but already with the same programmer, and according to the procedures, it won't upload the program for me. Can you help me why? Well thank you.

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  ปีที่แล้ว

      Is the FTDI connected to USB (check com-port in Arduino IDE), do you get a error message at the bottom (in orange letters)?