Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


tcpdump

311 posts

Ultimate Geek


#99778 27-Mar-2012 09:56
Send private message

Hi,

I have a home project that I currently have it running on the parallel port.
I have two buttons (for input) that send their on/off status on the parallel port (paper out and busy if I recall correctly, it doesn't really matter) and I have some scripts (mainly call parashell) that will send 5V on other pins of the parallel port if some conditions apply.

As the parallel port will no longer be an option I'd like to get a simple USB controller that can do these tasks. It must have linux drivers.
The idea will be the same. If a button (or two) will be pressed, send a 5V on two wires.
the 5V is not mandatory as the 5V is actually triggering a relay that will close a circuit (effectively pressing a third button).

Please let me know if I haven't described the scenario properly or if you don't fully understand what I'm trying to achieve.
The real life application is quite simple. I have an on/off microswitch attached to the garage door and a PIR in the garage. If the microswitch is open (the garage door is open) too long, send an email: "Hey, you forgot to close the garage door!".
A different scenario is: if the microswitch is closed (garage door closed) and the PIR detects movement then send an email: "Hey, the cat sneaked in the garage again and it's now trapped inside!".
The 5V (output) is to trigger a relay that will open or close the garage door remotely. It can be either 5V triggering a relay or just short-circuiting two wires to close the circuit.

I can find my way around with the soldering iron but I only have basic electronic knowledge. Is there something readily available or something that can be assembled on jaycar or mindkits?

Many thanks in advance.

Create new topic
cyril7
9058 posts

Uber Geek

ID Verified
Trusted
Subscriber

  #600612 27-Mar-2012 10:54
Send private message

Hi, i have designed in FTDI devices to a few projects, I think the FT245R FiFo is what you need.

http://www.ftdichip.com/Products/ICs/FT245R.htm

Cheers
Cyril



tcpdump

311 posts

Ultimate Geek


  #600620 27-Mar-2012 11:09
Send private message

Hi Cyril,

It does indeed look like it's exactly what I need.
It seems that mindkits can bring it already built: http://www.mindkits.co.nz/store/prototyping/breakout-board-for-ft245rl-usb-to-fifo
which saves me of all the soldering and connectors.

Great stuff, thank you.


Niel
3267 posts

Uber Geek

Trusted

  #600788 27-Mar-2012 15:44
Send private message

FTDI also makes a USB cable with the commonly used USB to TTL level serial bridge inside the USB connector and the other end is just a cut wire. The FTDI chip can be reconfigured (and inverted if needed) as digital IO using a free FTDI utility, or you can use the flow control lines as is.




You can never have enough Volvos!




tcpdump

311 posts

Ultimate Geek


  #601092 28-Mar-2012 09:14
Send private message

Yes, I found the cable in a tutorial: http://hackaday.com/2009/09/22/introduction-to-ftdi-bitbang-mode/
And I ordered one :)

Cheers

Niel
3267 posts

Uber Geek

Trusted

  #601417 28-Mar-2012 17:13
Send private message

Be aware with the FTDI TTL converters there are 5V versions and 3.3V versions. Not an issue, just be aware of it. The 5V version can take 3.3V input signals, but the 3.3V version cannot take 5V input signals.




You can never have enough Volvos!


tcpdump

311 posts

Ultimate Geek


  #601684 29-Mar-2012 08:21
Send private message

Yes, I got the 5V model. Any idea if I can use as an imput a normal on/off switch so I can read from software if the switch is on or off?

Thanks.

Niel
3267 posts

Uber Geek

Trusted

  #602339 30-Mar-2012 09:34
Send private message

tcpdump: Yes, I got the 5V model. Any idea if I can use as an imput a normal on/off switch so I can read from software if the switch is on or off?

Thanks.


Yes, you can.  But you will possibly need a pull-up resistor.  Either someone will reply, of if I remember I'll have a look at it over the weekend.




You can never have enough Volvos!


 
 
 

Trade NZ and US shares and funds with Sharesies (affiliate link).
tcpdump

311 posts

Ultimate Geek


  #602341 30-Mar-2012 09:36
Send private message

Great, thanks for that.

As I mentioned before, I'm not afraid to use the soldering iron but my electronics knowledge is very basic.

Thanks again.

Create new topic





News and reviews »

Gen Threat Report Reveals Rise in Crypto, Sextortion and Tech Support Scams
Posted 7-Aug-2025 13:09


Logitech G and McLaren Racing Sign New, Expanded Multi-Year Partnership
Posted 7-Aug-2025 13:00


A Third of New Zealanders Fall for Online Scams Says Trend Micro
Posted 7-Aug-2025 12:43


OPPO Releases Its Most Stylish and Compact Smartwatch Yet, the Watch X2 Mini.
Posted 7-Aug-2025 12:37


Epson Launches New High-End EH-LS9000B Home Theatre Laser Projector
Posted 7-Aug-2025 12:34


Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.