Recent content by Brian Z

  1. B

    Pulsin and servopos in a loop? I'm getting severe servo jitter.

    For posterity's sake, I'm posting an update: I commented out my servo commands and replaced the servopos commands with pulsout commands, and it's working pretty well. I'm getting an output signal once every four input signals, or about every 80ms. I'm going to clean up my code for my math (I...
  2. B

    Pulsin and servopos in a loop? I'm getting severe servo jitter.

    Thank you for the reply! That is very interesting. I get the concept, but I'm going to have to look into the nuts and bolts of this. As I'm only reading three channels and outputting three channels, I may have an advantage here, with more time to get my calculations done, which are more...
  3. B

    Pulsin and servopos in a loop? I'm getting severe servo jitter.

    Could I offload the pulsin commands to another Picaxe chip? Is there a way to communicate between two chips that won't mess up the servo signals?
  4. B

    Pulsin and servopos in a loop? I'm getting severe servo jitter.

    I have built a three wheeled robot with omni wheels, and all of the wheels are 60° from each other, and I'm using continuous rotation servos for my motors. I'm trying to control it with a radio controlled system, but I can't mix my channels like I need in my radio, so I wrote some code to read...
  5. B

    Byte variable math, can calculations be greater than 255?

    Thanks everybody! I'm in the early stages of making a three channel servo signal translator to control a three wheeled omni-wheel robot with a standard RC controller. A while back I thought I couldn't do three pulsin commands with three servo and servopos commands at the same time, but now I...
  6. B

    Byte variable math, can calculations be greater than 255?

    I am getting a servo pulse length via a pulsin command, then averaging its value with 150. Will this math work with a byte variable (that should pulsin at between 100-200) since when I add it to 150 it may be as high as 350 before dividing it by two, even though the math is on one line? let b0...
  7. B

    Mosfet suggestion request

    I am building a project in which I am controlling an SN754410 motor driver driving a small brushed motor with a 2 cell LiPo (8.4v at full charge). The motor is only on a small time, and the rest of the time the 20x2 Picaxe sits in sleep mode, awaiting an interrupt, to conserve the 1000 mAh LiPo...
  8. B

    Labels after interrupt label but before return

    I have a program (for a 20x2) that is going to spend most of its time in a sleep 0 loop for battery savings, but then go to the interrupt label on an interrupt. Can I have multiple program labels after the interrupt label (and have the program flow jump around between them), but before the...
  9. B

    Hardware interrupt confusion

    I am trying to keep a Picaxe in sleep until it gets an interrupt pulse on a pin, but I'm having some confusion understanding the process. I understand that I need a hintsetup command to get things set up, and since I'm using a 20x2, I'm going to use a %01000100 mask to use inturupt 1 on a...
  10. B

    Manual 2 for C?

    Hey all, somewhat off topic question here but I don't know who else to ask. Picaxe is the only microcontroller I have ever used (as Basic is the only language I know), and I am wanting to learn the C programming language to help me use other microcontrollers as well. I am having a hard time...
  11. B

    LEGO 2.4 GHz Radio Control Power Functions

    I built a circuit to translate hobby servo signals into PWM power for LEGO power functions. The infrared remote controls that LEGO sells to control your remote devices are nearly worthless for controlling cars, so I decided to use hobby 2.4 GHz radio controls. It worked surprisingly well. In...
  12. B

    solenoid circuit makes non-reprogrammable chips

    Hey all, I have built a circuit to fire a solenoid when an infrared beam is broken, but I need to reprogram my Picaxe 08m2 to make the delay that the solenoid stays engaged for. I can program a brand new 08m2, but when I try to reprogram the chip it says Hardware Not Found. I can reprogram the...
  13. B

    12 channel 8 bit PWM shift registers

    I’m looking to use some shift registers on my next project to control about 24 RGB LEDs. It looks like the popular one to use is the TLC5940. The PWM data is 12 bit per channel, and I don’t need that much resolution, and it looks like 8 bit would be a lot easier to use with the shiftout...
  14. B

    20x2 low B problems

    I’m doing my first Picaxe project here, in which I am trying to light up 8 banks of 5 parallel LEDs in a sequence with a 20x2. Each bank of parallel LEDs is controlled by its own pin, through a 2N2222 transistor. I’m using pins B.0 through B.3 and C.0 through C.3. The problem I’m having is...
Top