Greetings,
Your TS-7xxx board has got two leds (green and red), for startup, you
could patch the kernel
for you need.
A script in init.d could inform you that the "software" is ready.
You can't directly connect a led you the DIO because, DIOs can be source
4 (or
8) mA and your led need at least 10mA ; you will need a transistor (I
spammed
the list with that ;))
The topic has been discussed numerous times, "DIO" is a good keyword to
search.
These specific threads could be interesting for you:
- "[electronic] 7-segment LED" (10.30.2005)
- "DIO code" (07.11.2005)
- "DIO example code..." (11.30.2004) <= fits your question
I attach you a geda schematic for your need (using NPN, 2N2222), hope it
helps (this is tested!).
Matthieu
Yan Seiner wrote:
>I've got a couple of questions on LEDs....
>
>Anyone know of a way to turn on an LED as soon as the power is applied
>and then turn it off under software control? I am trying to get an
>indicator that the power is applied and the system is booting....
>
>Also, anyone know of a packaged LED that can be driven directly off of
>one of the DIO pins? I am thinking of a light assembly that takes TTL
>levels as input, and has a separate 5V power, and turns on and off
>with TTL control? (Am I making any sense at all? I just came back
>from Japan and I'm still jet-lagged quite a bit....)
>
>--Yan
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
v 20050820 1
C 20800 63200 1 180 0 header16-ts7200_dio-1.sym
{
T 20000 59900 5 10 1 1 180 3 1
refdes=J1
T 20800 63200 5 10 0 0 0 0 1
net=GND:2
T 20800 63200 5 10 0 0 0 0 1
net=+3.3V:16
}
C 22000 59700 1 0 0 2N2222-1.sym
{
T 22900 60200 5 10 1 1 0 0 1
refdes=Q1
}
N 19200 60200 18800 60200 4
N 18800 60200 18800 59000 4
C 21000 60100 1 0 0 resistor-2.sym
{
T 21200 60400 5 10 1 1 0 0 1
refdes=R1
T 21200 59900 5 10 1 1 0 0 1
value=1.2K
}
N 22000 60200 21900 60200 4
N 21000 60200 20800 60200 4
N 18800 59000 22600 59000 4
N 22600 59000 22600 59700 4
C 22500 63100 1 270 0 resistor-2.sym
{
T 22800 62900 5 10 1 1 270 0 1
refdes=R2
T 22100 62600 5 10 1 1 0 0 1
value=150
}
C 22400 62100 1 270 0 led-1.sym
{
T 22800 61300 5 10 1 1 270 0 1
refdes=LED1
}
N 22600 62200 22600 62100 4
N 22600 61200 22600 60700 4
N 19200 63000 18800 63000 4
N 18800 63000 18800 63800 4
N 18800 63800 22600 63800 4
N 22600 63800 22600 63100 4
C 18800 62800 1 90 0 3.3V-plus-1.sym
C 18500 60300 1 270 0 gnd-1.sym
T 23500 62800 9 10 1 0 0 0 3
LED (red) : need 1,6V and 10mA
R1: (3.3-0.7)/0.00216 = 1203
R2: (3.3-0.1-1.6)/0.010 = 160
C 16700 56700 1 0 0 title-A.sym
T 20800 57500 12 20 1 0 0 0 1
Led controled by a GPIO
T 23500 61900 9 10 1 0 0 0 2
Remarque: on peut ajouter une 2eme
LED (en série), on supprimant R2
v 20050820 1
P 0 3000 300 3000 1 0 0
{
T 200 3050 5 8 1 1 0 6 1
pinnumber=1
T 200 3050 5 8 0 0 0 6 1
pinseq=1
T 350 2950 9 6 1 1 0 0 1
pinlabel=DIO_08
T 200 2950 9 6 0 1 0 8 1
pintype=io
}
P 1300 3000 1600 3000 1 0 1
{
T 1400 3050 5 8 1 1 0 0 1
pinnumber=2
T 1400 3050 5 8 0 0 0 0 1
pinseq=2
T 1250 2950 9 6 1 1 0 6 1
pinlabel=GND
T 1400 2950 9 6 0 1 0 2 1
pintype=out
}
P 0 2600 300 2600 1 0 0
{
T 200 2650 5 8 1 1 0 6 1
pinnumber=3
T 200 2650 5 8 0 0 0 6 1
pinseq=3
T 350 2550 9 6 1 1 0 0 1
pinlabel=DIO_09
T 200 2550 9 6 0 1 0 8 1
pintype=io
}
P 1300 2600 1600 2600 1 0 1
{
T 1400 2650 5 8 1 1 0 0 1
pinnumber=4
T 1400 2650 5 8 0 0 0 0 1
pinseq=4
T 1250 2550 9 6 1 1 0 6 1
pinlabel=ADC0
T 1400 2550 9 6 0 1 0 2 1
pintype=io
}
P 0 2200 300 2200 1 0 0
{
T 200 2250 5 8 1 1 0 6 1
pinnumber=5
T 200 2250 5 8 0 0 0 6 1
pinseq=5
T 350 2150 9 6 1 1 0 0 1
pinlabel=DIO_10
T 200 2150 9 6 0 1 0 8 1
pintype=io
}
P 1300 2200 1600 2200 1 0 1
{
T 1400 2250 5 8 1 1 0 0 1
pinnumber=6
T 1400 2250 5 8 0 0 0 0 1
pinseq=6
T 1250 2150 9 6 1 1 0 6 1
pinlabel=ADC4
T 1400 2150 9 6 0 1 0 2 1
pintype=io
}
P 0 1800 300 1800 1 0 0
{
T 200 1850 5 8 1 1 0 6 1
pinnumber=7
T 200 1850 5 8 0 0 0 6 1
pinseq=7
T 350 1750 9 6 1 1 0 0 1
pinlabel=DIO_11
T 200 1750 9 6 0 1 0 8 1
pintype=io
}
P 1300 1800 1600 1800 1 0 1
{
T 1400 1850 5 8 1 1 0 0 1
pinnumber=8
T 1400 1850 5 8 0 0 0 0 1
pinseq=8
T 1250 1750 9 6 1 1 0 6 1
pinlabel=DIO_16
T 1400 1750 9 6 0 1 0 2 1
pintype=io
}
P 0 1400 300 1400 1 0 0
{
T 200 1450 5 8 1 1 0 6 1
pinnumber=9
T 200 1450 5 8 0 0 0 6 1
pinseq=9
T 350 1350 9 6 1 1 0 0 1
pinlabel=DIO_12
T 200 1350 9 6 0 1 0 8 1
pintype=io
}
P 1300 1400 1600 1400 1 0 1
{
T 1400 1450 5 8 1 1 0 0 1
pinnumber=10
T 1400 1450 5 8 0 0 0 0 1
pinseq=10
T 1250 1350 9 4 1 1 0 6 1
pinlabel=SPI_MISO
T 1400 1350 9 6 0 1 0 2 1
pintype=io
}
P 0 1000 300 1000 1 0 0
{
T 200 1050 5 8 1 1 0 6 1
pinnumber=11
T 200 1050 5 8 0 0 0 6 1
pinseq=11
T 350 950 9 6 1 1 0 0 1
pinlabel=DIO_13
T 200 950 9 6 0 1 0 8 1
pintype=io
}
P 1300 1000 1600 1000 1 0 1
{
T 1400 1050 5 8 1 1 0 0 1
pinnumber=12
T 1400 1050 5 8 0 0 0 0 1
pinseq=12
T 1250 950 9 4 1 1 0 6 1
pinlabel=SPI_MOSI
T 1400 950 9 6 0 1 0 2 1
pintype=io
}
P 0 600 300 600 1 0 0
{
T 200 650 5 8 1 1 0 6 1
pinnumber=13
T 200 650 5 8 0 0 0 6 1
pinseq=13
T 350 550 9 6 1 1 0 0 1
pinlabel=DIO_14
T 200 550 9 6 0 1 0 8 1
pintype=io
}
P 1300 600 1600 600 1 0 1
{
T 1400 650 5 8 1 1 0 0 1
pinnumber=14
T 1400 650 5 8 0 0 0 0 1
pinseq=14
T 1250 550 9 4 1 1 0 6 1
pinlabel=SPI_CLK
T 1400 550 9 6 0 1 0 2 1
pintype=io
}
P 0 200 300 200 1 0 0
{
T 200 250 5 8 1 1 0 6 1
pinnumber=15
T 200 250 5 8 0 0 0 6 1
pinseq=15
T 350 150 9 6 1 1 0 0 1
pinlabel=DIO_15
T 200 150 9 6 0 1 0 8 1
pintype=io
}
P 1300 200 1600 200 1 0 1
{
T 1400 250 5 8 1 1 0 0 1
pinnumber=16
T 1400 250 5 8 0 0 0 0 1
pinseq=16
T 1250 150 9 6 1 1 0 6 1
pinlabel=+3.3V
T 1400 150 9 6 0 1 0 2 1
pintype=out
}
B 300 0 1000 3200 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
V 350 3150 13 3 0 0 0 -1 -1 1 -1 -1 1 -1 1
L 800 3200 800 0 3 0 0 0 -1 -1
L 300 2800 1300 2800 3 0 0 0 -1 -1
L 300 2400 1300 2400 3 0 0 0 -1 -1
L 300 2000 1300 2000 3 0 0 0 -1 -1
L 300 1600 1300 1600 3 0 0 0 -1 -1
L 300 1200 1300 1200 3 0 0 0 -1 -1
L 300 800 1300 800 3 0 0 0 -1 -1
L 300 400 1300 400 3 0 0 0 -1 -1
T 800 3300 8 10 1 1 0 3 1
refdes=J?
T 800 -150 9 8 1 1 0 5 1
TS-7200 DIO HEADER
T 0 4300 5 10 0 0 0 0 1
device=HEADER16
T 0 4100 5 10 0 0 0 0 1
footprint=SIP16N
T 0 3900 5 10 0 0 0 0 1
pins=16
T 0 3700 5 10 0 0 0 0 1
class=IO
T 0 3500 5 10 0 0 0 0 1
numslots=0
|