etrmedia
New Member
Is there anything wrong with changing the pin assignments in the initial #DEFINE lines to use physically closer-together pins? I'd like to make a quick-connect cable and I could use fewer header pins that way.
It occurred to me that you could repurpose and STC1000 to do just about any single job that required one input and two outputs. Connect a hall effect flowmeter up to where the thermistor connects to and program the pic to watch the flow rate and alarm if it goes too high or too low. Instead of an alarm light/buzzer hooked to one of the relay outputs, you could hook a solenoid valve up and use the flow meter to automatically measure water into your HLT.
Hmmm.. There has got to me a lot of other uses besides temperature control..
At that point id just use the arduino to do all that.
get your hands dirty coding
Is there anything wrong with changing the pin assignments in the initial #DEFINE lines to use physically closer-together pins? I'd like to make a quick-connect cable and I could use fewer header pins that way.
I'm working on it...
SDCC and GPUTILS loaded on my Linux partition. Did you use Code::Blocks or another IDE?
I've also got MPLAB loaded on the windoze partition but MPLAB is a hard piece of software for my non-programmer mind to understand...
You probably could. But I don't think I'll change
Make sure to get most recent versions of SDCC and GPUTILS, the ones included in your distribution might be too old.
I use eclipse, but I think you could use just about any editor.
Some questions for you Alpha:
1) If you are running a program, what happens if you go into the setup for that program (say Pr0) and look at the settings, but don't change them? It doesn't restart the program or anything like that does it?
2) Same scenario as above, but you make changes to Pr0. Does it restart the program or just incorporate the changes if it hasn't made it to the step you changed yet? What if you change the step it is currently on?
3) Regarding ramping, it can only change the set point once per hour correct? So a step from 60 to 70 in 1 hour wouldn't increment every 7.5 minutes, you'd just get a regular step from 60 to 70 on the hour?
4) If I ramp from 60 to 70 in 2 hours, I should get a set point change to 65 after one hour, right?
Regarding the pseudo ramping.
How did you come to choose 8 steps ? Maybe for future features, could you instead set
the ramping parameter to 0 or 8. That way, later if you can do more ramping steps, one
can set the parameter to say 10 or 7 or 14 and thus get that many intermediate steps.
I presume its about division by a general N...
And another update.
Ramp Test 1
Setting Temp Setting Hours STEP
SP0 45 DH0 8 1
SP1 45 DH1 8 2
SP2 55 DH2 12 3
SP3 55 DH3 6 4
SP4 60 DH4 12 5
SP5 60 DH5 8 6
SP6 68 DH6 48 7
SP7 33 DH7 0 8
SP8 33 DH8 0 9
SP9 33 10
Hours: 102
Found something interesting (not related to the ramp problem).
I cracked open a third STC-1000 to solder header pins and I found that it is different from the rest.
I uploaded to a freetronics ether 10 board.
The detect seems to be sporadic, and it won't flash, I get the following
STC-1000 NOT detected. Check wiring.
Device ID is: 0x27C5
STC-1000 detected.
Device ID is: 0x0
STC-1000 NOT detected. Check wiring.
Device ID is: 0x0
STC-1000 NOT detected. Check wiring.
Device ID is: 0x0
STC-1000 NOT detected. Check wiring.
Device ID is: 0x0
STC-1000 NOT detected. Check wiring.
Device ID is: 0x27C5
STC-1000 detected.
Serial.print("Device ID is: 0x");
Serial.println(deviceid, HEX);
if((deviceid & 0x3FE0) == 0x27C0){
Serial.println("STC-1000 detected.");
When I flash mine, I'm just using the USB power from the laptop.
Cool. Let me know and I'll flash it and start the test again.
I have a rev 1.1 power board unit like Disney7. I can't read the chip markings, however it does have 20 pins. Iscpdat and iscpclk appear to the 7 segment so look accessible. nMclk runs from 4 through a resistor, and then seems to go through the board to behind the display. It looks like it would be pretty tricky to solder to the side of the surface mount resistor.
I uploaded to a freetronics ether 10 board.
The detect seems to be sporadic, and it won't flash, I get the following
STC-1000 NOT detected. Check wiring.
Device ID is: 0x27C5
STC-1000 detected.
Device ID is: 0x0
STC-1000 NOT detected. Check wiring.
Device ID is: 0x0
STC-1000 NOT detected. Check wiring.
Device ID is: 0x0
STC-1000 NOT detected. Check wiring.
Device ID is: 0x0
STC-1000 NOT detected. Check wiring.
Device ID is: 0x27C5
STC-1000 detected.
Enter low voltage programming mode
Erasing device
Programming hex data...
Programming program memory
Programming 8 words at address 0x0
Validation failed for address 0x1 wrote 0x318C but read back 0x0
Leaving programming mode
Any ideas?
If the wiring was wrong would it detect?
Can someone post a log of what a correct flash sequence looks like, or show the device ID?
I have an uno I can try tomorrow too.
What power supplies are people using? Is 1amp enough to run the uno and the stc-1000?
Thanks
When I flash mine, I'm just using the USB power from the laptop.
Ramp Test 1
Setting Temp Setting Hours STEP
SP0 45 DH0 8 1
SP1 55 DH1 8 2
SP2 55 DH2 12 3
SP3 55 DH3 6 4
SP4 60 DH4 12 5
SP5 60 DH5 8 6
SP6 68 DH6 48 7
SP7 33 DH7 0 8
SP8 33 DH8 0 9
SP9 33 10
Hours: 102
What power supplies are people using? Is 1amp enough to run the uno and the stc-1000?
Thanks
Alpha, I missed that post of yours somehow.
I'll update and start the test again in a few hours.
Btw, once you're satisfied with the current code I can help figure out the 1.1 boards. I'll look later today and see what the IC is. My 1.1 board does have a header, it's just in a different place and is a 2x3 block. Hope the chip is compatible.
Alpha - Sorry I've been a little absent. I replaced my computer Friday with a new one and have been a little busy. Is there anything I can test for you? I have a cider bubbling in the ferm chamber but I can move it.
Enter your email address to join: