Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    14
    Views
    851

    Re: Better code check before compile?

    I don't write compilers and/or preprocessors but from my limited point of view I can't really see how a check like that would work in the case of PBP. How would the compiler or preprocessor be able...
  2. Replies
    5
    Views
    726

    Re: PID Filter Coefficient

    Like I said, I think I just tacked it to the output without really knowing if it would help or make things worse. My main application for the PID routine is motor control and it's been over a decade...
  3. Replies
    5
    Views
    726

    Re: PID Filter Coefficient

    Take a look at Tracy Allens pages on math (and other stuff) routines for the BasicStamp, specifically this page when digital filtering is covered. I've adopted one of the routines for PBP. I believe,...
  4. Replies
    5
    Views
    726

    Re: PID Filter Coefficient

    Hi,
    If I read the documentation correctly the N-parameter serves as a low pass filter for the derivative term. My routine does not have that option.
    I have ZERO experience with Simulink but looking...
  5. Replies
    2
    Views
    341

    Re: PIC16F18855 and DT elapsed timer

    Several versions of ELAPSED_INT seems to exist. One that predates the existance of DT-Ints and one which is supposed to work WITH DT-Ints. For the one that's using DT-Ints it looks like you also need...
  6. Replies
    131
    Views
    60,657

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

    Mark,

    It provides some filtering to the input of the integrator and slows down its response some. The integrator does run on every call but the output of it is only added to the total output every...
  7. Replies
    131
    Views
    60,657

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

    I think it's the integral clamp that's the root cause.
    When the actual value is getting closer to the target, the output from the proportional term gets smaller and the integral term needs to "build...
  8. Replies
    131
    Views
    60,657

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

    You have quite high integral gain I'm surprised the system doesn't become unstable with that.
    I'd try setting Ki and Kd to 0, then increase Kp until you're starting to get oscillation then back Kp...
  9. Thread: Goodbye

    by HenrikOlsson
    Replies
    53
    Views
    5,674

    Re: Goodbye

    Yes, of course. I didn't mean it could be any 8-bit ATMEL just that the original Arduino is based on an 8-bit ATMEL processor. Obviously you need to use a microcontroller for which support exists in...
  10. Thread: Goodbye

    by HenrikOlsson
    Replies
    53
    Views
    5,674

    Re: Goodbye

    The Arduino hardware is simply a microcontroller (an 8-bit Atmel job in its original form) with a bootloader mounted on a somewhat standardized form factor PCB with headers. There are many different...
  11. Re: Using byte variable for storing two different values

    The decimal value 99 requires 7 bits so most you can save by packing values is 1 bit per value with the added overhead and complexity of unpacking them.

    If these values are to be in RAM (which I...
  12. Replies
    68
    Views
    5,120

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    Yes, you can have different baudrate(s) on different UARTs and yes you can change it at any time you want. But, as the posts in the other thread says, to change it you can't use PBPs DEFINE HSER_BAUD...
  13. Replies
    13
    Views
    1,387

    Re: EEPROM Issue

    Do you have (or can you add) a debug port (EUSART, SEROUT, DEBUG)?
    If so, then print the value of your variable out before calling the write routine, before executing the write command, after...
  14. Replies
    13
    Views
    1,387

    Re: EEPROM Issue

    Now there's a problem description if I've ever seen one :-)

    My bet is that it has something to do with the interrupts. Have you tried to disable the USB comms and change/save/read back the EEPROM...
  15. Replies
    131
    Views
    60,657

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

    As far as this PID code goes this is by far the most common question I've received over the years....

    If you have no integral gain then yes the output should (and will) be zero when the error is...
  16. Replies
    11
    Views
    1,620

    Re: 16-bit version of the WS2801 chip

    Don't know about a 16bit version but I just stumbled across the LDP1886 which is a 3x12bit LED driver.
    That's 4096 levels per channel or 68.7 billion colors.

    I have not looked at the datasheet to...
  17. Replies
    17
    Views
    2,861

    Re: Pic 18F26K40

    I'd say yes. But then again, my programs are usually not near the size of the memory size of the part in question and IIRC the bootloader does not reprogram the FULL memory while an ICSP device...
  18. Replies
    17
    Views
    2,861

    Re: Pic 18F26K40

    Hmm... My experience is the complete opposite. Using a bootloader is generally much faster than using ISCP (with a PK3 at least) - especially when loading small programs into chips with a lot of...
  19. Replies
    22
    Views
    4,232

    Re: PWM and audio noise

    I'm certainly no expert but can you show the schematic and PCB layout? It might give a better sense of what you're doing.
    I mean, are you dimming a LED or running an 500A TIG inverter with that PWM...
  20. Re: PBP3.1 Gold + MCSX+ + Microchip's ICD3 programmer?

    If you're using IPE then this thread might be helpful. It also targets the PICKit3 which is likely different from the ICD3 but as eagleman pointed out you should be able to find the corresponding...
  21. Re: SDI vs UART efficiency for wireless comms

    You mean SPI, not SDI right?
    SDI is a serial interface generally used for video and runs in the hundreds of megbits per second range, I don't think a PIC will cope with that :-)

    Technically, SPI...
  22. Replies
    5
    Views
    1,541

    Re: 18F26K42 TMR1 Interrupt troubles

    Hi,
    I don't have a definitive answer for you but here's a couple of things.

    First, if you haven't already, make SURE that you have Control of the pin where you have the LED connected. Make it...
  23. Replies
    15
    Views
    2,748

    Re: Unable to Open Include File

    Have you verified that the file extension is .bas and not .pbp?
    As long as the file is in the PBP folder or in the same folder as the source file from which you include the other file(s) it should...
  24. Replies
    42
    Views
    9,640

    Re: 18F2550 and Blink Led

    The oscillator block on the USB equipped devices are a bit complicated.
    It looks to me as if you're trying to run off of the internal oscillator at 8MHz (judging by OSCCON setting INTOSC to 8MHz)...
  25. Replies
    9
    Views
    1,543

    Re: EUSART vs. MSSP

    EUSART = Enhanced Universal Asynchronous Receiver Transceiver
    MSSP = Master Synchronous Serial Port

    Asynchronous means there is no dedicated clock line/signal, while synchronous means there IS a...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4