3
1
How to make a computer (in particular, my laptop (Acer Extensa 5220)) to perform some mechanical movements without buying anything >$5, soldering things inside computer or creating big sophisticated circuits?
Traditionally CD-ROM tray is used to make computer do some movement IRL by, for example, SSH command, but in laptop tray is one-shot (unless manually reloaded) and also not very comfortable [mis]usage.
Some assistance circuits can be in use too, but not complex. For example, there is a little motor that can work on USB power.
Devices in my computer:
- DVD-ROM tray: one-time push.
- USB power: continuous power to the motor or LEDs or relay that turns on something powerful.
- Audio card. 3 outputs (
modprobe alsa model=testcan set Mic and Line-in as additional output). One controllable DC output (microphone, 3V, 1+1 mA, can also modulate external DC which is applied to the port (with clicking side effects to laptop speakers) /* Poor soundcard, it is still working. */) that can power up LED and some electronic (may be even mechanic?) relay. Also with sophisticated additional circuiting can control a lot of devices with a good precision. Both input and output support. Probably the most useful object in computer for radio ham. - Modem. Don't know about this much, it doesn't work because of
hsfmodemcrashes kernel if memory is >= 1GB. May be it's "pick up" and "hang up" can turn on and off power taken from USB port? - Video card. VGA port? S-Video port? Can them be useful?
- Backlight. Tunable, but probably unuseful.
- ExpressCard (or some) slot, 4 pin Firewire. Nothing interesting for the task probably (is it?).
- AC adapter and battery. Probably nothing programmable here. /* My AC adapter already have additional jacks to connect extra devics */
- Keyboard. No use.
- Touchpad. Good sensor (
synclient -m 1), but no output. - Various LEDs inside laptop. Probably too weak and requires soldering.
- Fans inside laptop. Poor control over them, requires soldering and dangerous to tinker.
- HDD (internal and external) that can be spin down and up (
hdparm -Y,cat /dev/ubb). But connecting anything serially with it's power line makes HDD underpowered... And too complex. - Ethernet port. Can weakly blink up a LED in disconnected operation (between green and white-green wires), can be conrolled
ifconfig eth1 {up,down}. Simple, but limited usage - power is too weak. - Modulating the power consumption of laptop itself. Probably nothing good here.
Is something are missed? Any ideas how to use described components? Any other ideas?
May be there are easily available /* in developing countries */ cheap devices like "enhanced multimeters" that are controllable from computer and can provide configurable output and measure current and other things? Things to aid pushing many physical buttons with computer. Isn't this a simple idea and implementation and a lot of use in good hands?
P.S. Ability to turn on and off the power of USB ports is almost what's needed. /* In my laptop USB port can give more than 1A for several seconds without triggering short-circuit state and can be used to handle rather powerful devices */. The only way I imagine to control USB is setting up RTC to wakealarm and turning off computer (not to suspend-to-ram). But this is slow and interferes with normal computer activity.
What are you trying to accomplish? – Stephen Jennings – 2010-05-19T02:40:05.377
@Stephen Jennings No particular task now. One example: charging 12 serially connected AA NiHM batteries using laptop's power adapter. Current is a bit too much to charge them safely, so I need something to connect and disconnect charger periodically and finally go to something like "1 second connected 9 seconds disconnected" mode. It will be DiY dumb NiHM charger. A relay that is controlled from USB or audio would be fine for this. Actually there can be many situations where you need to do something many times or by timer or remotely and don't want to do it manually. – Vi. – 2010-05-19T16:08:14.997
Wait, serially connected? Or do you mean in 6 parallel sets of 2 in series? – Ignacio Vazquez-Abrams – 2010-05-20T01:01:06.227
@Ignacio Vazquez-Abrams No, I use 16 AA NiMH batteries to power my laptop (internal battery is degraded to the half of capacity - more than 2 years of work). But to charge all that pack quickly I need to reduce number of batteries in that pack (and charge the remaining somewhere else (in normal charger)). Such battery pack handles about additional 1.5 hours of laptop function. – Vi. – 2010-05-20T06:36:38.630
12 AAs in series need about 15V of electromotive force to charge. USB only provides 5.2V. Charging them in series is going to present a challenge without a step-up DC-DC converter. – Ignacio Vazquez-Abrams – 2010-05-20T07:46:40.477
@Ignacio Vazquez-Abrams I charge them using laptop AC. It handles laptop load + laptop battery charging + my battery pack (16-4=12) charging well. But the current is too much. So I need trying to charge 13-15 batteries (measure current) or set up some thing that will switch on and off that "charger". USB-powered mechanical relay whould be fine for this. but I don't have a USB hub to control USB power. Now looking for solid state relay that will work for 3V @ 2 mA. This power is usually to small to conrol them. – Vi. – 2010-05-21T00:41:18.647
Are you trying to scare a cat that you suspect is napping on your PC? – medina – 2010-07-24T05:12:32.140
@medina, No. I'm just trying "poor-man's robotics". – Vi. – 2010-07-24T11:01:22.447