Searching \ for ' %5BPIC%5D%3A' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: '5BPIC5D3A'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] %5BPIC%5D%3A'
2001\04\15@032740 by TIM MOORE

picon face
Can someone please tell me a way to connect eight momentary action pushbuttons to a PIC so that each button will light a corresponding LED, while locking out the other seven switches and their respective LEDs? This will be used as the basis of a kind of 'quiz-game adjudicator', to detect the first button press only.
                                                                                           thankyou.  


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

-- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body

2001\04\15@065920 by Jinx

face picon face
 Can someone please tell me a way to connect eight momentary   action pushbuttons to a PIC so that each button will light a
 --------------------

 It depends on which PIC you want to use and what else is
 connected to it. For example, doing this on a 12C508 is   possible but would involve external circuitry. An F84 or   other mulitport PIC could do this on it's own. Although an   F84 or one with a similar number of i/o pins would perhaps
 be configured to use the most number of i/o pins that would reliaby
 detect the first pushbutton press, and then maybe use either the
 same i/o as LED drivers, or alternatively multiplex the LEDs with an   external shift register. If you can specify a particular PIC, then it will
 be easier to make suggestions

 Apologies for the drift into HTML if you can see it, the original post must   have it turned on. My mail program is set to plain text

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2001\04\15@173626 by Craig Cassin

flavicon
face
Here is what I suggest:

use  8 output pins
one input pin
pull down the input with a 10k resistor
every output pin is connected to the input pin
thru a switch
the switchs also have an led and resistor
connected to ground on the side opposite from
the output

using 1/8 duty cycle,
set each output pin in turn to 5v
at this time also set the other outputs to inputs
if someone presses a switch, 5v is detected
at the input, so the code should pause until the 5v is gone.
the led will light on the switch press.
{Original Message removed}

2001\04\15@210024 by Jeff Johnson

picon face
> Can someone please tell me a way to connect
> eight momentary action pushbuttons to a PIC so
> that each button will light a corresponding LED,
> while locking out the other seven switches and their
> respective LEDs? This will be used as the basis of a
> kind of 'quiz-game adjudicator' to detect the
> first button press only

Hi,

I would use a 16F84 and set PORTB as all inputs and
wait for a button in a short loop. As there is a
possibility of a tie (more than one button in
10uSecs), you would need to arbitrate and a random
pick would probably do OK.

After a button is detected, I would then change PORTB
winner to an output and display the winning LED. There
would be some hardware considerations to stop the
buttons from operating the LEDs.

Then a reset button, using PORTA would start over
again.

Jeff Johnson
http://home.dialix.com/~u2263/index.htm


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam@spam@mitvma.mit.edu with SET PICList DIGEST in the body


2001\04\15@223820 by Spehro Pefhany
picon face
At 02:37 PM 4/15/01 -0700, you wrote:
>Here is what I suggest:
>
>use  8 output pins
>one input pin
>pull down the input with a 10k resistor
>every output pin is connected to the input pin
>thru a switch
>the switchs also have an led and resistor
>connected to ground on the side opposite from
>the output
>
>using 1/8 duty cycle,
>set each output pin in turn to 5v
>at this time also set the other outputs to inputs
> if someone presses a switch, 5v is detected
>at the input, so the code should pause until the 5v is gone.
>the led will light on the switch press.

You can use one more output to keep the lights from
all lighting while it is scanning (keep it high (or open)
until a hit is detected- it goes to the LED common).

Also, when the first press is detected multiple leds may
show until some of the switches are released. You'd need
diodes on each switch to get around that. I'd suggest an
18-pin PIC16F627 with internal 4MHz clock for minimum parts
count.

Best regards,
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Spehro Pefhany --"it's the network..."            "The Journey is the reward"
speffspamKILLspaminterlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com
Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body


2001\04\16@044530 by uter van ooijen & floortje hanneman

picon face
> Can someone please tell me a way to connect eight momentary action
pushbuttons to a PIC so that each button will light a corresponding LED,
while locking out the other seven switches and their respective LEDs? This
will be used as the basis of a kind of 'quiz-game adjudicator', to detect
the first button press only.

