I'm looking to add wireless time setting/correction to my clocks using the WWVB time signal generated from Ft. Collins, CO without having to reinvent the wheel. Amplitude-modulated protocol is here:...
Type: Posts; User: gmglickman; Keyword(s):
I'm looking to add wireless time setting/correction to my clocks using the WWVB time signal generated from Ft. Collins, CO without having to reinvent the wheel. Amplitude-modulated protocol is here:...
Found it. Neglected to set PIE1.C2IE to enable.
I have a piezo disc w 1Meg in parallel to RC0 of 16F866. Working fine to detect vibration when configured as analog, using ADCIN.
Now I want to wake the PIC from sleep when vibration is detected,...
Lowest comparator voltage seems to be 0.2v, which may work. Fixed Vref is 0.6v. Thanks for the suggestions.
George - definitely should be able to detect that. You may need to glue the disk to the...
I'm using a piezo disc with 1Meg resistor in parallel to detect vibration, using an analog channel on 16F690. (And planning migration to 8pin PIC, eg. 16F683.)
A/D works great to detect the very...
Alain,
Interesting idea. Do you mean using another pin to sink the filtered output after reaching the maximum voltage? I'll have to try that to see how it sharpens the drop.
Timmers,
Because...
Great suggestions by some of the most knowledgable contributors to the list.
I elected to go with a simple software approach using PWM, without lookup tables. Most of the code is to provide DT's...
I'd like to generate a sawtooth wave, 0 to +1.5v at several hundred Hz up to 1 kHz on a 16F690 or similar, to generate a time base for CRT.
Suggestions for an efficient way to do this on a PIC?
...
For one thing, I would take the SEROUT out of your loop: SEROUT takes a fair amount of time, and you will lose any IR pulses after the first while servicing the SEROUT.Save pulses to an array as you...
Confused:
That code is specific to the 18F2431, with features not found in the 16F683.
Take a look at the code here http://www.rentron.com/PicBasic/IR_Chips.htm by the same author for a better...
Anybody else working with capacitive sensing? Any updates?
Yup, that works fine.
But:
T1CON.0=0
.....
Your serial routines here
......
T1CON.0=1
What's the best way to temporarily disable MIBAM? I need to allow SEROUT to a serial LCD, then re-enable. I'll tolerate the flicker, unless there's another option...
Try this:
DEFINE foobar 1
.
.
.
@ ifdef foobar
put stuff here
@ else
other stuff
I vaguely recall the same problem as a result of file paths that were too long. Try moving the target to another folder, or to c:
I've had some luck using the capture function of the CCP module.
Set up an interrupt (or just poll the CCP1 flag) and alternate between setting CCP1CON=$04 and CCP1CON=$05 to capture TMR1 to...
I would make sure the unused input pins are tied high or low.
Never mind; now I see you're dividing by $10.
Shouldn't it HzTimer be initialized to $7A120 (dec500000), rather than to $7A12 (dec31250)? And incremented by the same $7A120 for 1/2 second.
Ioannis:
You might want to remap the LED's brightness curve to compensate for the non-linearity in perceived brightness.
This are the values I use
data @$0,...
If the MCLR pin is brought low a reset will occur, waking the PIC from sleep and starting your code from the beginning. No interrupts needed, although you code may want to distinguish between an...
I played with a very simple form of BAM a while back, with at least 24 LEDs on a 20MHz 16F877A. This is the main loop:
BAM: 'each pass is one cycle, equiv to one PWM...