Search results

  1. T

    I need to use the serin command for a fixed period of time.

    Thank you. I'll research this.
  2. T

    I need to use the serin command for a fixed period of time.

    Attached is the first part of some code. I have a sensor which transmits a fault signal in the event of a problem. If there is a fault the sensor transmits the fault signal every 10seconds. When the system is first switched on a red LED flashes and then remains on to indicate a valve is closed...
  3. T

    I am trying to convert bytes to a word, what am I doing wrong?

    Got it. I will not be able to try this until late this afternoon. The b3 = b1 * 0 is a mistake, I was trying all sorts of things. It should be b3 = b1 * 10 of course.
  4. T

    I am trying to convert bytes to a word, what am I doing wrong?

    I get data from a sensor via a serial link. No problems, this part works fine. If I include the four lines near the bottom to convert the three bytes into a word I get a large number (about 50,000) instead of the expected 200 to 999. Inspecting the three bytes at the first debug the numbers are...
  5. T

    How do you operate an 08M2 at 9600 baud?

    Thank you! The fix was 9600_32, I took your advise on m32. I also have fixed some of the odds and ends you found. I will not be able to try the system until tomorrow. I am a hardware engineer, software comes hard to me.
  6. T

    How do you operate an 08M2 at 9600 baud?

    I am doing something wrong with the serout command. I want to use a device (Atlas Scientific EZO ORP) that communicates with 5v RS232 protocol. Its default baud rate is 9600. The device allows the user to change this rate to a number of other rates but first the change command has to be sent at...
  7. T

    Low cost BLE modules?

    Has anyone any experience with picaxe and low cost BLE modules?
  8. T

    Can the 'setfreq' command be used with the 'start0... ' series of commands

    If the 'setfreq' command is at the beginning of the program an error massage ' Start0 must be at the start of the program'. If the 'setfreq' command is inserted inside the 'Start0' routine another error message appears 'setfreq not allowed in multitask program'. I also cannot use the very useful...
  9. T

    Cannot find AXE027

    I am doing a PICAXE installation on a friend’s computer. The AXE027 has been installed correctly. I can go to device manager, click on USB controllers and see the ‘AXE027 PICAXE USB’ appear and disappear as I plug the cable in and out. Right click on it and select properties and read ‘This...
  10. T

    Can anyone do mathamatical magic?

    I understand that picaxes can only handle positive integers from 0 to 65,535. Does anyone know of a mathematical sleight of hand that will allow me to find the reciprocal of a word and then multiply it to bring it back to a word once more? For example; 1 / 20,000 = 0.00005 0.00005 x 1000 x 1000...
  11. T

    Wrong DS18B20?

    I need to read the temperature and I do not like to re-invent the wheel so, not the cheapest way, I ordered a DS18B20 from Mouser. The 08M2 circuit is simple, + to +5v, DQ to leg5 (C.2) with a 4k7 pullup to +5v, GND to 0v. The code is: main: readtemp12 c.2,w1 debug goto main The data pin...
  12. T

    RFout baud rate

    I have a reliable wireless link using a low cost transmitter and receiver pair running at 1200baud using serin and serout. I recently bought some 18M2 devices and experimented with the RFout and RFin commands. With the two chips connected on the bench with a wire, no problems. When I use the...
  13. T

    Counting pump cycles

    I have a system with a number of pumps, water tanks and float switches controlled by a 18M2. The software works correctly. I continuously scan the float switches and switch the pumps on and off as required. No problems. I want to count the number of times a particular pump is switched on and...
  14. T

    ascii via serial link

    On sertxd it is the 'N' version, idles low with high going ones.
  15. T

    ascii via serial link

    I want to send via the serial output a string of numbers. I am constrained by the hardware to only be able to use out0. I am using the sertxd command. The device is an 08M2. symbol tripped = pin3 main: pause 100 if tripped = 0 then goto main pause 100 if tripped = 0 then goto main let...
  16. T

    Debounce for the 'count' command

    I have a NO relay contact with a pull up resistor. I need to count how many times it closes within a certain period. Using the count command I get the wrong answer because of switch bounce. To get rid of switch bounce in software normally requires a short pause. What do I use for the count...
  17. T

    Unexpected 08M2 resets

    For some time now I have been having problems with the 08M2 PICAXE chip randomly resetting to the beginning of the code. I believed it was a layout problem and made a work around in software. I have since made two more projects but I am still getting unexplained resets. The latest project is a...
  18. T

    Counter or timer with 'serin'

    I am looking for ideas on a timer or counter that will run while using ‘serin’. I am running some code and hardware with a 08M2 that is working perfectly. Part of it uses a wireless link and most of the time the program sits waiting for a signal using the ‘serin’ command. When a signal is...
  19. T

    How many ways are there to reset a picaxe?

    Answers to Dippy’s questions. It was OK with 08M but not working with 08M2. I am about to try some old 08Ms in the new board. It happens with either batteries or stabilized supply. Pin 2 was connected via a 10k resistor on both old and new boards. It was just shorted due this investigation...
  20. T

    How many ways are there to reset a picaxe?

    How many ways are there to reset a picaxe? I have a picaxe system that works, as designed, perfectly but keeps resetting itself randomly. It does this at a rate of once every 48 hours to about once every 2 hours. I have previously built over 100 of these systems without this problem. The last...
Top