English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 23 July 2021, 10:01   #1
craggus2000
Registered User
 
craggus2000's Avatar
 
Join Date: Oct 2010
Location: Braintree, Essex, UK
Age: 39
Posts: 126
Question A500 LEDs

Hi,
Does anyone know what the spec of the power and drive LEDs are on an A500 keyboard?


I'm trying to see what else I would need (if anything) on top of the 22ohm resistor thats already in the LED circuit on the keyboard controller to be able to connect them to GPIOs of a raspberry Pi to control them.


Currently I'm not worried about mimicking the dimming that a proper Amiga does, just want to connect them as standard LEDs to a pi.


Many thanks!

Last edited by craggus2000; 23 July 2021 at 15:13.
craggus2000 is offline  
Old 23 July 2021, 15:30   #2
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,741
Can't provide anything useful but if i recall correctly this is generic 2 LED's connected in series - so assume double voltage and current bellow 20mA.
pandy71 is offline  
Old 23 July 2021, 16:23   #3
craggus2000
Registered User
 
craggus2000's Avatar
 
Join Date: Oct 2010
Location: Braintree, Essex, UK
Age: 39
Posts: 126
Yes it is 2 in series. I think i read somewhere that each pair draws 200mA! Which to me sounds too high, but thats just one forum entry I read.

GPIOs are also 3.3v if that makes a difference?
craggus2000 is offline  
Old 23 July 2021, 23:56   #4
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,741
Quote:
Originally Posted by craggus2000 View Post
Yes it is 2 in series. I think i read somewhere that each pair draws 200mA! Which to me sounds too high, but thats just one forum entry I read.

GPIOs are also 3.3v if that makes a difference?
doubt on 200mA - this looks like ordinary 20mA LED also 200mA LED's in 80/90 was usually unavailable for visible light devices (this kind of current was nothing unusual for GaAs IR LED's)
200mA means that they should be very bright but they look same as average green LED from end of 80's (at least to me)

