Search results

  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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
Top