Search results

  1. W

    Can math solve the question of how many bits of resolution are in use here?

    I’m just curious, and I don’t have the math skills to figure this out for myself, hoping someone can answer the question without difficulty. I’ve been using this circuit for years on 28X2s having created it to precisely control the resistance of a very non-linear LDR over a resistance range of...
  2. W

    What happens to readADC value when input is slightly above Picaxe supply?

    If the Picaxe supply is exactly 5.0V and a voltage divider delivers 5.2V to a Picaxe pin, what is the readADC10 value? Does it overflow?
  3. W

    How to keep changing data on a single line in Terminal

    I am running a loop in a program and three of the lines in the loop are SERTXD commands sending data to the terminal. I would like those data items to remain in a single location on the screen, one data item per line, in three lines on the terminal display rather than scrolling. I think that I...
  4. W

    Math is not my thing; help, please?!

    I am designing a board for audio line-level (preamp) equipment that is intended to prevent large startup and shutdown pulses from reaching the power amp, and I’m trying to make it fairly universal by compensating for power supply voltages of 10~30 volts and permitting user selected startup...
  5. W

    I want to detect the presence of DC while ignoring audio signal AC

    The task is to build a Picaxe-based speaker protection circuit for a high powered amplifier. The Picaxe would provide a startup delay in connecting the amp to the speakers and then, once connected, monitor the signal path to the speaker and ignore any AC signals but instantly disconnect the...
  6. W

    Auto-sense whether a pin should be ADC or serial-input

    I am building a stereo preamplifier and will use a 14M2 for relay-based line level input control. I would like to use a single pin for the input select control line and somehow give that pin the ability to self-determine whether it is being addressed by serial data or by a mechanical selector...
  7. W

    Does a 14M2 deliver more current than an 08M2?

    I use Picaxe chips to build control circuits for the audio preamps, volume controls, etc, that I design. For some time now I have successfully been using a 14M2 chip to drive 5V telecom latching relays to switch line-level inputs and outputs. The coil resistance is 250 ohms and the 'must...
  8. W

    12V trigger for my Picaxe-controlled preamp utility board

    I have put together a pcb that is controlled by a 14M2 and has all of the extra circuitry that I want in my kit-built vacuum tube preamp -- relay-switched in/out, delay, muting, etc. It all works well except it draws rather more current than I would like due to the Rube-Goldberg dual LM317 setup...
  9. W

    Do I need a PAUSE in here?

    I want to use a 14M2 at default clock to control input and output switching of an audio preamp using latching relays. Each relay (250R coil) needs 3.75V @ 20ma for 3ms to switch state, and I use a 120uF capacitor between the relay and ground to absorb and then release the voltage from pins...
  10. W

    power supply with large capacitance between regulator and 14M2

    I am designing a circuit where I want a 14M2 to continue to operate after power is lost. I need, as a minimum, to a) sense that power is lost and then b) switch two latching relays, each relay 5VDC and drawing 20ma for a minimum of 3ms in order to switch. The power to switch the two relays is...
  11. W

    Very high fidelity volume control chip with serial control

    A company in Japan is producing a very high quality volume control chip that can be controlled with 3-wire serial. I would dearly love to develop a Picaxe-controlled front end for my preamplifier using this chip, but I don't understand the documentation well enough to do this. Could someone...
  12. W

    A timing question

    If the chip is a Picaxe 28X2 running at 32MHz and the code is HIGH Drive_Pin INPUT Drive_Pin RETURN then, how long is Drive_Pin held HIGH?
  13. W

    A better way to make selections, faster than IF THEN ELSEIF ELSE?

    I think I remember fairly recently reading a thread in which someone said that method X executes faster than IF THEN ELSEIF selection. I looked at the manual and it seems to me that the only thing it could be is the SELECT CASE routine. Am I right or is there a better way? I'm revisiting a...
  14. W

    How to know when a sawdust collector is full

    A friend has asked for help with a problem he has at his commercial woodworking shop. All of his power tools have vacuum hoses attached with appropriate gates that open when a particular tool is turned on. Sawdust created by the tool is vacuumed through a hose system and deposited in a large bin...
  15. W

    28x2 vref pin's useful voltage is way below the specified minimum.

    I've been doing this for years, but got to thinking about describing it here when replying to the "Thoughts on a Unique I2C-DAC Interface" thread. I'm just putting this out there in case someone would find the concept useful. The minimum voltage specification for the 28x2 vref pin was too high...
  16. W

    Is there a speed penalty when using a Word when a Byte will do?

    Just wondering. Am writing a program with far more than enough Words to cover the variables requirement, wondering if things would run faster if I took the trouble to use only Bytes if that would suffice for a particular variable. Probably nothing significant?
  17. W

    I think I need an interrupt, but I'm not sure

    I am trying to build a program & hardware that will connect to my dslr to enable it to take a series of photos for image stacking with camera focus and image spacing controlled by a Picaxe. Hardware is a NEMA 8 motor, Sparkfun stepper controller board, and a 20X2 board I've repurposed from an...
  18. W

    Can't remember, and can't find, answer to this code problem

    It has been years since I last programmed extensively, and now I'm in a new project and find I've forgotten just about everything about Picaxe programming, so I'm relearning as I go along. Step_Direction is the symbol for C.2 -- it works fine in the first IF .. ELSE snippet, but I can't figure...
  19. W

    Is there a better way to watch for commands from hserin?

    I am using hardware serial in on a 20x2 to watch for IR commands from an 08M2. If no commands arrive then a null "255" is generated and sent out into the program. I trap the null with an IF...THEN test to prevent the 255 from going out into the program where I don't want it. Question: Is there...
  20. W

    Starting a stepper motor project, need one question answered regarding travel limits

    I'm building a picaxe-controlled macro rail system for my camera. The linear guide & stepper (1.5amp per phase) is here https://www.ebay.com/itm/322895892356 The controller board is here https://www.sparkfun.com/products/12859 The Picaxe version TBD once I figure out what I need in the way of...
Top