Recent content by AllyCat

  1. A

    Multiple readadc10 commands in a row

    Hi, Yes, for Export/Import detection you need only the sign of the Current and Voltage signals, which could be done with two digital inputs (e.g. a zero-crossing trigger and a polarity detector). The timing of Zero-crossing is potentially much more accurate than of a "peak" voltage/current...
  2. A

    Multiple readadc10 commands in a row

    Hi, Yes, I must admit that I originally considered the "Enhanced Serial Download Circuit" (Manual 1 page 45) to be over-complex and would simply use a forward diode. But here, we are attempting to make an analogue measurement, and all diodes do have a significant (temperature-dependent)...
  3. A

    Multiple readadc10 commands in a row

    Hi, I think the OP's target is probably possible, but there are a number of potential "gotchas": Firstly, I thought that the ADC used its own clock (divider), so its execution time didn't necessarily "track" directly with SETFREQ, but perhaps I'm mistaken? Secondly, If you're storing a "list"...
  4. A

    28X2 to drive a Rev-Ed 4x20 OLED to tell the time with a DS3231

    Hi, Yes ! I'm not an X2 user but the SETFREQ Command Syntax seems fairly clear that unless you need to operate above 16 MHz and/or with a high accuracy clock, then you can use the Internal Resonator. However, IF you use the External Resonator then the Internal Clock Frequency is ALWAYS 4 times...
  5. A

    Does a 14M2 deliver more current than an 08M2?

    Hi, Do you have a data sheet link for the Relay? It seems strange that it can get "out of phase" with the PICaxe, but perhaps it uses a permanent magnet that is strong enough to "Hold" (if closed) the Relay's armature (which moves the switched contacts), but not to "Operate" it (from the open...
  6. A

    Does a 14M2 deliver more current than an 08M2?

    Hi, When the PICaxe switches the Relay ON, the pulse of current that it (or the Relay Load) might put on the supply rail could cause a "spike" and cause the PICaxe to Reset. The Reset switches all the PICaxe Outputs OFF, so the current flowing in the Relay coil (Inductance) would need to find...
  7. A

    Does a 14M2 deliver more current than an 08M2?

    Hi, Yes, it precludes connecting external diodes directly across the coil, but there are already "electrostatic protection" diodes inside the PICaxe package, to supply and ground, across all I/O pins. It is actually these diodes that are rated at up to 20 mA, whilst the FETs are rated at 25...
  8. A

    Does a 14M2 deliver more current than an 08M2?

    Hi, AFAIK, the often quoted "25 mA" is an Absolute Maximum Rating, not a Guaranteed (Measured) Parameter . Also, there appears to be a lot of "Cut and Paste" in the Microchip data sheets, so there might be some practical differences between "Real" chips. Note that the Output pin drivers...
  9. A

    Solar powered Pond pump

    Hi, Spot on with the watts/hp conversion, I still remember 1hp = 746 watts and = 550 foot.pounds/sec from my schooldays, but I think you are rather (or very) optimistic with the Solar Panels. AFAIK, thin film solar sheets (aka Amorphous Silicon) are still significantly less efficient than...
  10. A

    lcd question with 18m2

    Hi, I don't think so. The program listed in #1 appears to be for an "automobile" type of application, or similar, for which a target lifetime might be 10 or 20 years (or more). The "5000 hours" appears to apply to parameters such as " Hydr. oil low " , " Dynamo off " or " Dynamo Hours...
  11. A

    lcd question with 18m2

    Hi, Over 280 "views" of this thread so far, but the attachments have been downloaded by only 3 - 8 members, which shows why it's generally better to post Program details within [code ] [/code] tags ! From the code attached to post #1, it appears that the program already has a "timing" loop...
  12. A

    lcd question with 18m2

    Hi, You need to use a Word variable and store it in Non-volatile memory with WRITE and READ commands. However, these commands work only with individual bytes (or the WORD qualifier) , so you need to split the Words into individual bytes, e.g. using w1 = b3 * 256 + b2 or WRITE b2 , b3 or WRITE...
  13. A

    Serial OLED Module (20x4)

    Hi, Welcome to the forum. It's usually better to paste program code within [ code] ... [/code] tags, but it looks as if the code you've posted is the normal embedded code for the AXE134Y modules ? That program is intended to act as an "intelligent server" for instructions (ASCII character...
  14. A

    Processing time

    Hi, So the simple solution is to use a PICaxe PWM Output to clock the Stepper driver and use the Program to update the direction and the PWM period (speed) asynchronously as required. Then it should be sufficient (and probably better) to use the PICaxe at its default (4 MHz) frequency. There...
  15. A

    Is there any way for the program to determine what the current SETFREQ setting is?

    Hi, It depends why your "library" needs to know the SETFREQ and it may be important to separate actions by the Program Editor at "Compile Time" and the PICaxe Interpreter at "Run Time". AFAIK Servos are only "recommended" to be used at (at most) two SETFREQs: M4 or M16 for the M2 family and M8...
Top