Search results

  1. A

    Solar powered robot - Charging suggestions requested.

    What would be the best battery chemistry and charge technique for a solar powered device requiring a battery of around 5Ah at a voltage in the range 7V to 12V which would be solar charged in the Gloucestershire (UK) sunshine? This will be for a small (about a foot square) semi-autonomous garden...
  2. A

    PWM for small air pump.

    I've just bought a couple of small air pumps to use as part of my solar powered, Picaxe controlled, filter, top-up, aeration and circulation system for a small (2000 Litres - 440 Gallons) wildlife pond. These are the ones - https://www.skycraftsurplus.com/12vdcdiaphragmairpump.aspx - Less than 3...
  3. A

    AXE230 - 08M2 SMD project board.

    Is the AXE230 08M2 SMD project board still available from the Picaxe store? I can't find it on the site. (Would normally wait until Monday and ask directly, but I'm putting mountings into a design now and may get a swifter answer here.) Andy.
  4. A

    Test Post

    Test post deleted.
  5. A

    #rem / #endrem doesn't work with data statements.

    Is this a known bug? Will explore and post more details if not. Using single quote at start of each data statement of a block works fine. Using #rem and #endrem (in lower case) to ignore block of data causes syntax errors further down program. Using PE 5.5.5. *** FINAL EDIT *** If I pass...
  6. A

    18M2+ Table memory usage.

    The command reference (http://www.picaxe.com/BASIC-Commands/Variables/table/) states "M2 parts have 512 locations (0-511). These are separate to the 2048 bytes of program memory, so do not affect program length." When I use a DATA statement the program length given by the syntax check doesn't...
  7. A

    Calculating heading error from desired bearing.

    This is one of those things which should be simple, but by brain is refusing to co-operate on this one. I'm using a Honeywell compass sensor with an 18M2 for a small robot, and trying to calculate the difference between the desired (btgt) and actual bearing (babs). Getting data from the sensor...
  8. A

    PULSIN on the 18M2 causing servo glitch.

    My circuit is using an 18M2 with f/w vB running at 16MHz. Programming Editor 5.5.1. I've got a situation where I've got 2 continuous rotation servos running and a pulsein command is called every 250ms or so. The signal being monitored by PULSIN will usually produce a pulse of up to 20ms, but...
  9. A

    Driving a motor with limit switches from one output pin?

    I think I've just come up with a bright idea for using a servo motor in a multi-rotation mode to drive a pulley / cord arrangement (think of old radio tuning) between two limit switches, from one pin of a Picaxe. I haven't tried it yet but can anyone see a flaw before I do? Compared to a...
  10. A

    Data storage on 14M2.

    I want to store 500 bytes of data on a 14m2. This is to be written at programming time and does not need to changed later. It will be accessed sequentially. The 256 bytes of data memory is obviously too small and further compression is not an option. The program is only around 350 bytes so...
  11. A

    OT, but leading to a PicAxe application.

    How much of a task would it be to detect 5.4KHz RF pulses over a short distance (1 metre) from a low power transmitter? (Just pulse detection, no encoded data.) The application is to detect heartbeat pulses from an old-type heart rate monitor belt and feed them into a Picaxe for processing and...
  12. A

    Wilders moving average.

    I've been scratching my head over this one for a while :- I'm trying to generate a short and long term average for 11 ADC inputs on a 28x2. Below is the code which uses word variables, but is there a way of rearranging this to store the 22 values between reads as byte variables with the...
  13. A

    Minor line colouring bug for 08, 08m, 14m

    PE 5.3.6 Valid general word variables for 08, 08m and 14m are w0 to w6. However, w7 colours magenta in editor as if it is a valid variable. Syntax check correctly gives 'unknown symbol' error. Andy.
  14. A

    A Simple Sort

    Below is a simple snippet to sort three variables into ascending order. It's a bubble sort which works fine, but is there a more compact way to do this? It's for an 08m so can't use SWAP, which is only available on X2 and M2 chips. #picaxe 08m symbol Tmp = b0 symbol D1 = b6 symbol D2 = b7...
  15. A

    PWM Frequency 'on the fly' on 18m2

    For an audio project on an 18m2, I'm trying to change the PWM frequency without issuing a new PWMOUT command. This is to avoid a reset of the PWM timers which causes the audio output to be distorted. This was easy on the 08m - Poking the PR2 register for the frequency and CCPR1L and CCP1CON...
  16. A

    Touch sensors and conductive paint?

    I'm just about to have my first play with the 18M2 and it's touch sensors to get a feel for it in advance of a project I've got in mind. Rather than using actual metal plates for the sensors, I was wondering if anyone has tried painting detector pads onto the back of a thin piece of plastic...
  17. A

    Reserved word - Pot

    I've just tried to define a symbol called 'pot' and discovered it's a reserved word, but I can't find any reference to it in any of the 3 manuals (apart from as a reserved word) or in the forum. It appears to take 3 parameters, but gives the message "'Pot' command not supported in this mode!"...
  18. A

    Reserved word - LF

    I've just received a syntax error for the line : symbol LF = 160 According to Manual 2, Appendix 1, LF is a reserved word, but what is it's function? (Just curious.) Andy.
  19. A

    08M - Possible bug in TUNE and READADC commands.

    I've just spent 2 hours debugging a circuit on the 08m prototyping board, vassilating between suspecting the hardware , the software and the firmware (and the cat's ancestry). I was reading an ADC value, indicating it with TUNE and then setting position of a servo. Very Strange things were...
  20. A

    Missing command?

    On the X1 and X2 chips we have the commands for manipulating a single bit in a byte or word variable - SETBIT, CLEARRBIT and TOGGLEBIT, but no TESTBIT. This is easy enough to do with an AND and a temporary variable, but TESTBIT would be much cleaner. Or am I missing something? Andy.
Top