Are there microprocessors that support Linux or Windows for controlling lights?

  • Thread starter Thread starter Oblio
  • Start date Start date
  • Tags Tags
    Computers
Click For Summary
SUMMARY

This discussion focuses on the feasibility of using microcontrollers, specifically PICs, to control lights while running Linux or Windows. It highlights that traditional PICs do not support these operating systems, but newer Atmel microcontrollers are emerging with support for uCLinux and Windows Embedded. For controlling an LED, the simplest method involves using a parallel port connection with a basic C or Visual Basic program. The conversation also notes the challenges of direct port access in Windows, suggesting alternative software solutions for overcoming this limitation.

PREREQUISITES
  • Understanding of microcontroller architecture, specifically PICs
  • Familiarity with parallel port communication
  • Basic programming skills in C or Visual Basic
  • Knowledge of Linux and Windows operating systems
NEXT STEPS
  • Research Atmel microcontrollers with uCLinux support
  • Explore programming techniques for parallel port communication
  • Investigate software solutions for direct port access in Windows
  • Learn about porting applications from Linux/Windows to microcontroller environments
USEFUL FOR

Electronics hobbyists, embedded systems developers, and anyone interested in integrating microcontrollers with Linux or Windows for light control applications.

Oblio
Messages
398
Reaction score
0
Hey all,

I have a few questions concerning computers for a project I'm working on... I know a significant amount of electronics but not so much on the computer end...
Anyways,

say I wanted the simple application of controling a light (an LED for example) with my computer - what's the easiest way to wire-in or attach the light?

Something else that I was wondering about, are there PICs (or something similar) that allow you to put Linux (or heaven forbid... Windows) on a microcontroller?
The reason being, if you wanted to use software on the microcontroller that already existed on one of the two platforms.

Thanks a lot!
 
Computer science news on Phys.org
Windows for one does not allow direct port access.
You would need to write a device driver (not simple) or use DOS.
However, you might be able to hook a transistor and LED to the RTS line of a serial port.
The open/close commands will toggle the line.
Don't know if it can drive an LED directly, maybe.

Don't know of any PICs the have an OS, let alone Windoze or Linux.
Some PICs have C compilers. You could port if there is equivalent library support.
 
The easiest way to connect a "LED" to a computer is through the parallel port, simply connect it between any of the Ground pins and Data/Control pins and a simple C/Visual Basic program will do. And although NoTime is right in that Windows doesn't give direct access to user-level programs there are a couple of programs out-there that will override this and give you direct port access.

A couple a years ago the answer of your second question would be no, but Atmel has been rolling out some Windows-Embedded/Linux-supported MCU's, I believe most support uCLinux.

One last comment on your last sentence is that even though the MCU will be running Windows/Linux, it'll probably not even come close to running any Linux/Windows App working on your regular X86-Based machine, unless of-course your considering doing some serious porting jobs (if the application is open source).
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 123 ·
5
Replies
123
Views
20K
Replies
3
Views
6K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 39 ·
2
Replies
39
Views
6K
Replies
11
Views
2K
  • · Replies 12 ·
Replies
12
Views
6K