Betr: [smartsockets] Re: 2 tube clock with PIC16F88
- Hello Chris,
IT WORKS !!!
First thing I did was set the program-word 1 to the setting you mentioned.
When I started the boards, there was a reaction to the button.
And rotating the selector does (and already did) select menu items.
Pushing the button now may have two effects, nothing happens or the menu
item is activated.
While setting the clock, it's the same, nothing or reaction.
The nothing is probably when one of the switches in the selector is still
closed. Because if I rotate it just enough, the button works fine.
I have used Farnell part 935-4034 for encoder.
This is a 6 cycle bourns part 3315Y-001 OD&L
I may add a couple of LED's to show the encoder outputs.
Or get the right type of encoder.
On the processor, I think selecting HS instead of XT did the trick...
I now also have a suggestion for a nice addition to the clock.
What if the output from the last smartsocket is returned to the clock-processor.
This would mean that the clock "knows" how many smartsockets are present.
Thus, it can automatically use the correct number of display positions.
Can also be used for an X-letter-word.
Thanks for the patience.
And explaining a bit more on how the software works, was a big help.
Now, all I have left to do is set my B7179-Sockets right...
>-- Oorspronkelijk bericht --
>From: "Chris" <fixitsan@...>
>Date: Sun, 04 May 2008 14:17:01 -0000
>Subject: Betr: [smartsockets] Re: 2 tube clock with PIC16F88
>--- In email@example.com, guus.assmann@... wrote:
>> Hello Chris,
>> Yes, I've noticed that the connections from the PIC to the tubes
>> That's why two programs are needed, obviuosly. (And version 1 and
>> It should be fairly simple to change the program to suit
>my "choice" of connections.
>> If I've seen it right, it's just one table.
>> I have some programming experience.
>> Long ago, I started with the 8080 processor.
>> Later also the 8085. But mainly I used the 6502 in both an Elektor
>> computer and of course in the Atari XL.
>> I've done some more programming on 8052 and 80C552. Also the
>> is nice.
>> But I was never very good at the software.
>> I've also build and modifies a Propellor-Clock. (Henk Soubry)
>> This one uses an PIC. But I only changed the codes for the remote
>> I can read and mostly understand the code.
>> Also, I have a PIC-starter kit. So it should be possible to do
>> (I like designing and building PCB's much more)
>That's not an insignificant amount of experience ! I've only
>programmed two cores so far and they are both PIC's. I'm hoping to
>get some ARM (M3 cortex) experience soon
>I have just quickly built up the clock circuit as per the diagram in
>the file section 'barebones' which has just been added, but with no
>loudspeaker output and no backup supply components connected. I
>doubt they would be able to cause a problem like the one you are
>All 4 resistors connected to the micro are 10k. ( I appreciate their
>value is not clear) The resistor limiting current to the encoder,
>which is 680R because it was already attached to the encoder so I
>just used that, but anything from 330R to 680R should work well.
>The capacitors are disck ceramic 33pf, crystal is 4MHz, and the idle
>state of the encoder channels A and B is '00'. The pushbutton is
>also '0' at rest
>At powerup 'clock' is displayed, the menu items change with rotation
>of the encoder. When 'clock' is displayed and I press the button for
>0.5 seconds and release it, the time is displayed, first hours, then
>mins, then seconds. When I press the button again the word 'clock'
>is displayed to signify that the menu selection system is active
>The code in the files section is taken directly from the IC I used.
>My source was the file already in the files section, which I used in
>order that I could validate it. I have written the config words in
>the file description, CW1 = 3F02 and CW2 = 3FFF
>My programmer automatically selects the fuse settings from the
>config words, which are as follows....
>CODE PROTECT ROM disabled
>SWITCH OVER MODE enabled
>CODE PROTECT EEP disabled
>CCPMx CCP1 RB0
>FLASH WRITE PROTECT disabled
>The correct processor is the 16F88, not the 16F84 ( I will make that
>correction in the diagram )
>I can't think what could be causing your crashes. Obviously the pins
>on the schematic are not in numerical order but you would probably
>have checked that I'm sure
>As long as the button has a pulldown of 10k and the current limiting
>resistor is in the circuit there shouldn't be any reason for it to
>crash like that, even without a current limiter it should work
>reasonably well due to the high impedance characteristic of an input
>pin, but it is almost as if there is a short being created somewhere.
>Sorry I can't be more help. Both the chip in the ZM1350 socket and
>the chip in the 2-tube clock circuit were programmed using the
>files which I downloaded from the files section this morning, but I
>can see how a problem could be so frustrating with what is such a
>Please keep me posted
- --- In firstname.lastname@example.org, guus.assmann@... wrote:
> Hello Chris,
> Just now I realise that I forgot to inform you.
> During my holliday, I had some more time and finally managed to get
> correct. So now, the smartsocket with the B7179 on my PCB also worksfine.
> I'll make some more, to get all 7 tubes working.Guus, Thanks for the update.
I haven't been getting the time to do what I need to do either !