Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers

Notices


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 17th March 2007, 06:24 AM   (permalink (permalink))
Default

Quote:
Originally Posted by Andy1845c
3. I want to select from 4-6 led patterns with a rotary switch. Is this possible/advisable with a single PIC? I assume I could use 4-6 seperate PICs, one for each pattern, but I am guessing thats not needed. Does anyone have a schematic or link to a similar project so I can get an idea on how this is done?
The trick is to convert from 1 of n to binary.

The attachment is an extract for one of my designs. I've converted 1 of 10 to binary using a 2 gang rotary switch.

It could be done with a one gang switch by:-
  1. using more diodes, or
  2. using a Priority Encoder IC.
In the case of a one gang, 4 position switch (ie. n = 4 ), all you need is 2 diodes and 2 resistors.

But if you use a 4 position, 2 gang switch, all you need is 2 resistors.

EDIT, I mis-read your request. You want 6 LED patterns.

So you can do it with a 2 gang 6 position switch and 3 resistors as per the 0 ~ 5 positions in the attachment,
Attached Images
File Type: gif Rotary switch.gif (4.2 KB, 25 views)
__________________
Len

Last edited by ljcox; 17th March 2007 at 06:47 AM.
ljcox is offline  
Reply With Quote
Old 18th March 2007, 04:35 PM   (permalink (permalink))
Default

Quote:
Originally Posted by Gayan Soyza
donniedj I like your PCB.Are you using the tonner tranfer method or silk screen method.
Photolithograpic method with printed on transparency sheets.
donniedj is offline  
Reply With Quote
Old 24th June 2007, 04:41 PM   (permalink (permalink))
Default

You can use a single ADC to select different subroutines with a multiple point potential divider. Read the ADC value to call different subroutines.

hm:
mathur2000 is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Latest
A couple 'scope questions zachtheterrible General Electronics Chat 7 3rd November 2005 12:51 PM
Couple of questions about lm111 op-amp ThirtyTwo General Electronics Chat 7 29th August 2005 06:14 AM
Newcomers, please read! (PIC regarded) Upd. 0xD Jay.slovak Micro Controllers 0 17th April 2005 01:04 PM
Couple of PIC Questions joe_1 Micro Controllers 5 3rd May 2004 06:25 PM
Hi I'm absolute beginner and I have couple of questions Super Mario Micro Controllers 4 25th October 2003 11:05 AM



All times are GMT. The time now is 03:12 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.