Microcontroller via USB

Sven Klomp sven at klomp.de
Fri Feb 20 16:20:30 CET 2009


> > I could simulate a USB-RS232 converter on the ATmega. In this case, I
> > could use the usb-serial module of the kernel. Do the actual Openmoko
> > kernels ship with it?
>
> Depends on distro, but you can easily compile it yourself.
Hm, I never tried it, but I read a lot of threads talking about setting up a 
toolchain...

> > However, I only want to send few control bits. Are there some easier
> > methods?
>
> Serial is probably the easiest way to do it. Are you trying to place
> the microcontroller inside the phone case?
No, it will be an external device to control my light.

> > Is it possible to control USB from Python without any additional
> > libraries or kernel modules?
>
> I don't know if there are libusb wrappers for python. However, if your
> device acts as a serial port you can just open /dev/ttyACM0 in python
> and talk to it without having to know anything about USB.
Yes, but the implementation on the microcontroller side is a little bit more 
complicated.



More information about the devel mailing list