Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Macgman2000; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    2,257

    Re: Debugin conditional routine

    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...
  2. Replies
    3
    Views
    2,257

    Debugin conditional routine

    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...
  3. Replies
    0
    Views
    1,670

    ADC data in .wav format

    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...
  4. Replies
    1
    Views
    1,801

    interrupt on range finder

    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...
  5. Replies
    1
    Views
    3,235

    sweeping LED light effect

    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...
  6. Replies
    6
    Views
    4,145

    Persistence of vision wheel

    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...
  7. Replies
    12
    Views
    6,834

    Re: Repeater ID and controller

    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...
  8. Replies
    12
    Views
    6,834

    Re: Repeater ID and controller

    Hello Dave,

    trying to follow what is going on in the pointer call. $82 = N....not following, can you clarify?


    Nick
  9. Replies
    12
    Views
    6,834

    Re: Repeater ID and controller

    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...
  10. Replies
    12
    Views
    6,834

    Repeater ID and controller

    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...
  11. Replies
    3
    Views
    3,063

    Re: BlueSMiRF Gold and 16F877A

    Thanks for the info. How can I get one locally? I need it before april....

    Best Regards,
    Nick
  12. Replies
    3
    Views
    3,063

    BlueSMiRF Gold and 16F877A

    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...
  13. Replies
    3
    Views
    3,186

    Re: 16F877A and Gyro algorithm question

    DT, thanks for the confirmation. I never used it as an absolute position sensor, always relative.

    Best Regards,
    Nick
  14. Replies
    3
    Views
    3,186

    16F877A and Gyro algorithm question

    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...
  15. Replies
    3
    Views
    2,680

    PICAXE servo command

    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...
  16. Replies
    8
    Views
    5,454

    DT interrupts

    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...
  17. Replies
    131
    Views
    162,258

    Re: PID-filter routine (2nd try).

    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...
  18. Replies
    131
    Views
    162,258

    Re: PID-filter routine (2nd try).

    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...
  19. Replies
    131
    Views
    162,258

    Re: PID-filter routine (2nd try).

    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...
  20. Replies
    131
    Views
    162,258

    Re: Hi Henrik again after little time

    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...
  21. Thread: PID help

    by Macgman2000
    Replies
    1
    Views
    2,554

    PID help

    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...
  22. Replies
    14
    Views
    6,924

    Re: Pic16f88 compiling. . not working

    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...
  23. Replies
    3
    Views
    3,134

    Re: DT-int and SPWM

    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...
  24. Replies
    3
    Views
    3,134

    DT-int and SPWM

    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...
  25. Replies
    18
    Views
    8,496

    Re: 16F1827 interrupt hosed

    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...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4