Small One-Channel C...
 
Notifications
Clear all

Small One-Channel Controller

7 Posts
4 Users
0 Reactions
3,145 Views
Posts: 6728
Topic starter
(@p-short)
Illustrious Member
Joined: 19 years ago
[#6732]

Here is a little board that I'm working on that might be nifty for certain applications. It is a 0.6" x 0.6" one-channel controller based on a PIC10F202 and a 512K serial EEPROM. It was inspired, in part, by the discussion on controlling the VMUSIC2 music player and by a discussion on servos over on the hauntforum.com Halloween prop site.

In one configuration it can dim one light (one SSR). The serial data input comes in through pin 1 on J1 and the zero-crossing comes in on pin 5 of J1. The output goes out on pins 1 and 2 of J2 to the input pins of a MOC3023 or similar. The serial EEPROM can hold a pre-programmed light sequence, so that you can have a standalone, distributed show if you wish (although the show start should be triggered by J1-1). The PIC can be programmed by J1, which has the same pinout as the PicKit2. The serial EEPROM can also be programmed through J1, with the EEPROM program mode selected by shorting J2-1 to J2-3.

The device can also be used as a servo controller, as a VMUSIC2 controller, and as a trigger source (either ON/OFF or analog, as there are pin-compatible PICs with internal A/D converters). One given board may not be able to do everything, but the hardware differences are minimal, with most of the customization in either the PIC program or the EEPROM contents.

Another use of the board will be as a fairly simple board for people to try out soldering surface mount components. The most difficult parts to solder are the two SOT23 packages (the PIC and the diodes), and even those aren't too bad.

ctrl x
HPIM0622

6 Replies
ukewarrior
Posts: 4674
(@ukewarrior)
Illustrious Member
Joined: 18 years ago

Has the pic code been developed?


Reply
Posts: 6728
Topic starter
(@p-short)
Illustrious Member
Joined: 19 years ago

Yes and no.

The fully general code for reading 'programs' from the serial EEPROM and for writing to that EEPROM hasn't been written. It will be based, however, on the firmware that I published in the vmusic2 thread over in the halloween section of this forum.

I have written a couple of special-purpose programs that would run on this board, although they would not make use of the serial eeprom. One of these programs was originally written for an RGB led function, but would work on this board (give or take a few minor mods). The other program is a one-channel AC dimmer, which again would work on this board. And (after make a few changes to go along with the pinout changes) that program that I published in the vmusic2 thread here would work as well.

So in the end I don't see PIC firmware as a big deal. It's not especially easy to code for a processor as minimal as the PIC10F family, but it can be done, and the price is nice.


Reply
Posts: 2168
(@djulien)
Noble Member
Joined: 19 years ago
P. Short wrote:I have written a couple of special-purpose programs that would run on this board, although they would not make use of the serial eeprom. One of these programs was originally written for an RGB led function, but would work on this board (give or take a few minor mods). The other program is a one-channel AC dimmer, which again would work on this board. And (after make a few changes to go along with the pinout changes) that program that I published in the vmusic2 thread here would work as well.

Nice!

Is it feasible to simulate a little "boot loader", so that the board could be hooked up to Vixen and a sequence played, and then the sequence would be stored in EEPROM so that it could be played back again with Vixen disconnected? Then a PICKit 2 wouldn't be needed after the initial programming of the PIC.

P. Short wrote:In one configuration it can dim one light (one SSR).

Would that little PIC have enough resources to run a doubled SSR (one channel on + half cycle, second channel on the - half cycle)?

don


Reply
Posts: 6728
Topic starter
(@p-short)
Illustrious Member
Joined: 19 years ago
djulien wrote:Nice!

Is it feasible to simulate a little "boot loader", so that the board could be hooked up to Vixen and a sequence played, and then the sequence would be stored in EEPROM so that it could be played back again with Vixen disconnected? Then a PICKit 2 wouldn't be needed after the initial programming of the PIC.

The details haven't been fully worked out, but that's the goal.

Would that little PIC have enough resources to run a doubled SSR (one channel on + half cycle, second channel on the - half cycle)?

don

I don't know, the design is quite tight as it is. There is also the obvious issue of determining which half-cycle is which, although this could probably be handled with a regular (non-H11AA1 opto) and keeping very close track of the hot and neutral wires as well as phasing in the breaker panel(s).

There are also pin-compatible PICS that run twice as fast (PIC10F220 and PIC10F222).


Reply
Page 1 / 2
Share: