Posted By: Joiseystud | Mar 19th @ 4:04 AM
page 1 of 1
Comments: 14 | Views: 810
I would like to program some very cheap small hardware with relay outputs (PLC style) in c#.  Anyone know of a simple solution to this?  It would be nice to have a resource to hardware that is just waiting for a .Net developer to put their programming in.  Thanks in advance.
Maddus Mattus
Maddus Mattus
Do, or do not. There is no try. - Yoda
Any Windows Mobile device can do that.

They all run a compact version of the .Net framework.
Cupiditas
Cupiditas
Chris Hawkins

Sounds like you'd be interested in the Micro Framework.

actually .NET Micro Framework is a very bad solution to most of the stuff, very bad. If you want small and cheap parts, Atmel AVR is a way better device than any .NET MF chips pretty much in every way. Sure it sounds like fun, but the boards are too general when you need something very specific, it would be very stupid to control a motor using a board that eats lots of W's and have FAT support which you don't need, .NET Micro Framework has no place in the embedded world, not until it will target devices with 1K of program space and 8K of RAM, that means they need to make a compiler that outputs micro code directly.

as for the PLC relay... wouldn't a thyristor be a better solution?
Couldn't we just use better hardware instead? Sure .Net uses more resources, but, you get a lot more flexibility. I would rather spend 10 bucks more on the hardware to make the hardware more flexible to deal with less sepcific stuff.
evildictaitor
evildictaitor
if( !succeed( try() ) ) { while(true) try(); }
It's not just more expensive - it's also more power hungry, which makes it more expensive to run, and if it runs off battery it will have a lower life. The .NET micro-framework really isn't very good. If you want that kind of flexibility FPGAs are still substantially better.
figuerres
figuerres
???
some things to look at:

http://www.phidgets.com/ -- USB based stuff you can get that you can use with a pc and the .net framework.
example:
PhidgetInterfaceKit 8/8/8 w/6 Port Hub cost is $125.00 CAD -- having a problem getting the page to do USD prices.

www.cubloc.com  -- they have some non .net hardware you can hit from a version of basic they use
or they have some CE devices with touch screens.
why would you want to use that crap? you can make USB based stuff with a budged under 1$, of course excluding the development tools
You are using the wrong tool for the job! Again, if you are looking for cheap parts, and by cheap I mean 1 - 5$ range, very low power consumption, the best language you'll get is C, to program the microcontroller. From the PC side you can interface with it in any language you want, in any way you want: USB, RF whatever. If you are going to the .NET Micro Framework way (which btw != .NET Framework) you'll end with a ARM processor at best, which if I'm not mistaken drains a lot of power and is 16 or 32 bit, a lot of processing power you don't need, and the chip is pretty big also. If you need to control some motors and use some sensors, I'll go with a 8-bit micro, but is your choice in the end...

> If you want that kind of flexibility FPGAs are still substantially better.

That's a bit too much Smiley
Maddus Mattus
Maddus Mattus
Do, or do not. There is no try. - Yoda

He wants to write in c#

Money and power consumption, are not part of the scope Smiley

Dodo
Dodo
I'm your creativity creator™ :)
Money has to be part of the scope in some way. Otherwise he could just hire someone solving the problem, or if it is for a hobby project, hire someone to make an interface compiler for C# (a total waste by the way) Smiley
figuerres
figuerres
???
WOW....
crap you say?

and what can you make for less than a buck??

show us something you have made please?
As has been mentioned already C# is not the best thing to use for a cheap project as you requested.

Could I suggest the PIC Microcontroller from Microchip. You can get free (Lite) C compilers. You'll pick up C quickly if you know C#. Microchip do little demo boards which have a microcontroller and prototype area on them. Maybe something like a PicKit will do.

Again, I know its not a C# suggestion.

I use these devices for little projects myself. Almost everything on one chip. Useful little chips.

Andy
page 1 of 1
Comments: 14 | Views: 810
Microsoft Communities