USB IO PICs for Simple Computer Control: Tips and Advice

  • Thread starter Sathhin
  • Start date
  • Tags
    Usb
In summary, the conversation is about using USB PICs as IO devices and the resources available for learning about it. The person speaking shares their experience with designing controllers with USB interfaces and suggests starting with the links provided. They also mention the use of FTDI's UM232R and V-USB for lower speed USB connections.
  • #1
Sathhin
1
0
Hey all,
I'd like to apologise in advance if my post/question seems overly ignorant in any way, also this is sort of an "Hello Forum" and questions combined. I've not used a forum before for help with electronic projects :) I've been looking at basic relay/switching control from a computer so that eventually I can build up to using it in conjunction with RC circuits or what not to do all sorts of fun things. However the most material I've come across is C++ interfacing with the old serial ports.

I have a fair working understanding of both C++ & Electronic design but I won't claim to be anywhere near knowledgeable on either, I'm still studying engineering at college...

Anyway, on to my question. Is there any material related to using USB PICs as simple IO devices? I don't really want to seem to be asking for a hand out, just interested if there is any reading material available? As I'll gladly get my head in a book. I have no idea where to begin with regards to programming a PIC, especially with USB interfacing, since it's all ASM as I understand? Just wondered if anyone had any advice on where I should go with this?

Cheers in advance for any info you can provide and also, sorry for the quality of this first post :)
-Sathhing
 
Engineering news on Phys.org
  • #3
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2651&param=en534491
 
  • #4
I used to design controller with USB interface. I used micro controllers from Cypress. At the time, they had a whole family of chips based on Intel 8051 micro controller. Go on their website and see what they have today.

BTW, I don't think you can use solderless breadboard for USB like the picture in one of the link. USB II is 400MHz! You have to have balance differential 90ohm lines for that. USB is RF in every sense. Those plug in wire bread board is no good for any significant frequency.
 
  • #5
You can probably do low speed USB (<1.5 Mbps) on a breadboard without too much difficulty, but anything higher would probably be difficult.

For quick and dirty (and reusable) USB, you can get FTDI's UM232R (about $25 from most vendors):
http://www.ftdichip.com/Products/Modules/DevelopmentModules.htm#UM232R

They're based around the FTDI FT232R family of chips (virtual com port and lower-level drivers are available for Windows, Mac, and Linux), which are the same ones used in most of the good USB-RS232 adapters (which also use the aforementioned drivers). Pretty good throughput (supposedly up to 3+ Mbps) and you can use standard UART handling and programming (on both the PC and micro side).

There's also an emulated (but low-speed, i.e. 1.5 Mbps) USB firmware for the Atmel AVR--V-USB. I don't know much about it, but I believe it's the same one used in more recent variants of some Arduinos (I believe older ones used the aforementioned FTDI).

Not super fast, but good enough for hobbyist use in an era where serial ports are going extinct.
 

1. What is a USB IO PIC?

A USB IO PIC is a microcontroller that allows for communication between a USB port and other external devices. It can be programmed to send and receive data, making it useful for various applications such as robotics, automation, and data logging.

2. How does a USB IO PIC work?

A USB IO PIC contains a microcontroller with built-in USB functionality, which enables it to communicate with a computer through a USB port. It also has input/output pins that can be configured to interact with other electronic devices.

3. What are the benefits of using a USB IO PIC?

One of the main benefits of using a USB IO PIC is its versatility and ease of use. It can be easily programmed and connected to a computer, making it ideal for prototyping and testing electronic projects. It also eliminates the need for additional hardware, such as serial adapters, for communication with a computer.

4. What are some common applications of USB IO PICs?

USB IO PICs are commonly used in projects that require communication between a computer and external devices. This includes robotics, home automation, data logging, and industrial control. They are also frequently used in prototyping and educational projects.

5. How do I choose the right USB IO PIC for my project?

When choosing a USB IO PIC, consider the specific requirements of your project, such as the number of input/output pins needed, communication speed, and programming language. Also, make sure to check compatibility with your computer's operating system. It may be helpful to consult with a specialist or refer to online resources for guidance.

Similar threads

  • Programming and Computer Science
Replies
2
Views
862
  • Electrical Engineering
Replies
2
Views
1K
  • Programming and Computer Science
Replies
11
Views
877
Replies
6
Views
1K
Replies
1
Views
2K
  • Computing and Technology
2
Replies
36
Views
3K
Replies
12
Views
2K
Replies
10
Views
3K
  • General Discussion
Replies
5
Views
1K
  • Electrical Engineering
Replies
1
Views
2K
Back
Top