Getting TTL Signal from USB Port

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Hardware DIY / Hardware Mods
Author Message
Blank
DD-WRT Novice


Joined: 27 Jun 2017
Posts: 2

PostPosted: Tue Jun 27, 2017 16:03    Post subject: Getting TTL Signal from USB Port Reply with quote
Hello,
I hope this is the right subforum for my question. I have the following problem:
I want to get voltage pulses out of my USB Hub to trigger a Switch (Schmitt Trigger functionality). Therefore I want to use a USB to TTL converter (http://www.ftdichip.com/Products/Cables/USBRS232.htm). Is it possible to get controlled voltage pulses out of my TTL cable? I do not need to send "data", its only about triggering the Schmitt trigger for some seconds to certain times. If yes, how do I control my voltage pulses?

Thanks for reading
Sponsor
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Wed Jun 28, 2017 10:48    Post subject: Reply with quote
So you want to use that on your router or your PC? I don't think the router's USB is good for such applications. Any way, I think the Hardware DIY/hardware mods forum maybe more suitable for this type of question so I will move this thread over there.
Blank
DD-WRT Novice


Joined: 27 Jun 2017
Posts: 2

PostPosted: Wed Jun 28, 2017 12:09    Post subject: Reply with quote
Thanks for moving the thread.
I want to use my PC to control the Switch. The Switch is actually part of a particle accelerator at my university.
d0ug
DD-WRT Guru


Joined: 31 Jul 2015
Posts: 759

PostPosted: Wed Jun 28, 2017 20:50    Post subject: Reply with quote
Blank wrote:
Thanks for moving the thread.
I want to use my PC to control the Switch. The Switch is actually part of a particle accelerator at my university.


I dont think you are going to be able to do this reliably with just a usb to serial bridge.

A better bet might be an arduino. has a usb to serial bridge built in and then a microcontroller to actually do something with the serial data sent over.

You could write a simple bit of code to toggle one of the I/O pins on the arduino on and off depending on a value sent over the serial port.

This should be a good starting point. The code example on that page should do exactly what you are trying to do

http://www.chrisbrand.co.za/2013/06/30/arduino-serial-port/
alimughal
DD-WRT Novice


Joined: 14 Nov 2017
Posts: 1

PostPosted: Tue Nov 14, 2017 19:08    Post subject: Reply with quote
nice information tnaku
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Hardware DIY / Hardware Mods All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum