Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    131
    Views
    58,965

    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...
  2. Replies
    131
    Views
    58,965

    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...
  3. Replies
    131
    Views
    58,965

    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...
  4. Thread: Goodbye

    by HenrikOlsson
    Replies
    53
    Views
    3,868

    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...
  5. Thread: Goodbye

    by HenrikOlsson
    Replies
    53
    Views
    3,868

    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...
  6. 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...
  7. Replies
    68
    Views
    3,414

    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...
  8. Replies
    13
    Views
    908

    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...
  9. Replies
    13
    Views
    908

    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...
  10. Replies
    131
    Views
    58,965

    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...
  11. Replies
    11
    Views
    1,179

    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...
  12. Replies
    17
    Views
    2,096

    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...
  13. Replies
    17
    Views
    2,096

    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...
  14. Replies
    22
    Views
    3,526

    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...
  15. 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...
  16. 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...
  17. Replies
    5
    Views
    1,342

    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...
  18. Replies
    15
    Views
    2,288

    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...
  19. Replies
    42
    Views
    8,973

    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)...
  20. Replies
    9
    Views
    1,282

    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...
  21. Replies
    7
    Views
    879

    Re: PIC 18F46K22 Wierdness

    I believe it's basically the same issue as Ioannis had the other day when he tried to use HIGH/LOW on anything but a PORT register.

    Any command that automatically makes the pin in question and...
  22. Replies
    2
    Views
    593

    Re: lcd delay time

    If you look at the datasheet for the 44780 controller you can see the timing requirements, not all "compatible" controllers are equal though which is why PBP has the DEFINE LCD_COMMANDUS and...
  23. Replies
    9
    Views
    983

    Re: Good ol' 877

    HIGH/LOW are really only meant to be used on PORT registers.
    Those commands also clear the corresponding TRIS bit which is at certain offset from the register (PORT) in question. That offset is 80h...
  24. Replies
    67
    Views
    8,026

    Re: MicroCodeStudioPlus keeps crashing.

    Of course, and don't think for a second we haven't tried to but it really does feel totally random. Except for the fact that it has never ever (not for me at least) crashed when just sitting idle,...
  25. Replies
    15
    Views
    2,972

    Re: The book of dt interrupts

    You did ask Wayne for links to Darrels posts, I just wanted to make sure that you and/or Wayne hadn't missed the apparently obvious one, my appologies.
    I'd be happy to help where I can but setting...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4