Why a PIC? Take a power supply with a series resistor. Feed the 2 lines
(power and ground) to each person. At each person, use a thyristor and a LED
in series, and a zener + pushbutton + resistor to fire the thyristor. When
one thyristor has fired, the voltage will lower so a second one won't fire.
The quizzmaster can reset by removing or shorting the power. Very simple,
reliable and expandable.

BTW I seem to remember that this has been discussed to death some time ago?

Wouter

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu


2001\04\16@093533 by Craig Cassin

flavicon
face
----- Original Message -----
From: "Spehro Pefhany" <speffspamspam_OUTINTERLOG.COM>
To: <@spam@PICLISTKILLspamspamMITVMA.MIT.EDU>
Sent: Sunday, April 15, 2001 7:36 PM
Subject: Re: [PIC] %5BPIC%5D%3A


{Quote hidden}

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=
> Spehro Pefhany --"it's the network..."            "The Journey is the
reward"
> KILLspamspeffKILLspamspaminterlog.com             Info for manufacturers:
http://www.trexon.com
> Embedded software/hardware/analog  Info for designers:
http://www.speff.com
> Contributions invited->The AVR-gcc FAQ is at:
http://www.bluecollarlinux.com
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=
>
> --
> http://www.piclist.com#nomail Going offline? Don't AutoReply us!
> email RemoveMElistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body
>
>
>
you are right. 8 diodes are needed to prevent all the leds from lighting.
16 ports cuts the parts list to 8 switches and 8 leds
(the led outputs can be duty-cycled )

-thanks

-Craig

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestspamBeGonespammitvma.mit.edu


2001\04\16@114321 by rottosen

flavicon
face
wouter van ooijen & floortje hanneman wrote:
>
> > Can someone please tell me a way to connect eight momentary action
> pushbuttons to a PIC so that each button will light a corresponding LED,
> while locking out the other seven switches and their respective LEDs? This
> will be used as the basis of a kind of 'quiz-game adjudicator', to detect
> the first button press only.
>
> Why a PIC? Take a power supply with a series resistor. Feed the 2 lines
> (power and ground) to each person. At each person, use a thyristor and a LED
> in series, and a zener + pushbutton + resistor to fire the thyristor. When
> one thyristor has fired, the voltage will lower so a second one won't fire.
> The quizzmaster can reset by removing or shorting the power. Very simple,
> reliable and expandable.


Been there, done that.  Wish I had used a PIC...


-- Rich


>
> BTW I seem to remember that this has been discussed to death some time ago?
>
> Wouter
>
> --
> http://www.piclist.com hint: To leave the PICList
> TakeThisOuTpiclist-unsubscribe-requestEraseMEspamspam_OUTmitvma.mit.edu

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestspamTakeThisOuTmitvma.mit.edu


2001\04\16@125012 by Raymond Choat

flavicon
face
Here would be the flow of how the program could work:

Wait1:
      buttons = PortA
      if buttons <> 0 then goto wait1   'loop till no buttons are being
pressed
start:
       buttons = PortA
       If buttons = 0 goto start    '(if no switches on go back to start)
       Endif
       ' next lines happens if button was pressed
       PortB = PortA   'lights correct LED (even reset_button)
loop:
       reset_button =  PortA.7     '(look at reset switch for game)
       If reset_button = 0 then goto loop    '(if reset is not pressed)
       ' this happens if reset_button was pressed
       goto start      'start all over


End


{Original Message removed}

2001\04\16@161131 by Harold M Hallikainen

picon face
On Mon, 16 Apr 2001 09:40:58 -0600 Richard Ottosen <rottosenEraseMEspam.....IDCOMM.COM>
writes:
>
> Been there, done that.  Wish I had used a PIC...
>
>

       Something like "The ideal design has zero parts..."

Harold


FCC Rules Online at http://hallikainen.com/FccRules
Lighting control for theatre and television at http://www.dovesystems.com

________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
dl.http://www.juno.com/get/tagj.

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspammitvma.mit.edu


2001\04\16@163042 by Dan Michaels

