I'm not sure if your keeping up with the VSS count, but if you start missing pulses, the aliaing will kill your control. I would build a test circuit with an LCD and make sure that the VSS count...
Type: Posts; User: Plcguy; Keyword(s):
I'm not sure if your keeping up with the VSS count, but if you start missing pulses, the aliaing will kill your control. I would build a test circuit with an LCD and make sure that the VSS count...
I think Dave means put an LED on a pin and drive it on before the LCD statement and a pause of 1 second and off after the LCD statement and a 1 second pause.
With this you know the processor is...
http://www.picbasic.co.uk/forum/showthread.php?t=10521&highlight=serial+interupt
I also asked earlier about B0.
Isn't that a special word in BS2?
And since that is a PBasic off shoot, I'd think it's bad here???
I looked in the manual and they use B0 as a byte in examples, but...
You're right, thank you!
I have an app in test right now that needs to be fixed!
Nothing like a second set of eyes.
I appreciate you saying that, thank you. But my questions stand, AND I have read the manual. My version SEEMS more succinct than the dig / dec version. However, I assume there are advantages to that...
I'm not seeing what "DEC" and "dig" offers over my ver.....
Please enlighten me!
PBP can only handle integer, it clips off the .874 dec portion.
where analog in is 0-1024 I would do something like this, tho your scaling would vary :
Analog_In_1:
ADCIN 1, AIN1...
C*ΔV = q = I*t, where ΔV is the voltage sag (ripple), C is the capacitance in Farads, q is the charge lost in Coulombs, I is Amps, t is time in seconds.
for a true DC supply t = 0 -> C = 0
for...
The filter capacitor cleans up the ripple to give you a flat DC supply. There is an equation for it (ripple and load based), but since the supply is DC, not AC the ripple is minimal. A 780 amp hour...
to display volts with a decimal point example
Volts_2=AIN2*50/51
HI_2 = Volts_2/10
LOW_2 = Volts_2//10
Lcdout $fe, 1, "Bat Volts =",#HI_2,".",#LOW_2
leaving volts * 10 or 100 to...
Sounds like a great project.
I'm a controls engineer by profession. Generally, I would not implement closed loop control off a wireless device. There are a lot of factors that affect wireless...
It seemed about the same for me
Now that I see Melanie's write up I get it.
I'm surprised I didn't find this in a search? I looked in FAQ, but that is for the forum only.
Thank you for the pointing.
So, I'm assuming PM has...
I am using MCS and PBP
I see that, I forgot about that, I was thinking about the epic definitions.
So, one question down, I see the definition for the processor. So why does
@ DEVICE PIC16F88...
OK, borrowed a clone pickit3 from a guy at work.
set it up as we discussed - that went fine!
So, NOW I discover how thick I really am!
Since I'm not using epic, I need to define the pic and...
OK, I installed the PK3Cmd.exe and added
-P$target-device$ -F$hex-filename$ -E -M -B -L -V5
seem to take it. So this works as easily as my epic?
I can still choose an pickit2 if this has issues....
I saw the posts about loading 8.5 and using PK3Cmd.exe. I don't see Pickit3 as a drop down option in MCS though.
I currently use an EPIC, MCS, PBP and want to go to less wires / lose parallel and use ICP.
I see all kinds of posts about MCS operating a Pickit2, but when I look in the define new programmer...
yes, I did
I spoke with ScottEdwards, the manufac of the serial display. They sent me an app note where you hold the data pin low during startup. I was following a basic stamp app note where they say to hold it...
In one attempt, I created
startup:
Pause 5000
All it did was piss off my serial display.
I notice I'm at 1959k, quite near the page boundary, could this be a factor
Also, I'm using the...
I wrote this app, which appears to function with the exception of powerup. The Hi setpoint appears to get set, but I never see the delays or the splash screen, I start out seeing main loop on the...
Mabe I'm missing part of your challenge.
How many samples will you throw before deciding it's a real change?
If you look at the filter I added you can set the # of samples to skip as well as the %...
It will affect it, but only at 1/sample rate.
so, for a 10 sample example, assume the running average = 100
100 *10 (sample rate) = 1000 = sum of the samples
new value 101
101+1000 - 100 = 1001...