Recent content by Adrian Hudson

  1. A

    Reading resistance very accurately

    I want to use a three wire PT100 sensor with PICAXE - see diagram - (rather than DS18B20 as these are not accurate enough for my needs). The PT100 is a highly accurate resistance temperature sensor that is exactly 100ohms at 0.01degC and varies linearly with temperature. The problem is, how...
  2. A

    RFA020/021 pair problems

    Forget the flickering thing. That was new and I think it might have been a power supply issue. Here is a photo of the breadboard. As you can see, dead simple. On power on, the heartbeat led flashes quickly three times and then slowly once a second. On plugging the URF into the PC I can see...
  3. A

    RFA020/021 pair problems

    SOLVED: URF was faulty Hi All, I wonder if someone could help me before I tear my hair out. I bought a URF/ERF pair to program a PICAXE 28X2 module over the air and also send low volumes of data to it. "Lets not run before we can walk", I thought. So I put the ERF on a breadboard, connected...
  4. A

    How to detect multiple simultaneous button presses

    How would I detect if a user has pressed (and held for a few moments) two buttons. I really can't think of a reliable way. Additionally, what's the most reliable way to detect if a button has been held down for, say, 2 seconds. Of course, you could detect the beginning of the press, pause 2...
  5. A

    Activity detector

    EDIT: Ignore this post. Apologies. A simple PIR should do what I want. Rapid sell loads. ------------- I want to detect "activity". Activity would be someone moving past a detector of some sort. Activity would also count as someone turning a light off in the room. Basically, what I am doing...
  6. A

    Comms over nasty piece of thick copper wire

    Hi All, I am thinking about building a central heating controller that draws data from my weather station to intelligently control my heating. Please would anyone recommend the (bidirectional) communications mechanism between two X2 series PICAXE chips with the proviso that it must run over...
  7. A

    LED Clock Code

    Hey, sounds just like a clock I just made (with help from others here), although your implementation sounds different (I used MAX2719's). Sorry "Gorgy Timing" for the plagerism (http://www.gorgy-timing.com/en/)
  8. A

    DCD plus!

    I want to convert a the number 0 to 8 to the equivalent number of bits as efficiently as possible e.g 3 -> 00000111 5 -> 00011111 Sort of like the DCD command but with bit filling The obvious way is to shift in a bit in a loop b0 = 6 ; (for example) do while b0 > 0 b1 = b1 * 2 + 1...
  9. A

    Controlling 60 LEDs

    Hi Folks, I want to individually control 60 LEDs for a clock. I need to start with just one on and each second turn another on until they are all on after 60 seconds after which the sequence restarts. The idea is to buld a Gorgy clock with a PICAXE as the basis...
  10. A

    Compiler bug?

    Is it a bug or is it me? (Probably the latter) The first readadc statement does not work (nothing placed in b0) wheras the second statement works. #PICAXE 20X2 symbol LDC = B.4 adcsetup = %0000000001000000 readadc LDC,b0 ; This statement does not work readadc B.4,b0 ; This works
  11. A

    Data sync with AXE213 modules

    Hi All, I am using an AXE213 transmitter/receiver pair - everything working fine except one time the data got ot of sync. I am sending 8 byte "records" as one is supposed to do and somewhere along the way a couple of bytes got lost so the last couple of bytes of one record were transmitted with...
  12. A

    Datasheets for M2 devices

    Hi, Does anyone know what the Microchip part numbers closest to the PICAXE M2 devices are? I have just spent ages searching the forums and Microchip's website (not the most intuitive website in the world). I know the M2 series devices are custom manufactured for Rev Ed but they can't be...
  13. A

    Another AXE133Y OLED question - brightness control

    edit: I meant AXE133Y but I can't change the subject line /edit Does anyone know of a way to dim the display (not completely off, just dim). At night, on a bedside table the OLED display is very B-R-I-G-H-T!! I was rather hoping to strobe the display at say 20-30hz with a short on duty time...
  14. A

    gosubs

    The various PICAXE chips have various levels of gosub stack e.g. all M2 and X2 have an 8 entry stack. This means that gosubs can only be nested (gosubs in subroutines) 8 levels deep on those chips. I can understand this. In addition there is a simple total number of gosubs allowed even if they...
Top