Search results

  1. G

    accurate square wave generator

    40X1 but plan on using 28x2 once it arrives I want to send a square wave to a Steper motor driver and I need an accurate result. I am using the following code: runmotor: pauseus total ' total is 16 bit value toggle 7 'output pin for square wave 'Check input states for limit switch...
  2. G

    40x1 and pwmout pwmdiv error

    I am tring to work withe 40x1 and pwmout command When I add the pwmdiv it tells me I have an error in the way I am referencing portc 2 any ideas? #picaxe 40X1 high portc 2 pwmout portc 2, 249, 500 do:loop but this does not when I add in the pwmdiv4 #picaxe 40X1 high portc 2 pwmout...
  3. G

    Shiftin Firmware error

    I am trying to read 4 BCD Thumbwheels and I need 16 inputs. I am playing with the 74HC165 Shift Register. As I am just learning the to use the picaxe I need some help gettng started. I found an old Basic Stamp code I am tring to convert to use with my 40X1 chip...
  4. G

    Troubleshooting Communications

    I made a project a few years back using a 28X1 chip to read 8 DS18B20 temperature sensors and send to my com1 port. Well it crapped out. I have voltage at all my sensors (inputs) and I know my program is running because I have an LED flash after each readings are taken every second. But I am not...
  5. G

    mA output on transducers

    I need to measure a pressure transducer and have seen a lot rated at an output of 4-20 mA. I believe these are 2 wire transducers. Can the picaxe read these outputs or do I need to go through a separate ADC chip first?
  6. G

    USB010 powering the Picaxe

    I read the datasheet on the USB010 and did not see any schematics. Can I get the 5 volts to power my picaxe chip by using this converter? What pin would it be on the DB9?
  7. G

    Daisy chaining serial devices

    I have made an 8 position temperature logger using the 28x1. It uses a serial cable to send the readings to my computer. I need to have multiple loggers but I only want to tie up 1 com port. So I thought an input and output serial port is needed on each of my logging boards. I believe I would...
  8. G

    rotary actuators

    I want to regulate the temperature in a cure rooom to 21*c to 25*c. The room is essentially a walk-in freezer with no controls. The room need to be at 95% Relative humidity by the use of misting heads. The water temperature going thru these heads is what keeps the room at the right...
  9. G

    multiple DS18B20 sensors

    Using a 28x1 I want to read a bank of 8 DS18B20 's. I see they pull 4 ma each. If I ganged all the Vss together I would be pulling 32 ma I assume. Can I tie this directly to the Vdd +5v and have it not affect the Picaxe 20ma requirement? I would leave it on all the time. The alternative would...
  10. G

    readtemp12 pins on 28x1

    I searched the manual for the pin requirements for the readtemp12 command and did not see any limitations other than an analog input pin. I upgraded my chip to the 28x1 but can not get the pin I want to read the analog value. I get an error with: ReadTemp12 porta pin3,W0 'leg5 It only allows...
  11. G

    28x1 SerRxd wiring requirements

    What is the circuit requirements (resistors, etc..) for using the serrxd on the 28x1? I want a dedicated cable to upload data from my PC's serial port.
  12. G

    debouncing matrix keypad code

    I am using a 40X1 and a 3x4 Matrix Keypad. I need to debounce the return values. I have had success debouncing single input buttons but not a matrix configuration. here is part of the code: <code><pre><font size=2 face='Courier'> Keyscan: let key_value = 9 high portc 4 gosub key_test low...
  13. G

    flags in simulator

    I am using this code in the simulator and I am not seeing the flags line update. Also the toflags statement is outputing 0 when I used it in the sertxd as shown below. This code updates the timer every 6 counts. that part works ok. Using it on x1 chips. <code><pre><font size=2 face='Courier'>...
  14. G

    Counting pulses over hours

    I need to count pulses over a long period of time for my stepper motor project. My frequency range is 1hz to 5Khz. I am micro stepping my motor as slow as 1/8th or 1600 steps per rev. However that resolution is more than I need so I was thinking of counting only every x pulses. I estimated that...
  15. G

    Problem With Min

    I am having a problem with the MIN function. When I set it to 2 and have a large stepsize on my dec routine below it rolls over to 65xxx. Is this a bug or am i not using it correctly. This is happening in the sim and on the chip. The way it fails is set input 2 until it maxes out at 5000 then...
  16. G

    Sim 5.1.5 problem with Sertxd

    I am not sure why this is not working but in version 5.1.5 of the simulator it locks up on the Sertxd line looping indefinately with no output. Perhaps I am doing something wrong. IF I comment out W3=W3*2 then it works. <code><pre><font size=2 face='Courier'> for W1 = 2 to 65535 W3=50000/W1...
  17. G

    Monitoring how long an input is down

    I have some code to increase or decrease a 16 bit variable and display it on a LCD (using the terminal for now). IT is working fine but my code may be cumbersome. But I need a way to increase my step size of my increment based on how long an input pin is depressed. So every 5 seconds increase...
  18. G

    Debouncing button command

    I am trying to get an output to go high while a button is depressed then low when released. Sounds simple but I have not had much luck getting it to work using the delays recommended in the manual. Before I go to a RC debounce I wanted to get some input on my code and possibly how to implement...
  19. G

    Division by Variable

    I am trying to divide by a variable and use the whole number as a word and the fraction as a word also. My variable ranges from 1 to 5000 only For instantce: My equation is 5000/W0 If W0 = 2002 then I need the answer to be: 5000/2002 = 2.497502 W1 = 2 W2 = 498 (only 3 places) W1 is the easy...
  20. G

    Hardware Timer for accurate pulsout?

    I am trying to send a stepper motor step signal with a range of 0.1 steps per second to 2000 steps per second. I need less than 1% error. I have not been able to get accurate frequencies measured on my scope using the pause command. Using the Pulsout I get an accurate pulse but the rest of the...
Top