Recent content by gtslabs

  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...
Top