Search results

  1. Aries

    Getting Data from Adafruit Ultimate GPS V3 onto 28x2 Picaxe

    This is part of my code for a Picaxe M2 getting date & time - I have decoded location as well, but it wasn't relevant to my needs here. #define GPSfreq T9600_32 #terminal 38400 symbol GPSTX = B.1 symbol GpsDataArea = 100 symbol GpsAreaSize = 60 symbol GpsAreaSizeMinus1 =...
  2. Aries

    How do i create a HOLD-in button function?

    Indeed, the code as shown waits 2000 seconds (not 2000 milliseconds). It will work, with a suitable settimer value, on X2. But again, if you are using timer (X2 equivalent) for anything else, you will need to count and test the time from the start by using a couple of word variables.
  3. Aries

    AXE033 OLED Module problem

    The AXE033 seems to be for LCD, although I suspect the interfaces are probably the same. I think the IC is a Picaxe 18M or 18M2, which you could program/reprogram using the code RevEd provide. Also, I see that the PCB itself is on sale at £4.99 (++)
  4. Aries

    6174-Kaprekar's Constant

    Without the setting of value at the start, and without any of the sertxd statements, mine comes in at 147 bytes. The test for all-equal digits is a trivial consequence of using MIN and MAX - if they are the same, then all the digits are the same.
  5. Aries

    6174-Kaprekar's Constant

    This is my take on it. Rather than use a conventional sort, as there are only 4 values, I find the min and max using the Picaxe functions, pass through looking for where they are, pack the remaining ones (leaving two) and then do another MIN/MAX to get the order. symbol value = 100 w10 = 6542...
  6. Aries

    The Pulsin command takes too much time - in search of ideas

    Have you considered using the COUNT command instead? It can count the number of pulses in a short space of time (particularly if you use a higher frequency for the Picaxe (e.g. m16 or m32). I have used it with a Picaxe 20x2 to count the pulses from a flow meter.
  7. Aries

    Where do I need to download PE6 from ?

    I suspect this is a matter of semantics. PE6 is free, so you can't buy it. "Therefore", if you can't buy it, it must be out of stock.
  8. Aries

    Itron EverBlu Cyble Water Meter Reader

    This project dates back to 2019 when a new water meter was installed outside the house. It was difficult to read because of a large lump on top which all but obscured the numbers. This turned out to be the EverBlu Cyble transceiver. I found a very useful explanation of the setup here ...
  9. Aries

    Send multiple (64) bytes via I2C in a loop?

    Not if you use @bptrinc.
  10. Aries

    Send multiple (64) bytes via I2C in a loop?

    You could always have a loop which writes N bytes and executes 64/N times (N a power of 2, of course)
  11. Aries

    LCD

    Look at the manual (serout). The format is serout pin,baud,data You are using N2400 - i.e. 2400 baud (the clue is in the name) You will need to use N9600. If you look at the manual, you will see that the mode is suffixed by "_X" where X is the speed of the Picaxe. If you need 9600 baud, you...
  12. Aries

    SimpleRandomWithNumberRange

    This gives a sequence of random numbers in the range LowNumber to HighNumber (which can be variable) In the simulator, readadc10 doesn't do anything useful, but it often works with an unallocated pin in real life. random generates numbers in the range 0 - 65535. Using ** means effectively...
  13. Aries

    Password

    Are you able to change your password using your work laptop?
  14. Aries

    Using a number instead of a letter-number discripter.

    As you said earlier, there is the catch with X2 chips that the ADC numbers do not match the pin numbers - and they are not necessarily even sequential - so READADC in a loop only works with M2 chips (fortunately mine was a 20M2, and I did use for b0 = B.1 to B.4
  15. Aries

    Using a number instead of a letter-number discripter.

    I have also very occasionally used the "number" variation for pins, usually when I want to do a READADC on a sequential set of pins (e.g. B.1 to B.4) within a FOR loop.
  16. Aries

    Simple code has me lost

    Are you sure you want to reset C.0 (=SSR) to LOW every time you go through the loop from main? It means you will be switching the relay every few microseconds.
  17. Aries

    How do we use an IR remote control & detect multiple button-presses?

    For example, if you read in key presses of "6" and "9" (in that order), and you want therefore to receive "69", it is 6*10 + 9
  18. Aries

    Slow serial baud rate

    The simple answer is "yes". The sertxd baud rate is tied to the clock speed and varies in proportion to it.
  19. Aries

    Select Case

    Think about what you are testing ... In the second test, you do not have a case which a value b1=0 will pass, hence there is no zero The value b1=3 IS >=2, so it reports accordingly. In the third test, your loop is b1 = 0 to 4, which is 5 values. Hence, when you have a set of cases which b1...
  20. Aries

    Select Case

    Your second loop is from b1 = 0 to 3, so it never reaches 4
Top