Author Topic: USBAsp: programming ATMEL 328P  (Read 11665 times)

0 Members and 1 Guest are viewing this topic.

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #50 on: May 30, 2020, 09:58:56 am »
This has become a strange sort of challenge  :) I bought this tester on an impulse buy to test some electrolytic capacitors, and already it has taught me so much!!
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #51 on: May 30, 2020, 10:15:12 am »
Can you tell me how I should check this out?
Find the clone convenient Vcc and GND points on the board for measuring + 5V voltage. It will be correct if you can attach the clamps of the multimeter to these points so as not to hold them with your hands. You must make sure that when you click the Search button in the SinaProg program, there will be + 5V at the Vcc point.
Once again, I warn you that you do all the actions at your own peril and risk!
« Last Edit: May 30, 2020, 10:17:23 am by indman »
 

Offline Syntax Error

  • Frequent Contributor
  • **
  • Posts: 584
  • Country: gb
Re: USBAsp: programming ATMEL 328P
« Reply #52 on: May 30, 2020, 11:01:02 am »
Jumper JP3 and not JP1 are responsible for the connection
Yep, JP3. The original USBAsp circuit I have shows JP1 for slow SCK, go figure? (Because I was using Thomas Fischl's original reference design. Somewhere those jumpers got swapped)

Use this Github commit as the reference source: https://github.com/stefanbeller/USBasp/tree/master/circuit

FYI This about setting the jumpers:
J1 Power target - Supply target with 5V (USB voltage). Be careful with this option, the circuit isn't protected against short circuit!
J2 Jumper for firmware upgrade (not self-upgradable) - Set this jumper for flashing the ATMega(4)8 of USBasp with another working  programmer.
J3 SCK option - If the target clock is lower than 1.5 MHz, you have to set this jumper. Then SCK is scaled down from 375 kHz to about 8 kHz.
« Last Edit: May 30, 2020, 11:24:41 am by Syntax Error »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8134
  • Country: de
  • A qualified hobbyist ;)
Re: USBAsp: programming ATMEL 328P
« Reply #53 on: May 30, 2020, 11:23:49 am »
Welcome to the world of cheap clones! >:D Manufacturers don't even get the reference designators right and might do also other silly things.
 
The following users thanked this post: de_light

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #54 on: May 30, 2020, 11:55:01 am »
I'm really sorry, but I don't understand what you are saying. Would you be able to rephrase?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8134
  • Country: de
  • A qualified hobbyist ;)
Re: USBAsp: programming ATMEL 328P
« Reply #55 on: May 30, 2020, 01:11:21 pm »
He wants you to verify that the tester gets 5V from the USBasp before clicking the "Search" button in SinaProg?
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #56 on: May 30, 2020, 01:54:26 pm »
 before and after clicking the "Search" button in SinaProg! Power may be low, so the target is not responding.
« Last Edit: May 30, 2020, 01:56:57 pm by indman »
 

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #57 on: June 23, 2020, 09:50:48 am »
Finally, I have managed to get a working, half-decent multimeter. I have checked between VCC on pin 18 on the ATMEL and ground pin 21. I get 3.94V. I have a mini-USB power meter that I plugged the USBAsp into and this showed that it was drawing 5.04V from the USB port, but only 3.94V going to the chip?
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #58 on: June 24, 2020, 09:45:23 am »
de_light, is your BSIdeESR02 fully functional at the moment? Can you measure with a multimeter the current that a clone consumes from a + 9V battery?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8134
  • Country: de
  • A qualified hobbyist ;)
Re: USBAsp: programming ATMEL 328P
« Reply #59 on: June 24, 2020, 09:55:07 am »
Finally, I have managed to get a working, half-decent multimeter. I have checked between VCC on pin 18 on the ATMEL and ground pin 21. I get 3.94V. I have a mini-USB power meter that I plugged the USBAsp into and this showed that it was drawing 5.04V from the USB port, but only 3.94V going to the chip?

