Hello DT,
Thanks for the info. I did think of doing that, for whatever reason I must have over throught it. I was concerned about missing the next byte. It just ocurred to me that the wait state...
Type: Posts; User: Macgman2000; Keyword(s):
Hello DT,
Thanks for the info. I did think of doing that, for whatever reason I must have over throught it. I was concerned about missing the next byte. It just ocurred to me that the wait state...
Hello,
I have a serial data stream that has 1 of 2 possible preambles.
%10001000
%01001000
I am currently using this command:
debugin [wait(%01001000), mydata2, mydata3 ]
The problem...
Hello,
I have a cheap Chinese sound chip I am interfacing to. The problem is I don't have any I/O left and the only thing that is available is DAC output port. I have recorded a capture of 2400bps...
Hello,
I made a platform that looks similar to boe bot. I am using a 16F877A MCU for it, lots of I/O. I have two sharp range finders that are on my A0 & A1 ADC ports. Currently I have range...
Hello,
I am trying to replicate a sweeping LED effect. Basically the LED shifts back and forth across 10 leds. The part I don't see how to do is the lead & tail effect which appears dimmer than...
I have an application for persistence of vision graphics on a spinning platform. I have no experience with this. Also this wheel is spun up and left to spin down, it is not sustained speed. Does...
Mike, Dave,
Great job, very nicely done! I will use this method when optimising my code. I have it working via sub calls and it is working nicely. I have to add program mode (to alter the...
Hello Dave,
trying to follow what is going on in the pointer call. $82 = N....not following, can you clarify?
Nick
Thanks all for your suggestions.
I decided to use subroutines for dit and dah audio frequency and tone length (dit/dah). In main I will just run through my callsign characters calling on...
Hello,
I am done building a UHF repeater out of 2 Motorola Maxtrac radios. I have the controller working. I want to add another function, auto morse code ID'er. I can inject the audio into the...
Thanks for the info. How can I get one locally? I need it before april....
Best Regards,
Nick
Hello,
I have a question regarding function and hardware connection with a Bluetooth module. I am interested in the BlueSMiRF gold found at Sparkfun.com. It has TX, RX, CTS and RTS. If I want to...
DT, thanks for the confirmation. I never used it as an absolute position sensor, always relative.
Best Regards,
Nick
Hello,
Is it possible to use a gyro to determine angular displacement? think of a clock face, I want to rotate an object from rest 12 o'clock to say 9 o'clock. Then I want to stop and rotate it...
Hello,
I do a lot of work with servo's and I am coming up against a wall with synchronizing them. I usually do the following:
portb.0 = 1
pauseus (servo1 * 4) + 960 ; scaling factor to give...
I know from experience that PBP has issues with real interrupts (timer interrupts in ASM). Especially when you have basic sandwiched in between. Corrupted registers and all. Why hasn't melabs...
I see...basically no different than a CNC profile step shape going into the motor driver. I will work on the ramp up/down function and see if I can improve things a bit.
I need to control 2 servo...
Hello Henrik,
I just thought you should know that the code works perfectly in my servo application with the mods. I need to tweak constants / gains. Making small incremental changes in position...
Good point. I will make the suggested change. In your main code you have HPWM 1, pid_out, 10000 .... I know that pid_out is declared a word (2 bytes) and frequency is 10Khz? The HPWM in the manual...
Hello Henrik, All,
I have read through this thread regarding servo PID motor control that Henrik wrote. I need to modify the code for the direction part of the code. My h-bridge has 3 i/o. PWM...
Hello,
I found this snippet of code for a PID written in picbasic. I need some help understanding a few things....
1). What size are the variables? byte, word..?
2). I don't want to use the...
Sounds like you have 2 potential unknowns. From the sound of it, this is the first time you are using windows 7 and PBP. The second could be miss-wiring of the LCD. Try just getting an I/O port to...
Thanks guys for your responses. I want to be able to update the servo positions all at once. I am using the servo's in continuous rotation and need to minimize lag between issuing commands to the...
Hello All,
So I have abandoned using asm interrupts in PBP on 16F1827 and I am now looking at Darrel's interrupts. In particular I want to generate and update 4 pwm channels. These channels are...
Darrel,
How would I structure my code using your interrupt include file? I want to accomplish the following:
1). update 4 servo's with a refresh rate of 16ms. Pulse width on the servos range...