defcon8 said:
Hello. Just for an experiment, I want to connect a light bulb to a serial
port and make it turn on and off with intervals and I want to use the
pyserial library for this. Could anyone give me some suggestions please?
Transitions on the serial port are fast enough, even at 110 Baud
(assuming your port will even go down that low), that the persistence of
a light bulb's filament will make it appear that the bulb either stays
on continuously or barely flickers at all.
If you're serious about doing this, it's much easier to just plug
an RS232 breakout box (with LEDs, of course) onto the serial port,
connect pin 2 to pin 3, cut the port down to its lowest available speed,
and fire away with a Fox or similar test pattern.
I will add that I don't really see the point of doing this
experiment, outside of illustrating that there is some sort of activity
going on. What, exactly, are you trying to demonstrate or accomplish?
Happy tweaking in any case...
--
Dr. Anton T. Squeegee, Director, Dutch Surrealist Plumbing Institute.
(Known to some as Bruce Lane, ARS KC7GR,
kyrrin (a/t) bluefeathertech[d=o=t]calm --
www.bluefeathertech.com
"If Salvador Dali had owned a computer, would it have been equipped
with surreal ports?"