Search results

  1. 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 ...
  2. Aries

    40X2 and TUNE

    Another oddity with the 40X2 - it seems that the TUNE command does something to the internal clock frequency. This code tests a piezo sounder by playing a (rather off) sequence of octaves, printing out the counter and the tune-code frequency. Without a PAUSE (or with PAUSE 0) after the TUNE...
  3. Aries

    40X2 and S_W2

    From time to time I write small routines used in many different projects. The routines often use spare system variables S_W0, etc, to avoid corrupting any variables in use within the calling program. The manual explicitly states that S_W2 is adcsetup2 only for the 28X2. However, I have found...
  4. Aries

    SPIIN in Picaxe 40X2

    I use Nordic NRF24L01 transceivers, which use SPI to communicate with the Picaxe. Originally, I used 20M2s, and so had to use bit-banging. Recently, I started to use 20X2s as well, and so "upgraded" to using SPIIN and SPIOUT. No problems. Now, for the first time, I want to use a Picaxe 40X2...
  5. Aries

    Serial Data Recorder

    Several times I have found myself needing to capture the serial output (sertxd) from a Picaxe project, but without the luxury of being able to have a computer permanently connected to it. Also, the time that the output is actually needed could not be determined in advance, so the output could...
  6. Aries

    UK Telephone Management Unit

    This unit monitors a phone line for incoming and outgoing calls, and logs them in a 4095-record circular buffer (actually, I don’t expect to receive and make more than 4095 calls anyway). Interface to the phone line uses a Retell 142. The 142 connects directly to the phone line (not to an...
  7. Aries

    Bug in (at least) 20X2 simulator vs compiler

    I won't try to explain how I ended up here, but code something like this gives unexpected results when actually run on a 20X2: #picaxe 20x2 for w12 = 0 to 2 w10 = 128 * w12 w11 = 2 gosub PrintPTR next w12 end PrintPTR: ptr = w10 sertxd(13,10,"Print PTR") do...
  8. Aries

    CALIBADC & CALIBADC10

    I've been using a slightly modified version of AllyCat's I2C scanner (https://picaxeforum.co.uk/threads/i2c-bus-search-program-for-slaves.32149/ - post #4) on a 28X2 and a 40X2. I've not touched the calibadc section for determining the voltage of the power supply, but it consistently gives me...
  9. Aries

    spiin versus bit-banging

    I am trying to read my water meter using a CC1101 transceiver. The module I have uses (allegedly) spiin/spiout to communicate with its master. However, although spiout works, spiin seems not to. Bit-banging does. for b0 = 0 to 7 high SCK b1 = b1 * 2...
  10. Aries

    dirsC mystery

    I am baffled ... The following is a very much cut-down version of a multi-slot program on a 28x2, where the LED combinations indicate which slot is active. For some reason, the yellow LED (on pin C.1) never lights when the real program runs. The code below lights all three LEDs, but when the...
  11. Aries

    Skewness in random numbers

    I've seen many examples on the forum of using something like "random w0: w0 = w0 // n" to generate a random number in the range 0 to n-1. What I have recently realised is that while this does give a random number, it is not uniformly distributed - there is a greater likelihood of getting a...
  12. Aries

    #DEFINE warning

    I occasionally use #DEFINE where a value can change depending on what code is compiled - #UNDEFINE allows me to redefine it, whereas once a SYMBOL is set it (as far as I know) cannot be unset. I came across this oddity - the code is much simpler that what I was using, but it shows the problem...
  13. Aries

    SPIOUT vs HSPIOUT

    I'm baffled. I'm trying to use a Nokia 5110 with a 20x2 - many thanks to the posts on the forum which enabled me to see in general how to do it. I started with bit-banging - no problem - then moved to spiout for speed - again, no problem. However, I can't get hspiout to work. Obviously I'm...
Top