afreestyle-ga:
Thank you for your Question. As requested, here is the Answer based on my
original Question Clarification post.
---------------------------------
There are several options to 'hack' this solution together. Not having
access to an EFX 546 myself to investigate further with, all I can do
is point you in the right direction.
First, National Gym Supply ( http://www.gympart.com ) advertises that
they have complete electronics repair services for the EFX 546. I
mention this in case you end up needing to buy replacement parts.
The simplest way to link use of the elliptical trainer with the status
of the PC, would be the "brute force" method:
1. Buy an uninterruptible power supply sized to give your system at
least 10 minutes of run time (including monitor), with either USB or
serial monitoring for the PC and Windows Advanced Power Management
2. Buy a power relay rated to handle the maximum in-rush and constant
current required by the UPS (120VAC side), said relay being controlled
by a 12VDC signal
3. With a bit of ingenuity, open up the EFX 546, locate the generator
circuit/assembly that allows the unit to self-power while in use,
locate the regulated low voltage side of that circuit, and tap into it
to power the relay signal.
4. In Windows Power Management, set the first alarm threshold to 90%,
along with a sound warning and a pop-up warning.
5. Set the second alarm threshold to 65 or 70%, with the action being Hibernate.
What this should give you, is a system where, when you are pumping
away on the EFX 546, the relay will allow 120VAC power to flow to the
UPS, and you can start up the computer. As long as you are pumping
away, there will be power applied to the signal side of the power
relay, keeping the 120VAC flowing to the UPS. If you stop pumping, the
generator circuit will eventually cut out, power to the relay is cut,
the relay opens, and the UPS kicks in (usually with an audible
warning). The PC receives the warning over either the USB or serial
connection to the UPS, and begins monitoring the battery power level
remaining in the UPS. It'll pop up the first alarm warning, then when
the power drops to the second alarm level, it will initiate
hibernation. Note that, at this point, the only way to continue is to
start pumping away again, and bring the computer back out of
hibernation.
For those times when you actually want to use the PC without the
elliptical, you can install a two-way switch with the power relay to
allow you to bypass the relay.
Tapping into the speed sensor will be a lot more difficult an
approach; chances are the sensor is simply an encoder wheel or a
magnetic pickup. If it's an encoder wheel, you cannot easily tap into
its output without potentially affecting the actual speed measurement
capabilities of the unit's onboard 'computer'. Same goes for the
magnetic pickup, as in both cases the speed will be measured based on
the number of electrical pulses per second are transmitted. While it
may be possible to carefully tap into the output, and feed it into a
programmable controller like a PIC chip, it's a lot of trouble and
will require a lot of trial and error. If you choose to go this way,
though, then you'll need to get a PIC chip programmer, some manuals, a
logic scope... lots of equipment, actually.
-----------------------------------
In addition to this, you wanted some guidance about where to source the two-way
switch and the power relay. You also wanted some references to PIC chips and
programming.
For the two-way switch and power relay, your best bet is your local electrical
supply store. You mentioned that your father is in the electrical field, so
chances are he is the best person to tell you where the nearest electrical supply
store is. Such stores carry parts and supplies for electricians and mechanics.
The parts you are looking for are similar to the following:
1) Double Pole, Double Throw (Center-OFF) Switch (125VAC 15A minimum)
http://www.mcgillelectrical.com/specToggle_multi.htm
Any electrical supply store should be able to sell you something that meets this
requirement. Again, the important thing is that it is a double-pole, double-throw
(center-OFF) switch rated for at least 125VAC 15A duty.
2) Single Pole, Double Throw General Purpose Relay (12VDC control, 15A minimum
for output contacts)
http://oeiwcs.omron.com/webapp/commerce/command/ExecMacro/Omron/macros/itemdisp.d
2w/report?prmenbr=316&prrfnbr=3264
Now, note that I am pointing you to a 12 VDC coil relay. I do not know what the
generator in the elliptical trainer actually generates (in voltage). You are best
advised to open up the trainer first, figure out where to tap into the DC output
of the generator assembly, then find an appropriate relay. If the generator is
using something other than 12 or 24 VDC as it's output, then the relay will be
more difficult to obtain from an electrical supply store. However, they should be
able to point you to someone else in the local area who carries parts for
electronic hobbyists, if you need something with a 3V, 6V, or 9V coil. The
challenge will be that these tend to be meant for use on a circuit board, and
will require some additional work to integrate into this control circuit.
----------------------------------
Information about PIC chips, and programming PIC chips, can best be found at the
manufacturer's website. Microchip manufactures the PIC chip, and has a faithful
following among electronic hobbyists, engineering students, and the folks who
like to hack into Playstations and other gaming consoles. The PIC chip is an
extremely versatile, extremely basic programmable controller. If you have any
interest at all in taking up electronics as a hobby, the PIC chip is a good place
to start.
Microchip Website:
http://www.microchip.com/1010/index.htm
An Excellent article:
http://www.seattlerobotics.org/encoder/may97/picchip.html
Some Fan sites:
http://www.topology.org/hard/pic.html
Programmer retailer:
http://www.didya.com/ChipProgrammers.htm
----------------------------------
I hope you found this information useful, and good luck with this project!
Regards,
aht-ga
Google Answers Researcher |