USB and microcontroller on Linux

Pyro Project Ideas/Requests
The Q
Newbie Pyro
Posts: 24
Joined: Mon Jan 21, 2008 1:08 pm

USB and microcontroller on Linux

Postby The Q » Thu May 01, 2008 4:35 pm

I was wondering if there's any way to interface a microcontroller to a PC that's running Linux (I say linux because I understand it's much much easier)

As a proof of concept I was thinking of sending a number to the device and having the PIC receive the number and flash a LED the same number of times.

Maybe if this works we'll publish it on the site

ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Postby ThePyroElectro » Mon May 05, 2008 3:08 am

Hey Q,

I'm planning to do something similar to this except in reverse where the device (a PIC) sends usb communication signals to a standard windows desktop computer. :shock:

Making a windows program to communicate with a PIC shouldn't be too terrible because the 18F4550 series of PICs has USB 1.1/2.0 support, however I haven't looked too far into it yet. :D

The Q
Newbie Pyro
Posts: 24
Joined: Mon Jan 21, 2008 1:08 pm

Postby The Q » Tue May 06, 2008 1:10 pm

Yes I was thinking Linux because I figured it'd be easier. USB on windows needs drivers while on Linux your program only needs to read/write to a file. All this I know from what others have told me because I have no idea how to do it.

The Q
Newbie Pyro
Posts: 24
Joined: Mon Jan 21, 2008 1:08 pm

Postby The Q » Tue May 06, 2008 1:29 pm

http://www.beyondlogic.org/usbnutshell/ ... tshell.pdf

Hmmm... I was under the impression that if I used Linux I could use the USB channels at any speed I want simply pulsing the pins on the Microcontroller or using the standard serial port.

It seems I was mistaken and you really need a USB PIC chip for this to work without adding an USB to serial cable between them

ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Postby ThePyroElectro » Tue May 13, 2008 1:17 am

Sounds about right to me.

The USB PICs are pretty nice little devices though. :D

Cristina
Newbie Pyro
Posts: 4
Joined: Wed Jun 04, 2008 3:01 pm

USB and microcontroller on Linux

Postby Cristina » Wed Jun 04, 2008 3:07 pm

i am very interested in your subject,thanks very much

nite
Newbie Pyro
Posts: 10
Joined: Wed May 21, 2008 7:07 pm

Postby nite » Fri Jun 06, 2008 9:48 pm

very interesting topic


Return to “Request-a-Project”

Who is online

Users browsing this forum: No registered users and 94 guests