6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue Jul 02, 2024 11:35 pm

All times are UTC




Post new topic Reply to topic  [ 209 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14  Next
Author Message
PostPosted: Thu Dec 13, 2018 7:48 pm 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
I always planned to include it in some form in the next iteration, and I might just drop it into an ATF1508(along with the glue), to try and circumvent the macrocell limitations that Mr. Rictor has been having. It is brute-force, but I think I'll need the extra macrocells anyway.


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 13, 2018 8:02 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8462
Location: Southern California
Dr Jefyll wrote:
DerTrueForce wrote:
I think I killed my 65SPI when I accidentally reversed the power supply. It gets burning hot in very short order now.
NOT a good sign! And unfortunately it'll be more difficult to get a replacement, compared with other chips you're using (which are standard, off-the-shelf parts). :(

That CPLD did run quite hot normally, which is undoubtedly a reason it got discontinued. I used an IC in a 40-pin DIP 28 years ago that required a heat sink on it in normal operation. I bought a half-dozen 65SPI's and never got around to using them, so if you did damage it and Daryl doesn't have any more, you're not out of luck. He's re-doing the design now with a newer IC, but I suspect it won't be a drop-in replacement, especially if you want 5V.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 13, 2018 8:48 pm 
Offline
User avatar

Joined: Mon Apr 23, 2012 12:28 am
Posts: 760
Location: Huntsville, AL
The famous Bob Pease once described a circuit for reverse polarity protection using an N-channel Enhancement Mode MOSFET. The circuit was something like that one I sketched in the attached figure. Search EDN Design Ideas/Electronic Design for the article.

Attachment:
File comment: Bob Pease MOSFET-based Reverse Polarity Circuit
IMG_0419.jpg
IMG_0419.jpg [ 56.92 KiB | Viewed 1924 times ]

_________________
Michael A.


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 13, 2018 8:51 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8462
Location: Southern California
That's a great idea, although I might be inclined to use a P-channel MOSFET in the positive instead, because with everything in a system being ground-referenced, it would be too easy to have a connection somewhere else bypassing that N-channel one.

The world of electronics sure lost a valuable giant when he was killed in a car accident! I've kept many, many articles of his that I cut out from industry magazines.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 14, 2018 7:02 am 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
Initially, I had considered putting something in parallel more appealing than series, but now that I think of it, I can get hold of a servo connector, and put a diode in series with that. The supply I'm using puts out 5.44 volts, so I think I can get away with a series diode there. It also saves crowbarring the supply I'm using, since I have no idea what overcurrent protection it has, if any.
I'll put the diode on the next board revision; I do not want this happening again.
Speaking of which, I really need to start a checklist/to-do list for that.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 14, 2018 9:17 am 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
A reasonable strategy would be to use a polyfuse with a crowbar. Then you have your own OC protection and negligible voltage drop in service. The polyfuse will automatically reset itself when the power is removed and it's allowed to cool.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 14, 2018 10:03 am 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1438
Location: Scotland
Over the years, the Raspberry Pi has gone through a number of power supply protection iterations - however one thing there is that they're almost disposable, unlike our one-off and old chip designs here, so I feel we need to be a bit more careful.

On the Pi, wiring up the PSU is almost impossible as the power input is USB which is almost impossible to put in the wrong way. (although I've seen otherwise). People do power the Pi via the GPIO inputs though which is no different to our 6502 case here.

The initial (Pi) strategy has been a polyfuse and reverse biased schottky diode and today they still use a polyfuse (self-resetting fuse) but they've also tried "perfect" diodes and nothing at all. If anyone is interested then (partial) schematics can be found here: https://www.raspberrypi.org/documentati ... /README.md

Polyfuses are good, but they do drop a few mV - todays Pi PSU recommendation is for a 5.2v PSU, although there are reasons other than the on-board polyfuse for that.

Personally, I try to use polarised power connectors if possible, but constant vigilance, and all that...

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 14, 2018 11:07 am 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
Servo connectors are polarised. The main issue is finding a male connector for one, since those are usually on the receivers. The female ones are common enough. Failed servos and motor controllers have sent a few my way. The common sort of 2.45mm pin header fits them, and that's often all that's used, along with moulded cases on some of the more expensive receivers.
I have access to other polarized connectors, but those are mainly battery connectors(XT60s and the like), and I don't want to risk plugging (comparatively) high voltage straight into my mainboard, because I think 11v will probably destroy every last bit of silicon there.

I'm currently using a 2-pin 2.45mm socket on the board, and a matching pin header on the motor controller. I do need some form of protection, and ideally a polarized connector.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 14, 2018 12:46 pm 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
For battery-powered applications, putting in the battery backwards is an easy mistake to make, even if it only makes contact momentarily. The variable voltage also has to be accounted for, even if only with a conservative choice of clock speed. Being able to recharge the battery in-situ is also potentially valuable, but leads to yet more complication.

If there isn't already a comprehensive thread about power supply arrangements, perhaps there should be one.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 14, 2018 4:09 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8238
Location: Midwestern USA
DerTrueForce wrote:
Servo connectors are polarised. The main issue is finding a male connector for one...

I power my POC units from an old PC ATX power supply, which of course, does have fault protection—there is no input fault protection on any of these units. On POC V1, I used a Molex 5-1/4" floppy drive connector for power input, which cannot be plugged in backwards. POC V2 has a 3-1/2" floppy drive connector (aka Berg connector), which theoretically could be plugged in backwards. However, doing so would be difficult and immediately obvious. I have not had any reverse polarity contretemps with either of these setups.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 14, 2018 7:07 pm 
Offline

Joined: Sat Dec 13, 2003 3:37 pm
Posts: 1004
Man, I hate those Molex connectors.

I completely appreciate their design, but they're so hard to get out. Feature, not a bug, for most cases, but not when just futzing around.

But, yea, I was thinking more like those Berg connectors. Seems more usable.

You could also use simple headers, just use a 4 pin header with 3 pins with a gap, and clog the hole for the missing pin (stick a wire in it and cut it flush, put some epoxy in it, something like that).


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 15, 2018 12:24 am 
Offline

Joined: Tue Feb 24, 2015 11:07 pm
Posts: 81
I quite like RCY (often referred to as JST) connectors since they're small, polarised, 2 position (rather than 3 for servos) and available cheaply on eBay in packs of 10. I even get the ones with silicone insulation for that quality feel if I'm going to handle them often. It's handy that 3S LiPo (~12V) batteries are available OTS with RCY though I check the voltage carefully before connecting because the same connectors are wired to power sources with all sorts of voltages. At least I don't have to check polarity. I can even connect them blind by trying one way around and then the other. I like to add a bit of heat shrink between the insulation and the housing for some strain relief. They can be tough to disconnect hence the RCY (JST) connector handle, which works well. It's nice to standardise on a connector because now I have all sorts of plug-n-play modules like switch mode supplies with RCY in and out, in-line switches and shunts for current measurement.


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 15, 2018 4:58 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8238
Location: Midwestern USA
whartung wrote:
Man, I hate those Molex connectors. I completely appreciate their design, but they're so hard to get out. Feature, not a bug, for most cases, but not when just futzing around.

That's why I switched to the Berg connector for POC V2.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 15, 2018 5:45 am 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
It would be nice to use standard connectors for things. However, me being me, I would want different connectors for different voltage levels so I don't mix 'em up.
Battery power(variable DC) already comes in JST and XT60, and I'm already using JST for that.
A Molex connector from an ATX power supply would probably be good for both 5 and 12 volts, since they usually have both anyway. I even have a couple of old ATX power supplies, although I can't get the silly things to stay on. I have to hold the power-on line active or they just shut off(with or without a load resistor), and I feel like doing that isn't such a good idea. Molex connectors are also really flippin' hard to disconnect, which is something I do a lot with Ittiara when I break it down to put it away.
I'll have a look at the Berg, see what it is.


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 15, 2018 5:49 am 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
The ATX PSU command wire isn't latching - you *are* meant to hold it shorted to keep the PSU on.

Berg connectors are the ones used for PC fans. As such, they're readily available in 3-4 pin variants, so just put a different voltage on each pin. However, it is still quite easy to misalign or reverse them, unless you choose a shrouded socket.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 209 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: