LED connected to parallel port and flashes Morse Code
-
Hello everyone, Yesterday I connected an LED to my parallel port. Then, I created a program which controls it makes it flash Morse Code! Check it out on my blog: http://ashishrd.blogspot.com[^]. I hope you find it interesting. :) Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
-
Hello everyone, Yesterday I connected an LED to my parallel port. Then, I created a program which controls it makes it flash Morse Code! Check it out on my blog: http://ashishrd.blogspot.com[^]. I hope you find it interesting. :) Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
-
Hello everyone, Yesterday I connected an LED to my parallel port. Then, I created a program which controls it makes it flash Morse Code! Check it out on my blog: http://ashishrd.blogspot.com[^]. I hope you find it interesting. :) Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
Retro! BTW, your blog says: Now, I'm planning to connect relays to my parallel port. This way, I'd be able to control electrical devices inside my house by using my computer! First, you'll probably fry the parallel port trying to drive a relay off it. Second, you should never connect anything that's got 120VAC to a low voltage system, even if you think it's isolated by a relay. I'd look at the BSR modules, or whatever they're called--I know people have written programs to control devices using those, and you can use your existing house wiring to send commands to the modules. Marc
People are just notoriously impossible. --DavidCrow
There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith -
Retro! BTW, your blog says: Now, I'm planning to connect relays to my parallel port. This way, I'd be able to control electrical devices inside my house by using my computer! First, you'll probably fry the parallel port trying to drive a relay off it. Second, you should never connect anything that's got 120VAC to a low voltage system, even if you think it's isolated by a relay. I'd look at the BSR modules, or whatever they're called--I know people have written programs to control devices using those, and you can use your existing house wiring to send commands to the modules. Marc
People are just notoriously impossible. --DavidCrow
There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh SmithYeah, I also thought that could be possible. Now I'm planning to use an LDR. So, there won't be any physical contact with the power line. I'll just cello tape an LDR and LED together. This way I'll just have to control the LEDs. Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
-
Hello everyone, Yesterday I connected an LED to my parallel port. Then, I created a program which controls it makes it flash Morse Code! Check it out on my blog: http://ashishrd.blogspot.com[^]. I hope you find it interesting. :) Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
Hi Ashish What language did you use to do this? I programmed a LCD screen to display any text via the parallel port, I did this in assembler in DOS because windows XP kinda dominates the access to that port. I would like to make my LCD driver windows-compatible. Interesting thing.... I accidentally executed my assembler program with my HP Deskjet Printer plugged into the port and it actually printed the text that the LCD would have displayed, just shows how much device drivers have in common!
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann -
Yeah, I also thought that could be possible. Now I'm planning to use an LDR. So, there won't be any physical contact with the power line. I'll just cello tape an LDR and LED together. This way I'll just have to control the LEDs. Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
-
Hi Ashish What language did you use to do this? I programmed a LCD screen to display any text via the parallel port, I did this in assembler in DOS because windows XP kinda dominates the access to that port. I would like to make my LCD driver windows-compatible. Interesting thing.... I accidentally executed my assembler program with my HP Deskjet Printer plugged into the port and it actually printed the text that the LCD would have displayed, just shows how much device drivers have in common!
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. HavemannHi, I created the program in C# 2005 Express. Yeah, its a bit hard to reach the ports in Windows 2000 and XP. I used inpout32.dll for communicating with the parallel port. Check it out: http://www.logix4u.net/inpout32.htm[^] . :) Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
-
I'd love get X10. Its a bit pricey..I'll have to wait till I start earning. :laugh: Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
-
Hi Ashish What language did you use to do this? I programmed a LCD screen to display any text via the parallel port, I did this in assembler in DOS because windows XP kinda dominates the access to that port. I would like to make my LCD driver windows-compatible. Interesting thing.... I accidentally executed my assembler program with my HP Deskjet Printer plugged into the port and it actually printed the text that the LCD would have displayed, just shows how much device drivers have in common!
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. HavemannAlso check out this article: I/O Ports Uncensored Part 2 - Controlling LCDs (Liquid Crystal Displays) and VFDs (Vacuum Fluorescent Displays) with Parallel Port by Levent Saltuklaroglu: http://www.codeproject.com/csharp/cspplcds.asp[^]
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
-
Hi, I created the program in C# 2005 Express. Yeah, its a bit hard to reach the ports in Windows 2000 and XP. I used inpout32.dll for communicating with the parallel port. Check it out: http://www.logix4u.net/inpout32.htm[^] . :) Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
-
Yeah, I also thought that could be possible. Now I'm planning to use an LDR. So, there won't be any physical contact with the power line. I'll just cello tape an LDR and LED together. This way I'll just have to control the LEDs. Ashish
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]
Use an opto isolator, they are designed for just this job. Also, you can get high sensitivity ones which can drive AC mains directly, often referred to as solid state relays. There is one rule - the low voltage input is on one side and the high voltage AC output is on the other, keep the two sets of wiring physically spearated. Elaine :rose:
-
Ah X10.. I still remember the ad popup terror. X|
-- If not entertaining, write your congressman
-
Thanks! I'll try it out! BTW - great blog! It's added to my favourites!
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. HavemannThanks. I'm overwhelmed with joy. :)
Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]