USB IO PICs for Simple Computer Control: Tips and Advice

  • Thread starter Thread starter Sathhin
  • Start date Start date
  • Tags Tags
    Usb
Click For Summary

Discussion Overview

The discussion revolves around using USB PICs for simple input/output control from a computer, particularly in the context of electronic projects and interfacing. Participants share resources, experiences, and advice on programming and hardware considerations related to USB interfacing with microcontrollers.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant seeks guidance on using USB PICs for control applications and expresses a desire for reading material on the subject.
  • Another participant provides a link to a resource for building a PIC18F USB device.
  • A different participant shares a link to Microchip's website, suggesting it as a useful resource for USB interfacing.
  • One contributor mentions their experience with Cypress microcontrollers and warns about the limitations of using solderless breadboards for USB applications due to high-frequency requirements.
  • Another participant suggests that low-speed USB can be managed on a breadboard but cautions against higher speeds, recommending the FTDI UM232R for quick USB solutions.
  • There is mention of V-USB firmware for Atmel AVR microcontrollers, which allows for low-speed USB emulation, relevant for hobbyist projects.

Areas of Agreement / Disagreement

Participants generally agree on the challenges of using breadboards for USB applications, particularly at higher speeds. However, there are differing opinions on the feasibility of using breadboards for low-speed USB, with some suggesting it is manageable while others express caution.

Contextual Notes

Participants express varying levels of familiarity with programming and electronic design, indicating a range of expertise. There are assumptions about the reader's background knowledge in C++ and electronic design, as well as the specific requirements for USB interfacing.

Who May Find This Useful

This discussion may be useful for hobbyists, engineering students, and individuals interested in microcontroller projects involving USB interfacing and control applications.

Sathhin
Messages
1
Reaction score
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
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2651&param=en534491
 
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.
 
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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
11
Views
2K
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
12
Views
3K
Replies
2
Views
1K