yep, 3.3V may be insufficient to make them work (i expect for 2 LED in series somewhere 4.2 .. 4.4V at least to satisfy forward voltage condition - not sure about green LED technology used by LED's and used by Commodore - in past for green LED material used was GaP (bandgap approx 2.24V) but nowadays for so called "pure green" commonly InGaN or GaN is used so bandgap is higher and typical for blue or white LED's i.e. over 3.3V.

probably you will need some transistor or logic gate capable to deliver at least 20mA with 3.3V control logic - should be not a big issue.
pandy71 is offline  
Old 25 July 2021, 10:15   #5
craggus2000
Registered User
 
craggus2000's Avatar
 
Join Date: Oct 2010
Location: Braintree, Essex, UK
Age: 39
Posts: 126
Could you post the circuit I would use please?
craggus2000 is offline  
Old 25 July 2021, 12:59   #6
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,741
Quote:
Originally Posted by craggus2000 View Post
Could you post the circuit I would use please?
This is more about how to power LED (you need at least 5V) - easiest and safest too for RPi is optocoupler - as optocoupler LED is usually IR then forward voltage is bellow 2V - fine from RPi perspective, output transistor can be hooked to way higher voltage than RPi so ++5V is also possible.
This probably most flexible and cheapest way to do safe control from RPi side something powered with more than 3.3V
pandy71 is offline  
Old 27 July 2021, 10:06   #7
craggus2000
Registered User
 
craggus2000's Avatar
 
Join Date: Oct 2010
Location: Braintree, Essex, UK
Age: 39
Posts: 126
Quote:
Originally Posted by pandy71 View Post
This is more about how to power LED (you need at least 5V) - easiest and safest too for RPi is optocoupler - as optocoupler LED is usually IR then forward voltage is bellow 2V - fine from RPi perspective, output transistor can be hooked to way higher voltage than RPi so ++5V is also possible.
This probably most flexible and cheapest way to do safe control from RPi side something powered with more than 3.3V

What about using one of the 5v pins on the Pi itself as the power source?
craggus2000 is offline  
Old 27 July 2021, 16:57   #8
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
Quote:
Originally Posted by craggus2000 View Post
What about using one of the 5v pins on the Pi itself as the power source?
You can power them using 5V from the Pi, but you still need a transistor (or other switching element) to drive them. Something like the schematic below - the stuff in the box is the existing keyboard circuit, so you just connect its GND pin to ground and PWR or DRIVE to the circuit shown to light a LED. Unfortunately, the LEDs are high-side switched, so you need two transistors to control them from 3.3V (unless you want to hack the keyboard).
Attached Thumbnails
Click image for larger version

Name:	leds.png
Views:	482
Size:	36.8 KB
ID:	72665  
hooverphonique is offline  
Old 27 July 2021, 18:31   #9
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,741
Quote:
Originally Posted by hooverphonique View Post
You can power them using 5V from the Pi, but you still need a transistor (or other switching element) to drive them. Something like the schematic below - the stuff in the box is the existing keyboard circuit, so you just connect its GND pin to ground and PWR or DRIVE to the circuit shown to light a LED. Unfortunately, the LEDs are high-side switched, so you need two transistors to control them from 3.3V (unless you want to hack the keyboard).
Single PNP transistor can be used as in orginal Amiga schematic but negative logic (i.e. 1 disable LED and 0 enable LED) and pullup resistor required but still IMHO best way (RPi safe) is to use cheap optocoupler.
pandy71 is offline  
Old 28 July 2021, 10:19   #10
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
Quote:
Originally Posted by pandy71 View Post
Single PNP transistor can be used as in orginal Amiga schematic but negative logic (i.e. 1 disable LED and 0 enable LED) and pullup resistor required but still IMHO best way (RPi safe) is to use cheap optocoupler.
I think not - when you apply 3.3V to the base of the pnp (through a resistor), it will be on because 3.3V < 5V-0.6V, and even if you switch the gpio to input (high impedance), the current will probably travel through the internal gpio tvs diode and still turn the pnp on (because the Pi runs at 3.3V).


In a 5V-only system, the pnp would turn off when the base is high/open, yes.
hooverphonique is offline  
Old 28 July 2021, 23:20   #11
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,741
Quote:
Originally Posted by hooverphonique View Post
I think not - when you apply 3.3V to the base of the pnp (through a resistor), it will be on because 3.3V < 5V-0.6V, and even if you switch the gpio to input (high impedance), the current will probably travel through the internal gpio tvs diode and still turn the pnp on (because the Pi runs at 3.3V).


In a 5V-only system, the pnp would turn off when the base is high/open, yes.
True but you can connect pullup to 5V - question is about RPI GPIO capability to sink current - that's why i prefer to use optocoupler - substantially simplify circuit, remove issue with different Vcc and finally prevent GPIO in RPi to be damaged.

Of course there is many possible solutions, logic level MOSFET for example will work perfectly (condition is to have Vgs significantly bellow 3.3V, for example 1.5V maximum or use P-MOSFET) - any level shifter will work fine too - more in attached AN.

But IMHO optocoupler like 4N25 or similar will be cheaper and provide higher safety for RPi.
Attached Files
File Type: pdf 41285A.pdf (952.8 KB, 678 views)
File Type: pdf an97055.pdf (75.3 KB, 50 views)
pandy71 is offline  
Old 29 July 2021, 23:40   #12
craggus2000
Registered User
 
craggus2000's Avatar
 
Join Date: Oct 2010
Location: Braintree, Essex, UK
Age: 39
Posts: 126
Quote:
Originally Posted by hooverphonique View Post
You can power them using 5V from the Pi, but you still need a transistor (or other switching element) to drive them. Something like the schematic below - the stuff in the box is the existing keyboard circuit, so you just connect its GND pin to ground and PWR or DRIVE to the circuit shown to light a LED. Unfortunately, the LEDs are high-side switched, so you need two transistors to control them from 3.3V (unless you want to hack the keyboard).

Ok, I've been able to make that circuit and it works! However... the after the Pi has shutdown the power led stays on extremely dim. I've tried increasing the resistance between 5v and the transistor, and also between the transistor and the LEDs, but all it does is make the LEDs dimmer when operating. The dimness is still there after shutdown. Any ideas?
craggus2000 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amiga A500+ power LED fixing Anemos Hardware pics 8 29 March 2019 22:41
A500 led question DyLucke support.Hardware 16 23 June 2010 23:48
A500 power LED turns off.... PowerPie5000 support.Hardware 7 22 April 2009 17:32
A500, Flashing Red LED vimfuego support.Hardware 3 21 April 2009 01:01
Poll: A500 LED Coloours Antiriad Retrogaming General Discussion 5 03 October 2002 13:33

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.14293 seconds with 16 queries