I’m not asking for the entire solution, I’m just asking the information about where to buy these programmable hardware brands, models etc.
I have searched many websites about the light sensor, many of them came up with information about some cheap gears which has no programmable functionality.
I need to control a light sensor so when strength of illumination reaches a certain level, it will automatically open a sunroof.
But I have no idea about both where to start this project and where to ask the question other than here.
So I am grateful if someone could come up with details of these two hardware (where to buy, types, brands).
Do you want to start from a scratch?
Then, you could buy a microcontroller, such as an Atmel AVR, in PDIP package, get a tool to program it, and build the board you need.
This is not as hard as it may sound. You could get a simple schematic on how to set up the power for the board, the rest is just controlling inputs and outputs via the uC (microcontroller) pins.
You can do programming in C++, and Atmel provides an IDE used to program their uC.
Do you want the basic board pre-made?
Then, the solution I would recommend is Arduino.
There are plenty of easy tutorials on how to set up various sensors and actuators to your Arduino board.
Doing it with C#
I’ve never done any .NET programming on uC, however I have heard of .NET Micro Framework which is supposedly just that. But you have to bear in mind that .NET is meant for desktop development, and microcontrollers (or embedded devices) are something completely different as what you’re really doing is controlling inputs and outputs.
Don’t be afraid to use C++, you probably won’t need any advanced knowledge to do what you need to do.
Edit:
Actually, scratch the previous, apparently Netduino is like Arduino for .NET. Might be exactly what you need!