ULN2803A have onboard diodes.
Another thing that would be really nice would be an ISCP header and access to the UART.
Yes i agree make a win32 DLL API an we will be happy. If you give source or at least ive some info on the USB comm protocol, i would be willing to help with this.
some GPIO or at the very least Digital ins are essential. You said you have all of PORTA and PORTC so why not take advantage of it. How much room do you have on the PCB? Can you fit optoisolators? Can you at the very least fit some screw in terminals or pin headers?
There are making PICs with all sorts of spiffy peripherals these days. I like that chip
can this be used just to turn things on and off? like control aux lights door locks etc. etc.
Yes. That's basically all this is designed for....turning electronic devices on and off.
- Not done but getting there (summer courses, work, etc)
- Unlimited # of buttons (actually only the first 1000 will do anything when clicked ) configured from a simple to read and edit XML file
- You pick location for all buttons and image and which relay(s) it activates
- Button types - On while pushed, Timed on, Toggle
- App does not bound check (for now) - if you really want you can put 2 buttons on each other and whichever was on top will do it's job.
- Screenshot below is horrible but it was my results of learning all this - the CObArray of my button class was what took so long...
- No expected done date - I promise it won't be all that long :P
Update on the software to control the relays - The buttons are dynamically created as they are read from the simple XML config file.
The XML file basically defines the x,y,width,height,style (push/time/toggle),what relay(s) it controls,normal img,active image.
This way each button can have a different size, each can control multiple relays, etc. My next goal now that I've got the buttons working is to allow for text on the buttons (of course color/size/font/etc defined) so you don't have to make 2 images for each button (unless you want to use pictures instead of text then it's perfect as-is :-P)
I've attached a screenshot of the "GUI Test" - Don't worry the final thing will actually look good
Is there the possibility of a VB port for this? I'd love to help if i could, but I wouldn't even know where to start
Oh, VB isn't that bad. It's really pretty quick to develop something and runs quite fast. The only problem is finding components to do what you need. So for something like this all you need is a DLL unless you can get to the SetupDi API or find the USB pipes in the registry. Uh, that's hard to explain. Here's some test code I've been using with the 18F2455 (hidsdc.zip). hidsdc.h just finds and opens it like a file and writes to it. Just ignore the whole thread and reading, and it will look easier. If its' a non-HID device, I think it requires a driver, but Microchip probably provides that and an API for it. I'm still a mega newb at this PIC stuff, so I don't know a whole lot yet.
Don't expect a VB port - I'm not learning a language that I'll never use again. The relay controls uses Microchip's own USB driver and sample code and DLL. Once I finish this I'll just let ya know what commands to send using their code and that's basically all you need to do to make your own controller software for it (but again that's whats taking this so long to make - I'm trying to make sure that the software that comes with it is so capable and easily customizible that you won't have to worry about it.)
Well, a DLL should work too. I think in VB, all you need to do is know how to prototype the functions and link with the .lib file just like in C. I just prefer bypassing the driver install part.