Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    2
    Views
    129

    Re: Bytes roll over sanity check

    That's something you could easily try/test/verify for your own verification in less time than what you had to wait for this answer but...Yes :-)

    /Henrik.
  2. Replies
    19
    Views
    1,298

    Re: BME280 sensor.

    Richard,
    Your change to the "cast routine" saved some 400bytes worth of code space and probably also executes faster. Thanks!

    Yeah, both of my sensors reports temperature which I believe to be...
  3. Replies
    19
    Views
    1,298

    Re: BME280 sensor.

    For anyone who are still interested in using this sensor with PBP I've posted my code as an example in the Wiki:
    http://www.picbasic.co.uk/forum/content.php?r=558-BME280-Example

    If any questions...
  4. Replies
    19
    Views
    1,298

    Re: BME280 sensor.

    Richard,
    Out of curiosity, have you tried the PBP code you posted with negative temperature values?

    The reason I ask is that my temperature compensation code was pretty much exactly like yours...
  5. Re: HSEROUT of array of data with termination on a null

    I'd try increasing the baudrate even further.
    According to Wikipedia 256kbits/second is a predefined serial port speed in Windows so you "should" have that available without doing anything...
  6. Replies
    19
    Views
    1,298

    Re: BME280 sensor.

    Thank you Richard, that did help.

    I've got pressure working as well.
    Temperature is within 0.05C and pressure is within 1Pa compared to a commercially available BME280 based sensor module.
    I...
  7. Replies
    33
    Views
    2,251

    Re: PWM/HPWM Stepper Motor Controller

    Yes, exactly so :-)
    That's sort of the idea behind the stepper motor - that you can relatively precisely control both the speed and the position without needing some sort of feedback device and...
  8. Replies
    19
    Views
    1,298

    Re: BME280 sensor.

    Does anyone have a BME280 sensor laying around?
    Can you read the compensation values and post them?

    I think I've now got pressure working as well but I'm curious to know another sensors comp...
  9. Replies
    33
    Views
    2,251

    Re: PWM/HPWM Stepper Motor Controller

    I see no reason for it not to work.
    But with an 8-pin device you're quickly running out of pins, step pulses out, solenoid drivers, perhaps a sensor of some sort to detect the items on the belt, a...
  10. Replies
    33
    Views
    2,251

    Re: PWM/HPWM Stepper Motor Controller

    Mark,
    Yeah, for precise positioning feeding the pulses back into the PIC and count them OR integrate generated velocity over time to calculate position. Possible but not exactly easy to get right,...
  11. Replies
    33
    Views
    2,251

    Re: PWM/HPWM Stepper Motor Controller

    David,
    You've done a great job so far!
    As you might know the torque of step motor falls off as the speed increases. Increasing the drive voltage counteracts this drop in torque. Doubling the...
  12. Replies
    19
    Views
    1,298

    Re: BME280 sensor.

    Thank you Richard!
    I see you too got the temperature conversion covered but not pressure and/or humidity which is where I'm currently got stuck. Haven't done anything with it for a couple of days,...
  13. Replies
    15
    Views
    1,051

    Re: Hersin quick question

    Hi Andy,
    Which PIC are you targeting (wondering if it's got an USART or EUSART)?
    My guess is that there's something weird going on with the baudrate.
    If possible, replace the Bluetooth connection...
  14. Replies
    15
    Views
    1,051

    Re: Hersin quick question

    Which device and out of curiousity, what's up with the slightly odd baudrate?

    Well nothing and intermittent isn't quite the same :-)
    Are you SURE the serial data is actually getting to the...
  15. Replies
    15
    Views
    1,051

    Re: Hersin quick question

    Hi Andy,
    Intermittent results you say :-)

    It sits there waiting for a character for 5 seconds, if none is received it goes to mainloop where you spend "considerable" time before you eventually...
  16. Replies
    19
    Views
    1,298

    BME280 sensor.

    Has anyone been able to interface the BME280 temp, humidity and pressure sensor to PBP?
    I've been messing with it for two days. Getting temperature to read correctly (at least I think it is) took a...
  17. Replies
    15
    Views
    1,051

    Re: Hersin quick question

    I see noting really wrong with what's actually posted but as is usually the case not all the code is posted. Here's an untested example of what I think you're looking for:


    Main:
    HSERIN 5000,...
  18. Re: Ultrasonic sensor, serial communication.

    Try something like:

    Distance VAR WORD
    Sum VAR BYTE

    Start:
    HSERIN 1000, NoData, [wait ($FF), Distance.BYTE1, Distance.BYTE0, SUM]
    ' Here you could evalute SUM to verify packet is correct...
  19. Replies
    5
    Views
    505

    Re: IR temp sensor

    Yeah, when you do x= y // 50 it will do a divide by 50 and then give you the remainder which can't be more than 49, right?

    If you first multiply the raw value by 2 it means you can then divide by...
  20. Re: Weird problem with large(ish) array access

    The plot thickens...

    Long stort short, flashed the device with the PICKit3, could not reproduce the error. Reflashed the bootloader into it and now I can no longer reproduce the error at will -...
  21. Re: Weird problem with large(ish) array access

    Yes, PBP 3.1.2.4
    If I leave the CRC variable declared it puts it at 0x0026 and Buffer at 0x0029.


    _BTN1 _PORTD??7
    _BTN2 _PORTH??3...
  22. Re: Weird problem with large(ish) array access

    Thanks Richard!
    This one's got me stumped for sure. After posting yesterday I had to get on with what I was doing so I just left the PAUSE 5 in there and added the remaining pieces of code back in...
  23. Weird problem with large(ish) array access

    Guys, I need some help here. This is probably one of the strangest bugs I've tried to figure out and I'm starting to believe it's actually not me (for once) doing something wrong.

    From a much...
  24. Replies
    10
    Views
    1,256

    Re: 12F683 _CONFIG problem

    Try indenting the _CONFIG... lines between ASM and ENDASM.

    /Henrik.
  25. Re: WS2812b and similar LEDs - do we need all time running tight loop for control?

    You don't have to refresh them continously, it's enough to update the string of LEDs when you need/want something to change. Just realise that in order to change one of the LEDs in the string you...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4