Search results

  1. 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...
  2. 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...
  3. 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...
  4. T

    Low cost BLE modules?

    Has anyone any experience with picaxe and low cost BLE modules?
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. T

    Change an I/O from in to out to in on the fly

    I am trying to change an IO port from an input to an output and back again while running some code. I am obviously stupid because no matter what I try, I fail. How is it done?
  17. T

    How do I transmit a 16bit number?

    A 16bit random number is generated and stored in EEPROM. This number can be transmitted via a short range RF link to a receiver and a picaxe. The receiver picaxe has a switch which when operated will cause the microcontroller to go into a “learn” mode. The random number (transmitter ID code) is...
  18. T

    How do I compile PIC basic?

    I am manufacturing a device that currently uses an 08M in a small niche market. Can anyone recommend a product that can convert PIC basic to a form suitable to compile and then programme a raw Microchip device? I have looked at Microchips PRO basic and compared to Rev Eds version will require a...
  19. T

    How can I get an 08M to flash a LED in the background

    I am using pulsin to watch for a pulse of a specific width to appear on an input. The software then goes and does its thing. This pulse will come from a dumb RF receiver so a lot of noise is present so the current software is continuously waiting for this specific pulse width and rejecting other...
  20. T

    How do I write and read a word to EEPROM?

    I have read and re-read the read and write pages in manual 2 but cannot understand how to write and read a wordvariable into EEPROM. There is no wiord example! The example shown has no bearing on word variables and I don't have a serial LCD. Would someone please give me an example of the two...
Top