Replies: 13 comments 3 replies
-
For ICSP, all that is required is the 5V. Is it the lighting, or is there a chunk missing from your attiny841?! :) |
Beta Was this translation helpful? Give feedback.
-
Ooof, I think I got D1 soldered in the wrong way around. Those little bastards are really hard to read properly. Do you have a PDF of the v5 schematics, so I can check what I could possibly have destroyed with that?
Just the lighting, due to some flux residues 😂 |
Beta Was this translation helpful? Give feedback.
-
Which programmer are you using? At least you're on linux.
|
Beta Was this translation helpful? Give feedback.
-
Note for V5, if you are using an IDC connector and the typical AVR programmers, the notch on |
Beta Was this translation helpful? Give feedback.
-
I'm using an usbasp variant: https://www.fischl.de/usbasp/ I've used in the past for Arduinos and ATtinys and it worked fine so far. Ok, so if I have D1 reversed (which I checked with a multimeter) then it connects 5V to 12V, which feeds backwards into the regulator. Probably nothing that should destory the regulator, but I'll double-check after fixing it.
Thanks for the hint. I used jumper wires for now, since my programmer has a 10-pin connector 🙂 I think the reversed diode should be the reason, dropping the supply voltage below the 5V required to run the ATtiny. I'll fix this another day. Thanks already for your quick help! |
Beta Was this translation helpful? Give feedback.
-
Great, let me know how it goes! You can do all the programming, and you should hear the startup beeps with merely the 5v/programmer connected. No need to connect the desk to hear the beeps. Once you hit that point you should be good to switch over. |
Beta Was this translation helpful? Give feedback.
-
Ah, very helpful to know! Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hm, I fixed the diode, but as soon as I connect the 5V input to the ICSP header, it drops to 4V again. Do you see potential for a component to get destroyed by the reversed D1? I'm a bit stuck with debugging. The diodes are still fine, according to my multimeter. I guess as a next step I'd probably desolder U2 to see if the problem still happens that way. |
Beta Was this translation helpful? Give feedback.
-
Do you have another attiny841? |
Beta Was this translation helpful? Give feedback.
-
I finally got around to debugging this. I connected the PCB to the bench PSU and hooked up a multimeter. It drew 22 mA and kept the voltage steady at 5V. Then I connected the UsbASP programmer again, and voltage dropped back to 4V. I think the issue is that either the programmer is broken, or that it cannot deliver 22 mA. But that would be weird (I think the 5V output comes straight from USB), so it's probably just broken. I'll order a new programmer and will let you know how that goes! |
Beta Was this translation helpful? Give feedback.
-
Huh, I'm beginning to doubt my sanity 🙈 I took a completely new ATTINY841-SSUR and soldered it to a SOIC-14 breakout. I then connected the pins from my USBtinyISP board to the breakout:
I then ran @gcormier what avrdude version do you use? I'm on 6.3-20171130. (The version is printed with |
Beta Was this translation helpful? Give feedback.
-
No problem! If I had a dollar for every hour I chased my own tail with
avrdude I'd be rich!
I ran into the same issue with a pololu programmer and the initial
programming speed. Glad to hear you got it sorted out!
…On Sat., Mar. 20, 2021, 8:17 p.m. Danilo Bargen, ***@***.***> wrote:
I did another try with Arduino IDE + ATTinyCore, and that seemed to do the
tricky.
I'm starting to wondering whether the "error message" was just bad UX when
not passing in a hex file to be flashed 😕 Maybe it's also a bug in
avrdude, I'm not sure. Setting the fuses doesn't work either with avrdude.
Anyways, it seems that flashing works with Arduino IDE + ATTinyCore, so I
guess I'll stick with that for now (or maybe PlatformIO). Sorry for bugging
you with these issues 🙂 But I was a bit confused since I've never had an
issue with avrdude in the past when working with the ATtiny13a.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#49 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAAC53EFA3VXKQQ4L7FCK3TEU3IJANCNFSM4Y2JFBFA>
.
|
Beta Was this translation helpful? Give feedback.
-
I finished building a v5 PCB 🙂🎉
Unfortunately flashing the ATtiny doesn't seem to work:
I used an USBasp programmer (with 5V output) and the current SVN version of avrdude (because the latest release doesn't support the t841) to flash the megadesk PCB. The PCB was only connected to the programmer, not to the desk.
I measured the voltage across the 5V and GND pins on the programming header, and it shows 4V. Without the megadesk PCB connected, the voltage provided by USBasp is 5V. Could be some kind of short, but the components don't get warm...
Unfortunately the schematics in KiCad look all garbled to me, I probably have the wrong symbols? (Incredible, that in 2021 this still doesn't work properly.) Should the 5V power supply from the PCB suffice, or is the 24V power input from the table required as well, for in-circuit programming?
Beta Was this translation helpful? Give feedback.
All reactions