|
Components and Circuits For discussions about component types, alternatives and availability, circuit configurations and modifications etc. Discussions here should be of a general nature and not about specific sets. |
|
Thread Tools |
8th Sep 2011, 7:58 pm | #81 |
Retired Dormant Member
Join Date: Dec 2003
Location: North London, UK.
Posts: 6,168
|
Re: 4 Digit Up/Down Counter IC?
That reminds me of a contraption I saw at Dorkbot meeting about 5 years ago. ISTR mice were used to measure the rotation of exercise bikes in a pedal controlled version of the "Pong" video game.
PS: Just found an online reference: http://www.lushprojects.com/cyclepong/ PPS: More on hacking mice as rotation sensors: http://lushprojects.com/microsoftmouse/ Last edited by ppppenguin; 8th Sep 2011 at 8:04 pm. |
8th Sep 2011, 9:03 pm | #82 |
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
|
8th Sep 2011, 9:29 pm | #83 | ||
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
Hello Mark,
Quote:
Quote:
Regards, Dave. |
||
8th Sep 2011, 9:39 pm | #84 |
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
Hello Brian,
Thanks for your suggestion. I need a 4 digit display approx 30mm x 7mm so it will fit in place of the broken mechanical turns counter in my tape recorder. The ones you suggested are 8 digit and much too large to fit and are, therefore, unsuitable for my application. Regards, Dave. |
8th Sep 2011, 10:08 pm | #85 | ||||
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
Hello Mark,
Quote:
Quote:
Quote:
Quote:
Pretty much the same applies to using parts from an old mouse! They generate many pulses per revolution, which would need dividing down. If I do it myself, I would arrange that only one pulse per revolution occurred. Regards, Dave. |
||||
8th Sep 2011, 11:12 pm | #86 |
Retired Dormant Member
Join Date: Jun 2010
Location: Co. Limerick, Ireland.
Posts: 1,183
|
Re: 4 Digit Up/Down Counter IC?
A ball mouse has two quadrature encoders.
I've used them as panel controls remounting the spoked wheel between two bits of veroboard, one carrying IR emitter and one the dual o/p phototransistor. A PIC 18F will easily read them at full spooling speed without dividing and is much cheaper than an PIC16F84 (Comparison) You can make miniature 7segment displays from 7 bar shape LEDs. Even Surface mount LED display can be made with regular iron on back of veroboard. |
9th Sep 2011, 7:23 am | #87 |
Retired Dormant Member
Join Date: Dec 2003
Location: North London, UK.
Posts: 6,168
|
Re: 4 Digit Up/Down Counter IC?
If you look around the links on the "Cyclepong" pages that I cited you should find a lot of stuff about hacking mice. I remember one page I saw where the number of pulses per revolution was reduced by removing "teeth" from the optical interrupter. I haven't been able to find that page again but there is loads of stuff on the net about hacking mice.
|
9th Sep 2011, 7:33 am | #88 | |
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
Hello Jeffery,
Quote:
Regards, Dave. |
|
9th Sep 2011, 8:17 am | #89 |
Retired Dormant Member
Join Date: Jun 2010
Location: Co. Limerick, Ireland.
Posts: 1,183
|
Re: 4 Digit Up/Down Counter IC?
Use a drive belt?
|
9th Sep 2011, 8:20 am | #90 |
Retired Dormant Member
Join Date: Jun 2010
Location: Co. Limerick, Ireland.
Posts: 1,183
|
Re: 4 Digit Up/Down Counter IC?
Or
Just use the photodiode and LED from mouse and make one half of shaft reflective and the other half not where IR-LED/Phototransistor mounted. A rectangle of matt black paint. |
9th Sep 2011, 9:44 am | #91 | |
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
Hello Michael,
You are joking, aren't you? However, all frivolity aside, that would mean additional work and expense, not to mention that rubber drive belts don't last forever, and I don't think it would be very practical. Quote:
Painting half the shaft would be one way of doing it but I was thinking of using a disc so that the light from the LED would be completely cut-off and wouldn't depend on the reflectivity of the shaft surface, also, I'm not sure how well paint would adhere to the shaft, particularly at high speeds. There's also the possibility (probability?) that oil from the motor bearings could affect the paint. Regards, Dave. |
|
9th Sep 2011, 11:31 am | #92 | ||||||
Dekatron
Join Date: Jul 2007
Location: Evesham, Worcestershire, UK.
Posts: 4,244
|
Re: 4 Digit Up/Down Counter IC?
Hi Dave,
Quote:
Quote:
Quote:
Quote:
This scheme works well in my preamp, although I'd probably simplify it a bit (was trying to be clever and include low-voltage detect, which worked but probably wasn't needed). The simpler mains-fail in my A4 power amp is neater- only uses two transistors. I prefer discrete transistors in this role because their behaviour is much more predictable compared to ICs. No-doubt others will have their own preferences... Cheers, Mark |
||||||
9th Sep 2011, 12:22 pm | #93 |
Nonode
Join Date: Aug 2007
Location: South Bradford, West Yorkshire, UK.
Posts: 2,573
|
Re: 4 Digit Up/Down Counter IC?
Why not stick an alternating black/white strip around rotor of the take up spool motor and arrange two led/photodiodes to give a quadrature output from this strip.
Keith |
9th Sep 2011, 12:29 pm | #94 | |
Dekatron
Join Date: Jul 2007
Location: Evesham, Worcestershire, UK.
Posts: 4,244
|
Re: 4 Digit Up/Down Counter IC?
Quote:
|
|
9th Sep 2011, 1:31 pm | #95 | |
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
Hello Keith,
Quote:
Regards, Dave. |
|
9th Sep 2011, 1:48 pm | #96 |
Retired Dormant Member
Join Date: Dec 2003
Location: North London, UK.
Posts: 6,168
|
Re: 4 Digit Up/Down Counter IC?
How about a disc with alternate black/clear quadrants and a couple of those little slotted LED/photodiode devices.
|
9th Sep 2011, 1:56 pm | #97 |
Heptode
Join Date: Mar 2009
Location: Portsmouth, Hampshire, UK.
Posts: 674
|
Re: 4 Digit Up/Down Counter IC?
Hi Mark
I think there's a typo, shouldn't that be the 16F627A or 16F628A? Writing to the internal EEPROM is a relatively slow process (4 - 8 mS see table 17.1 of data sheet) so I think writing to it should only be done at power down. As you have said advance warning of power down will be required to give enough time for the write to be carried out. Jim |
9th Sep 2011, 2:25 pm | #98 | ||||
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
Hello Mark,
Quote:
Quote:
Quote:
Regards, Dave. |
||||
9th Sep 2011, 2:32 pm | #99 | |
Hexode
Join Date: Jan 2007
Location: Welwyn Garden City, Hertfordshire, UK.
Posts: 453
|
Re: 4 Digit Up/Down Counter IC?
Hello Jeffrey
Quote:
One more post and we'll have reached the century! Regards, Dave. |
|
9th Sep 2011, 2:46 pm | #100 |
Dekatron
Join Date: Jul 2007
Location: Evesham, Worcestershire, UK.
Posts: 4,244
|
Re: 4 Digit Up/Down Counter IC?
That does look rather challenging!
I wonder if you could do something with the pulley that drives the original mechanical counter? Perhaps glue a slotted disc to it? Although there are some really good pictures in the manual, it's hard to get a sense of how much space there is when it's all assembled. Presume you'll pick up the heater winding as a power supply? Cheers, Mark |