Search results

  1. A

    Light Dependent Resistor (LDR) and LED lighting

    Hi, Electrically, the voltage rating of a capacitor is not very important, provided that it is "high enough". So in principle a PICaxe circuit could use 6.3 volt electrolytcs (but there can be minor disadvantages). A parameter of capacitors that we haven't really discussed is their physical...
  2. A

    Light Chaser; Preloading EEPROM data

    Hi, Yes, I'd just write, cut/paste a number of "mini programs" (or Macros or Subroutines) to send the bytes via I2C. Don't forget that you can't write across page boundaries with the serial EEPROMs, so you need some careful "housekeeping". Cheers, Alan.
  3. A

    Symbols & Variables

    Hi, Yes, that is an "old" chip which makes it a little difficult for all of us. Often the Editor/Simulator is the easiest way to find out what is "possible" and it looks as if that chip has 14 variable bytes (b0 - b13), two "banks" of RAM (not accessed in the same way as modern PICaxe chips)...
  4. A

    Maths Problem

    Hi, Some of the "art" of writing good computer programs is to cover all eventualities (commonly known as making them "bomb proof") and preferably with no need for the user to read an instruction manual (RTFM). Of course that's not "essential", but IMHO something to aspire to, particularly when...
  5. A

    Light Dependent Resistor (LDR) and LED lighting

    Hi, Page 44 in my version of Manual 1. ;) Cheers, Alan.
  6. A

    Light Dependent Resistor (LDR) and LED lighting

    Hi, It should be "easy" to include Flashing the lights (and probably polling another train-sensor), within the basic "gate-stepping" loop (just another loop-counter, etc.). PICaxe interrupt capabilities are quite limited, so they're best saved for something "important" or urgent. Cheers, Alan.
  7. A

    Light Dependent Resistor (LDR) and LED lighting

    Hi, An Arduino drains much more power from the supply, so it may need a "better" power supply (than a PICaxe), which then may well be able to also drive servos. In principle, a PICaxe can run off 3 Carbon Zinc AAA cells, but I wouldn't try also adding a couple of servos. ;) As for moving...
  8. A

    Maths Problem

    Hi, The issue here is that the maths is NOT complicated, but the input data is "logarithmic" and the output data is linear, which is not favourable for a lookup table method. I did post a code snippet to do a "Reverse Lookup" to get from a (Log) Word range back to a (Linear) byte value, but...
  9. A

    Light Dependent Resistor (LDR) and LED lighting

    Hi, I don't think the "bus ripple voltage" waveform in #77 has been explained yet: :( As for the ceramic capacitors, obviously one meaning of the "P" is the pitch of the leads (personally I prefer 2.5mm, but they seem harder to find than 5mm now). But the most common unit for them is pF...
  10. A

    Maths Problem

    Hi, If 112 * 33 / period is giving a result of 67, then presumably the timed period is "55". That means that above about 60 mph, a few speeds will never be displayed, for example I believe 65 mph. Or you could "round" the result to the nearest integer, but then some other values will be...
  11. A

    Parallel Task Problem

    Hi, Thanks for your reply. Actually, your use of GOTOs wasn't particularly "bad", but the "list" sequence of IF .. THENs .. will cause the output pulses to have somewhat different widths. However, the sometimes "preferred" SELECT .. CASE structure has the same issue, probably worse! An...
  12. A

    Maths Problem

    Hi, I did actually tell you that in #3 of your previous thread: For best accuracy or resolution you need to create a "calibration constant" approaching (but not greater than) 65535 and then divide it by the time taken, so IMHO 123 * 33 is not large enough (perhaps because your time value is...
  13. A

    Light Dependent Resistor (LDR) and LED lighting

    Hi, Basically, I don't believe that the PICaxe could work on the supply voltage that you've shown, so "something is wrong". The most direct way to find out, is to connect the PCBScope CH1 to the PICaxe's +5v pin (Vdd, and traditionally wired Red) and CH2 to the 0v (aka Earth, Vss, and...
  14. A

    Parallel Task Problem

    Hi, You're not using any "SubProcedures" (Subroutines) you're using Multi-tasking. IMHO that's a very inappropriate use of Multitasking and is forcing the execution speed to an undetermined 16 / 4 MHz (much better done with SETFREQs if needed). There doesn't seem any point in...
  15. A

    Verification error: 0x00 transmitted but nothing received.

    Hi, No, I don't think there's a formal recommendation: Normally I would only {dis}connect at c) when physically required (e.g to test or use another board) and would do a) first as it takes a long(er) time. Occasionally, I find the USB-serial port (usually to the Terminal window) hangs or...
  16. A

    Micropower High pin solution?

    Hi, The FVR appears to consume a typical 70 uA (at 5v) and there are other modules such as the BOR, T1OSC, A/D and WDT (the last required to time the sleep/nap period), but I would expect their current drain to change only with the respective setup commands (FVRSETUP {OFF}, ADCCONFIG, etc.)...
  17. A

    Micropower High pin solution?

    Hi, Compared with what? Sleep or "normal" running? AFAIK there is no significant (additional) power drain associated with taking an ADC reading. The FVR (which can be used as the ADC Reference) does of course drain some power when it's enabled. However, it is "well known" that a digital...
  18. A

    Light Dependent Resistor (LDR) and LED lighting

    Hi, That waveform looks very "suspicious" and my inclination is that "Earth" is not what you think it is, BUT..... If the "Earth" (local to the point that Channel 1 is measuring) is "dirty", then connecting it to the PCBScope might cause damage, so: Connect the Channel 2 probe to the Earth...
  19. A

    14m2 and Touch16 'channels' ids

    Hi, With 5 channels (buttons/pads) you have the "advantage" that if they all change at the same time (or even any more than two of them) then the program can know that "something else" has changed, so a re-calibration is required. Note that because the raw (TOUCH16) data represents a...
  20. A

    Light Dependent Resistor (LDR) and LED lighting

    Hi, The specification of the capacitors is not too important, whatever you can get easily and cheaply (maybe that "local furniture store" again?). Basically, a few 10 uF at 16 - 25 volts, 47 or 100 uF at 16v electrolytics, and perhaps 1 uF ceramics (you normally won't find much larger). An...
Top