If this is the only function u want to use this device for just solder a new Quartz Crystal half the speed of current one and see what happens. This way you will get double the timing values and you wont need any additional programming.
Have you actually tried programming it with the two sets of switch info in the manner I said in my last post said:The time scales/ranges in my doc file are what I want, not how the unit was supplied; or there would be nothing to do!
From your description its now sounding like the hardware is faulty if its not working as per the instruction sheet.
Why does it sound faulty? It is working exactly as it supposed to.
I can only go on the information you give , but I really think you have misunderstood how the switches set up the times.
To me it is clear from all those links and documents that the kit can do what ever times you need.
I suspect that lines like this have caused to you , mistakenly think it can only do 1 to 15.
Each DIP switch can be set to a binary value of 1 through 15 and can be configured to be in Seconds, Minutes, or Hours.
Thats not the case, it means you have 15 possible combinations of the 4 switches, BUT each position of the switch refers to at time as per those charts on the right hand side.
As an example
To set the RED on time for 40 mins. First you must set the switches to select the time range for the 40 mins you want from the 8 - 120min range
Tks very much!!Assume you have some more 16f630 chips ready to reprogram with ?
Yes I do
You also need to read and supply the value that should be on the top or side of the crystal, thats the silver can behind the Red switch.
It may have a simple value like 8Mhz or it could be something like 32678hz.
That sets all the timing references for anyone coding a program.
12MHz
Seems like there are 3 programing options;-
A fixed time program to give your exact dehumidifier times. very easy to program.
An open source program code where you can easily specify the exact times you want in secs and minute and hours, though that would require you to run a PC program to enter the data and compile the program ready for the PK1, just a 5 min job for you. Quiet easy to write the program.
This could be a first step to get going, but I would like to have the flexibility of the switches to be able to make quick changes depending on the humidity at different times of the year.
To reprogram to use the switches in the manner you want, with its two level switch programming, is possible but a lot more time to write the program.
If you have some 16f630 chips ready I could send you a 40m on 10sec off fixed .hex program for you to directly burn in with the Pk1 and check it runs ok on your circuit. The new chips would not be code protected so you can readily read back ,erase or reprogram the chip.
Start with 30 min on, 5 sec off.
If that works then you you at least have the working dhum system you want.
As you will have seen, it sounds like Ian has almost written a proper 'switch' version for you.
You originally said you would prefer the code C, and as I only do Assembly, I think it would be much better if I deferred to Ians greater coding ability.
I'm sure you will be in very capable hands.
Cheers!Ian,
The Osc is 12mhz as he specified in #30, though seems odd being as the chip has a 4mhz internal osc
Yep!! I was using an old copy (V7) of Proteus... Once I tried t on V8 it came right!The weak pull ups on PortA, they are globally controlled by the RAPU (low) bit of the option register, bit 7, which power on defaults to 1.
ed is the On Time and Blue is the Off Time, but yes the O/P needs to send a pic of the track side as those 4 resistors could be on either switch.
Does anyone need the layout of the PCB? I scanned both sides before building it.Cheers!
Yep!! I was using an old copy (V7) of Proteus... Once I tried t on V8 it came right!
That is what I assumed...
perfect !Does anyone need the layout of the PCB? I scanned both sides before building it.
Not sure. Can PICkit1 compile?Marty! Are you able to compile and burn the pic?
Ian:Instructions... The way I read it....
Set the switches to determine the base timer..
Press the switch whilst powering up...
The LED flashes twice to acknowledge the new time base....
Reset the dip switches for the timer period within that time base..
Reboot without the switch press...
On time and off time continuous operation..
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?