flavicon
face
At 12:51 PM 4/16/01 -0700, you wrote:
>On Mon, 16 Apr 2001 09:40:58 -0600 Richard Ottosen <RemoveMErottosenEraseMEspamEraseMEIDCOMM.COM>
>writes:
>>
>> Been there, done that.  Wish I had used a PIC...
>>
>>
>
>        Something like "The ideal design has zero parts..."
>
>Harold
>

I'm with Harold - why use many discrete parts when you can design
with just a couple? For philosophical issues, see Mchp stuff on
"Mechatronics":

http://www.microchip.com/mechatronics/

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestspam_OUTspamKILLspammitvma.mit.edu


2001\04\16@191224 by rottosen

flavicon
face
Dan:

Normally I would have gone for the minimum number of parts. It seemed
that for mechanical and other reasons that more parts would actually be
easier to build and maintain than the PIC version. Oops.

This was a one that I did not want to support at zero income for ever
and ever. I gave them a schematic and hoped that they got the hint  :-)


-- Rich


Dan Michaels wrote:
{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestKILLspamspammitvma.mit.edu


2001\04\16@191231 by rottosen

flavicon
face
I should have explained why I should have used a PIC.

Even though I had most of the parts to do the SCR version of the
circuit, it turned out to be a lot trickier to get it to work than I
expected. Lots of resistors, caps, diodes and other stuff. When I
started I felt that the unit would be more maintainable without a micro
in it.

I built the unit and took it to a 6502 Group ( http://6502group.org/ )
meeting to do a geeks version of Jeopardy. It worked great except for
the lack of a buzzer to indicate that someone had pressed a button. Our
group is not lacking in shyness so it was no problem to split up the
tasks with on member reading the questions and another acting as a
buzzer and operating the reset switch. Unfortunately, the unit was built
for a much more serious (competitive) environment.

With the PIC, the buzzer would have been easy to add and the circuit
could have had a timeout to do an automatic reset.


-- Rich



Harold M Hallikainen wrote:
{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
KILLspampiclist-unsubscribe-requestspamBeGonespammitvma.mit.edu



'[PICLIST] =%5BPIC%5D%3A Speedtrap warning device u'
2001\11\03@111409 by APRS Mobiel
picon face
{Quote hidden}

=====
------------- http://clik.to/aprsmobiel ----------------
TRACKERS, GPS ONTVANGERS, APRS TRANCEIVER en ZELFBOUW.
>>>>>>>>>HEEFT U VRAGEN OF (BOUW)PROBLEMEN ?<<<<<<<<<<<<
  AMATEUR BOUWKITS, BESTELLEN EN PRIJZEN STAAN OP:
   http://www.geocities.com/aprsmobiel/PRIJS.HTM
 Please also visit my Kreidler and Zuendapp pagina at:
-------------- http://clik.to/zundapp ------------------

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\11\03@121357 by M. Adam Davis

flavicon
face
What is it that you plan on doing with the GPS?  How is the GPS supposed
to warn you of a speedtrap?

-Adam

APRS Mobiel wrote:

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\11\03@140152 by Nick Ray

flavicon
picon face
The system uses a database of known speed trap locations and alerts you when
the GPS position nears one of them. There are one or 2 commercial systems
availiable here in the UK, but I don't know accurate their data is.

Useless for mobile traps though..

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\11\03@140512 by APRS Mobiel

picon face
=%5BPIC%5D%3A

THE IDEA OF:
Speedtrap warning device using any GPS receiver.

Hello to you all,

My name is Bertus Living in Netherlands, retired
and also a heavy hamradio user.

Some time ago getting a idea to make speedtrap
warning device with help using normal GPS
receivers.
Myself totaly no software coder or what so ever
and only have this idea in my mind.

Search for someone who is able to help advice to
make/develop a small pice of firmware inside a
PIC like 16Fxx or any other.
I also having some GPS tools to help out any
developments or simulation without need of
realtime
hardware gps.
To program pic i using LUDIPOP programmer.
When possible someone help with hardware diagram
around it to let this device run.

When you like more details about the idea i
having,
i wil be happy to reply.
Hope you are willing to help me out, please ?

Kind regards,
Bertus.
EraseMEaprsmobielspamEraseMEyahoo.com



=====
------------- http://clik.to/aprsmobiel ----------------
TRACKERS, GPS ONTVANGERS, APRS TRANCEIVER en ZELFBOUW.
>>>>>>>>>HEEFT U VRAGEN OF (BOUW)PROBLEMEN ?<<<<<<<<<<<<
  AMATEUR BOUWKITS, BESTELLEN EN PRIJZEN STAAN OP:
   http://www.geocities.com/aprsmobiel/PRIJS.HTM
 Please also visit my Kreidler and Zuendapp pagina at:
-------------- http://clik.to/zundapp ------------------

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\11\03@154326 by Russell McMahon

picon face
> What is it that you plan on doing with the GPS?  How is the GPS supposed
> to warn you of a speedtrap?

One method is to use GPS to derive speed across ground (taking account also
for elevation) and ensure that your velocity vector never exceeds the local
speed limit. You could also map speed limit boundaries to determine the
appropriate change points.

Generally intelligent application of a speedometer, brain and eyes works
well enough already. It's a cheap solution (as most systems are already
equipped with all the components) and it can provide an almost 100% success
rate against speeding, let alone speeding tickets. From what I've heard it's
FAR more successful at achieving a lack of speeding tickets than the results
reported by people using RADAR / LIDAR detectors.



   RM :-)

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\11\04@015941 by artstar

flavicon
face
In other words, what you're saying is "drive slow". What needs to be
realised here, without getting into an argument about who's right and
who's wrong, is that people will go over the speed limit - be it a
little or a lot.

So, for those who want such a device, help them out for the sake of what
this PIClist is about, rather than preaching about what is deemed
appropriate motorist behaviour. Fair enough?

Adios,
LarZ

---------------  TAMA - The Strongest Name in Drums  ---------------

{Original Message removed}

2001\11\04@114156 by APRS Mobiel

picon face
Dear Adam,

Thanks for reply.
The idea is using a PIC and extra RAM to store all
known speedtrap GPS locations into RAM.
(here in NL around 2000)

When driving on the road toward the known location/GPS
coordinates, the warning device sounds his alarm.

Personaly think could be very simple pice of device
with just 1 PIC, piezo and some LED blink.

Bertus.


--- "M. Adam Davis" <@spam@adampic@spam@spamspam_OUTUBASICS.COM> wrote:
{Quote hidden}

=====
------------- http://clik.to/aprsmobiel ----------------
TRACKERS, GPS ONTVANGERS, APRS TRANCEIVER en ZELFBOUW.
>>>>>>>>>HEEFT U VRAGEN OF (BOUW)PROBLEMEN ?<<<<<<<<<<<<
  AMATEUR BOUWKITS, BESTELLEN EN PRIJZEN STAAN OP:
   http://www.geocities.com/aprsmobiel/PRIJS.HTM
 Please also visit my Kreidler and Zuendapp pagina at:
-------------- http://clik.to/zundapp ------------------

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


'[PICLIST] Re =%5BPIC%5D%3A Speedtrap warning devi'
2001\11\05@014606 by Russell McMahon

picon face
> In other words, what you're saying is "drive slow". What needs to be
> realised here, without getting into an argument about who's right and
> who's wrong, is that people will go over the speed limit - be it a
> little or a lot.
>
> So, for those who want such a device, help them out for the sake of what
> this PIClist is about, rather than preaching about what is deemed
> appropriate motorist behaviour. Fair enough?


OK.
Many (most?) modern speedometers are electronically analog driven.
Add a pot and a comparator to monitor this signal and you can tell when a
given speed is exceeded. A suitable caution can be sounded. Add a PIC and
you could have a unit which checks all common speed limits and sounds
different distinctive tones once when each of the limits is exceeded by more
than a certain amount for a certain period. This way the tome for eg 20 or
30 kph does not sound continuously when travelling at eg 50 kph. When the
highest allowable legal speed is exceeded by more than a certain amount the
appropriate tome could sound continuously or a and a speed reduction  signal
could be applied to the auto's system if the speed were exceeded
continuously for more than a certain period. This should pretty much meet
the above objectives.

Is this what you had in mind ? :-)



       RM

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...