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.




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
6958 posts

Uber Geek

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



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.


 
 
 
 


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!




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

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!




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.

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!


 
 
 
 




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



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29


Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24


Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59


Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07


Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02


Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41


Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36


2degrees Reaches Milestone of 100,000 Broadband Customers
Posted 1-Oct-2019 09:17


Nokia 1 Plus available in New Zealand from 2nd October
Posted 30-Sep-2019 17:46


Ola integrates Apple Pay as payment method in New Zealand
Posted 25-Sep-2019 09:51


Facebook Portal to land in New Zealand
Posted 19-Sep-2019 18:35


Amazon Studios announces New Zealand as location for its upcoming series based on The Lord of the Rings
Posted 18-Sep-2019 17:24


The Warehouse chooses Elasticsearch service
Posted 18-Sep-2019 13:55


Voyager upgrades core network to 100Gbit
Posted 18-Sep-2019 13:52


Streaming service Acorn TV launches in New Zealand with selection with British shows
Posted 18-Sep-2019 08:55



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.