Is the USBasp jumpered to provide 5V to the tester? Is the 5V output of the USBasp directly connected to the USB socket?
 

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #60 on: June 24, 2020, 10:29:07 am »
Yes, fully functional. Works fine to test capacitors, resistors etc.

5V bang on with a 9V battery.
0.782V with screen off but still connected (pins 18 and 21)

Quote
Is the USBasp jumpered to provide 5V to the tester? Is the 5V output of the USBasp directly connected to the USB socket?

Yes to both.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #61 on: June 24, 2020, 11:14:27 am »
Yes, fully functional. Works fine to test capacitors, resistors etc.
5V bang on with a 9V battery.
0.782V with screen off but still connected (pins 18 and 21)
Current 0.782V??? Current is measured in amperes, milliamperes
I'm interested in what current the clone consumes from power?
« Last Edit: June 24, 2020, 11:16:01 am by indman »
 

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #62 on: June 24, 2020, 11:53:26 am »
Apologies. I read wrongly. I'll get back to you on that. What would a normal current you would expect to find be?
« Last Edit: June 24, 2020, 11:58:55 am by de_light »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #63 on: June 24, 2020, 12:28:12 pm »
No more than 20mA (milliamps).
« Last Edit: June 24, 2020, 12:34:22 pm by indman »
 

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #64 on: June 25, 2020, 07:50:55 am »
Current is 11.14mA when turned on.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #65 on: June 25, 2020, 12:50:15 pm »
OK!
Now measure the Vcc voltage on the 2nd pin of the USBASP connector without connecting it to the BSIde board
 

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #66 on: June 25, 2020, 08:50:22 pm »
5.02V
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #67 on: June 26, 2020, 07:03:38 am »
OK!
Disconnect the 9V battery for BSide!
Now connect only 2 pin Vcc and pin GND to the corresponding pins on BSide.
What voltage will be on pins 18 and 21?
« Last Edit: June 26, 2020, 07:16:39 am by indman »
 

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #68 on: June 26, 2020, 07:41:05 am »
5.01V!!


Hmmm......
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #69 on: June 26, 2020, 07:51:33 am »
I do not understand how you measured before 3.94V? Now connect all the USBASP pins to the BSide board and repeat the measurement on pin18-21
 

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #70 on: June 26, 2020, 08:11:00 am »
I'm getting 5V now. I don't understand. Device is fully connected, getting good Voltage, screen is on but still saying target not answering. Bizarre.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: by
Re: USBAsp: programming ATMEL 328P
« Reply #71 on: June 26, 2020, 08:48:13 am »
I have no more ideas! Leave alone until your BSide.
You need to make sure your USBASP is working.
Any processor, starting from ATMega8 and higher, is suitable for this. Or look for another programmer from friends, acquaintances.
 
The following users thanked this post: de_light

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #72 on: June 26, 2020, 09:00:55 am »
Thank you for all your time and patience! I appreciate it.
 

Offline de_lightTopic starter

  • Regular Contributor
  • *
  • Posts: 132
  • Country: au
Re: USBAsp: programming ATMEL 328P
« Reply #73 on: June 30, 2020, 10:37:15 am »
Well. What a journey. Finally, I've managed to fix this and implement all of indman's recommended modifications. I went from not even knowing what flux was and not owning a DMM to replacing SMD components and hand-soldering wire onto IC pins!

Granted, I've almost destroyed the plastic housing through many errors with the hot soldering iron and the hot air gun and the third port is barely usable, but it works!!! And I have 1.39m!!

It turns out the problem was with the eBay special USBAsp. I learnt how to use an Arduino as an ISP programmer with some online tutorials and hooked it up and it worked straight away.


Thanks to all who have contributed, esp indman and madires. Hopefully one day I can give something back to the project.

« Last Edit: June 30, 2020, 12:46:15 pm by de_light »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8134
  • Country: de
  • A qualified hobbyist ;)
Re: USBAsp: programming ATMEL 328P
« Reply #74 on: June 30, 2020, 11:07:52 am »
 :-+ Well done! And we've also learned that there are some dodgy USBasp clones.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf