USB Circuit Question

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions USB Circuit Question
# 1  
Old 01-26-2011
USB Circuit Question

My problem is I need to control a 7 segment LED circuit (currently on a breadboard, eventually on a PCB). The only option I have from my PC is through USB. The circuit I have built on a breadboard uses 7 segment LED's and 4206 decade counters. I have cut a USB cable in half, and am using the positive and negative leads to power the circuit. I have made multiple attemps at controlling the circuit through the D+ and D- leads, but have failed so far. Basically all I need to do is control the clock input to the 4206 decade counter.


I have made multiple attemps at controlling the circuit through the D+ and D- leads, but have failed so far.

Does anybody know if this is even possible using the D+ and D- leads from the USB? I will eventually attempt to control it through bash script, but don't want to waste my time trying to develop a driver for this circuit if I will not be able to control it.

University of Alabama
Kenneth Ricks
ECE 494 - Capstone Design II (URL's not allowed due to my post count)
# 2  
Old 01-26-2011
Perhaps this article may help ?
# 3  
Old 01-26-2011
No, this won't work. You can't just hook up raw USB signals up to a TTL-level chip and expect it to do anything meaningful. Even if the signals were powerful and noise-free enough for it to do anything, USB's got a very complicated protocol to the point it expects you to tell it how much power your device will consume before it's willing to give you the time of day. You'd better just get an adapter of some sort if you want to make USB controlled leds a project and not a career.

I've used the DLP-IO8 module before and reccomend it. It's pretty simple to use and flexible, plus works with Linux and Windows(uses the FTDI USB-to-serial chip). It acts like a serial port when plugged in. Set it to 115200 baud no parity 8 bits 1 stop bit. Write an ascii '1' to the device and it sets pin one high, write an ascii 'Q' to it and it sets pin 1 low, etc, etc. Other functions include analog input and digital temperature-sensor reading. It provides convenient power hookups. And it's shockingly cheap for what it does. It should control your LEDs fine.

Last edited by Corona688; 01-26-2011 at 07:07 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Answers to Frequently Asked Questions

Running Turbo-cad and circuit wizard programmes.

Hi. i am new to Linux. i have a Turbo-cad and circuit wizard programme on CD that I want to install and run. I keep getting the message I do not have an auto-run programme. Do I need to install specific drivers for this? What programme do I need? (1 Reply)
Discussion started by: Alfred Kruger
1 Replies

2. UNIX and Linux Applications

UNIX Circuit Design System

Hi all. In some articles I have read about a "UNIX Circuit Design System", which was written originally in some version of Research UNIX by Sandy Fraser. Here is a quote from the article "A Research UNIX Reader: Annotated Excerpts from the Programmer's Manual", by Douglas McIlroy: Even... (1 Reply)
Discussion started by: mghis
1 Replies

3. Shell Programming and Scripting

Short circuit if

Hello everyone, just wondering if this type of if condition will execute properly. Suppose I have a script with two functions in it called abc and def: is this code valid, or is there a better way to short circuit the if statement? #! /bin/ksh93 abc(){ statement 1 using $1 statement 2... (4 Replies)
Discussion started by: gio001
4 Replies

4. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

5. UNIX for Advanced & Expert Users

protocol failure in circuit setup

Receiving the above error from an application. I narrowed it down to a problem with rsh. If the rsh command is issued too rapidly it fails intermittently. Try this script on your linux box... #!/bin/sh -f for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 do echo $i rsh... (1 Reply)
Discussion started by: kevinl33
1 Replies

6. UNIX for Dummies Questions & Answers

Where is my USB key?

Hi everybody, When I plug a USB key to my debian, where can I access the files? I don't have any user interface, what commands do I have to run to find the files in my USB key? Thanks for your help. Santiago (6 Replies)
Discussion started by: chebarbudo
6 Replies

7. Cybersecurity

Usb??????????????

it's true that USB port has no security?? (0 Replies)
Discussion started by: lolo_vang
0 Replies
Login or Register to Ask a Question