Search results

  1. N

    Servo glitches?

    I'm seeing a weird output glitch using the servo and servopos commands. I'm using the 20M2 chip. I initialize the servo with the servo command and use servopos to set the throttle position for a standard RC aircraft ESC (Castle Creations), but fairly frequently (maybe 2x-3x a minute the...
  2. N

    Shifting bits on an M2

    Hi, I need to shift bits around on an M2 chip. The <<, >>, setbit, and clearbit commands work only on X2 chips. How can I get around this? More specifically here's what I need to do... I have the following 8-bit value: %11100111 (it's actually stored in a word variable so really it is...
  3. N

    i2c general call not working

    Hi it's me again after a few years of inactivity. A while back I was trying to communicate with the AS1115 LED driver thru i2c (thread here). You all helped me out a lot and we found that even though the device address was %0000000x, we would only be able to communicate with it if we used...
  4. N

    Mixing serial OpenLog and i2c sensors?

    Is it possible to switch back and forth and communicate with i2c and serial devices? I am planning a new project and would like to use some i2c sensors and the OpenLog data logger. https://www.sparkfun.com/products/9530 I believe they would both use the SDA and SCL pins on the PicAxe? Or...
  5. N

    AS1115 Led Driver - I2C

    I'm having trouble communicating with the AS1115 LED driver. Has anyone ever used one and got it working with PicAXE?
  6. N

    BMP085 Pressure Sensor

    It's been awhile since anyone posted about the BMP085. All the previous posts suggest that they are still refining the code. Has anyone got a good working version yet?
  7. N

    Help! My RC servo "jumps" on power-up

    I've had this issue on all my PicAXE projects with servos, but it never bothered me until now. When the power switch is thrown to the on position, the servo moves very slightly in one direction. It is as if a little rush of current flows to the signal pin of the servo, telling it a new...
  8. N

    Trouble understanding ADC values when using external Vref- and Vref+

    I'm using and external Vref+ and Vref- for the first time on the 40X2 chip. When debugging, I'm getting values not what I would have expected. My sensor give a voltage output that will range between 4.1 to 4.7 volts. I want to maximize the resolution of the ADC for this range, so I set up 4V...
  9. N

    Question about math order of operations

    Let's say I have the following math operation: FOR b0 = 0 to 255 w0 = 500 * b0 / 2 'do something here with w0 NEXT Question: Will I have problems with w0 wrapping around back to zero once b0 gets to 132 in the loop? Does the chip calculate w0 as 500 * 132 = 66000 (which is really 464...
  10. N

    HELP! Picaxe freezing/locking up when moving to another program slot.

    I was playing around with using multiple program slots, on the 40X2, for the first time last night. I have a program that includes a main menu for me to enter and adjust several settings. The main menu took up half of the memory on slot 0, so I saved the menu into a different file and loaded it...
Top