Search results

  1. H

    quick question on letpins and simulator

    Thanks all! That fixed it.
  2. H

    quick question on letpins and simulator

    I have a seemingly simple program that doesn't work in the simulator: main: let pinsb=%11111111 pause 1000 let pinsb=%00000000 pause 1000 goto main I would expect the b.0 to b.7 pins to go green but they don't. Individual pins can be addressed no problem however. It's my first time using the...
  3. H

    HX711 load cell connecting to Picaxe

    Thanks all. Looks complicated! I'll investigate.
  4. H

    HX711 load cell connecting to Picaxe

    I've been using the above code that Jeremy found (above) in turn from another post on this forum. It's been working great for me for a while now with no issues. I have recently changed the loadcell to a different version, and now the "mid-range" of the loadcell is way outside the range of the...
  5. H

    NAU7802 load cell i2c code

    Thanks for that. It is working! Now to work out the streaming commands....
  6. H

    NAU7802 load cell i2c code

    Can't seem to get past step one...... Here is my code: hi2cSetup i2cmaster, $2A, i2cslow, i2cbyte main: hi2cout $00,($06) hi2cin $00,(b1,b2) debug goto main The datasheet says to send hex 06 into the 00 register so that it powers up the internal analog and digital circuits. Then to check bit...
  7. H

    NAU7802 load cell i2c code

    Hi all, I have purchased a sparkfun NAU7802 board and wish to use an 08M2 to communicate with it. Has anyone here used this chip before? There are no forum search results, so I'm guessing not. Just thought I'd ask before I go reinvent the wheel. In any case, I'll post working code here once I...
  8. H

    Multiple readadc10 commands in a row

    Thanks very much Hippy for the code. I will give it a go. PHIL: it seems that 3 phase meters are no different. They just aggregate their measurements to a single counter, and a single bucket just like the picaxe will. There are reports that some meters use smaller buckets of around half the...
  9. H

    Multiple readadc10 commands in a row

    Ok I'll try to explain more clearly. The aim is to use every joule of my excess solar production by storing the energy in a large hot water heater, while at the same time not exporting any power. This maximises the financial gain, as the tariff for importing is much higher than exporting power...
  10. H

    Multiple readadc10 commands in a row

    Thanks Hippy, That will be enough for an approximation to get something going, and will be better than my original rough idea in the first post. The holy grail would be for the picaxe to monitor all 3 pins for edge transitions, sum or subtract as required, till 3600 pulses are recorded, then...
  11. H

    Multiple readadc10 commands in a row

    OK I have ordered a few AD7755 chips and will be going with a circuit similar to Jeremy Harris' one. It's just so precise compared to trying to roll my own. I love the idea of keeping every single joule that I produce, and not exporting any more than I have to. I have 3 phases to monitor, so...
  12. H

    Multiple readadc10 commands in a row

    That AD7755 looks interesting. Plenty available on eBay still. It was interesting to read that it has a frequency output plus a pin that goes high for out of phase current (exporting solar). That's basically what I was "inventing" with the 08m2 idea. Well it's time to heat up the soldering iron...
  13. H

    Multiple readadc10 commands in a row

    Thankyou so much for your replies. I think an 8 bit measurement should suffice. I'm aware that the system won't measure reactive power, but for my purposes that should be ok. To explain a little more, I'm using this to measure the consumption in each of the 3 phases in my house, one of the...
  14. H

    Multiple readadc10 commands in a row

    Hi all, For a crude energy monitor design, I'd like to capture half of a sine wave by using the readadc10 command, to measure AC voltage and AC current at 50 hz. The voltage would be read with a single diode rectified transformer, with no capacitor, say a 20v transformer with a resistor...
  15. H

    FVR 1.024 positive reference question

    It's a 28x2. I think I'll end up using a resistor divider across the 5v power supply. If I have a resistor divider with 3 resistors: 1.8k,1k,1.8k, then I can connect the high part of the 1k resistor to ref+, low side to ref-, and have full 10 bit positive and negative current range within that...
  16. H

    FVR 1.024 positive reference question

    Oh, I just realised that I think I can't use FVR1024 as the positive reference because the analog voltage measured will be higher than 2.5v..... Initially, I thought the command added 1.024V from the negative reference. I might still use the 2.5V sensor wire as the negative reference and use...
  17. H

    FVR 1.024 positive reference question

    Hi all, The online manual for the FVR command says "Note that the 1.024V reference may not be accurate if used as the Vref+ of the ADC (only 2.048 or 4.096 should be used for this purpose). " https://picaxe.com/basic-commands/advanced-picaxe-configuration/fvrsetup/ Can anyone elaborate on...
  18. H

    Receiving Hisense TV IR signals. Is this possible?

    Thanks so much IWP! Your code is a fantastic running start. My aim is to get the Hisense remote to control the amp volume. I don't want to keep switching from 1 remote to the other. The amp has an encoder type volume control so I'm hoping to solder wires to the knob and spoof high/low...
  19. H

    Receiving Hisense TV IR signals. Is this possible?

    Hi all, Is there a way for any type of picaxe to receive Hisense volume IR commands? I know the irin command receives "Sony" commands but is there maybe a tricky way to get other brands of remote control to work? I only need to receive two buttons from a Hisense TV remote. Volume up and...
  20. H

    external resonator on 28x2 chip

    Sorry guys, I must be going crazy. I thought I bought a 64Mhz resonator, but I was about to post the link to the datasheet of the part i bought, and I realised that I bought the 16Mhz resonator, so all this time, when I was shopping for the resonator, I must have subliminally known that I needed...
Top