Recent content by AndyGadget

  1. A

    Drum machine. It's not quite a Roland or a Korg, but not bad for few hours effort.

    Another not a drum machine, but my knock box from 10 years ago. A few years ago I interfaced a Picaxe with a finger drum kit I picked up for a couple of quid on ebay and got it working pretty well with a Euclidean Rhythm algorithm, although the drum kit was strictly monophonic.
  2. A

    SPE035 Serial MP3 - Playing short files

    As an addendum to my comments above, resampling at a lower rate makes a small but noticable difference to the delay before playing. Dropping my samples from 44.1KHz to 12Khz reduced a typical file size from 670KB to 180Kb. My samples are around 12 seconds long. For 2 seconds of speech you could...
  3. A

    Motor speed control by PWM

    Does it have to be that actual fan? There are many 80mm fans available with PWM control and tacho output at a reasonable price. The Picaxe as a simple closed-loop controller would give you full speed control.
  4. A

    SPE035 Serial MP3 - Playing short files

    I've just been experimenting with the DF mini module that the SPE035 incorporates and was looking for minimal pauses in playback. What I've found is that using the $03 command to play the file directly from the FAT pointer is much quicker than specifying a track and/or folder number (command...
  5. A

    Solar powered robot - Charging suggestions requested.

    Weight is a factor, that's why I ruled out lead acid, even though it would be best suited to the solar charging. I'm using worm geared 6V motors which flat out will move it at around 1 metre in 5 seconds with the wheels I'm using. It will have 4 wheel drive and each motor takes approx 50mA...
  6. A

    Solar powered robot - Charging suggestions requested.

    Thanks for the thoughts, Alan. I hadn't fully considered LiPo as it's a few years since I first read up on them and accepted wisdom at the time appeared to be 'charge at 1C - nothing else', but I see now that slow-charging is fairly popular and may extend the cell life. I was also expecting to...
  7. 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...
  8. 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...
  9. A

    simple synth using resistor network for adc input; questions about resolution and cur

    I'm absolutely no sort of a musician so quite happy to believe you about the tuning ;) As you've seen the TUNE command is of pre-defined length with an inbuilt pause after so could be a problem in your application. PWM would allow for continuous notes while a button is pressed. A factor which...
  10. 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.
  11. A

    Test Post

    Test post deleted.
  12. 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...
  13. 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...
  14. 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...
Top