Quote Originally Posted by Darrel Taylor View Post
Grreat!

One by one, knocking out the problems.

As for sticking with it, I'll stick with anyone that put's in the effort. Like you.
Thanks for making it fun.
Thanks Darrel,

I'm always willing to put effort in to these projects, and I've learnt a lot over the course of this thread. I just feel a tad embarrased that I didn't try two seperate power supplies earlier and kept pointing the finger at the code...

Mind you, hopefully the use of your PWM routines in this application may of hi-lighted some areas such as the armature noise, that you may want to look at for future verions.

As for the motors, I have four 2mm scale locos, two are circa 18 years old with an open frame 5 pole motors, the others are less than a year old and both have small can motors... guess which ones produce the better running... yup the older ones !!

As a side note, when I tried your last bit of code I was using a 4mhz Xtal, I then tried it with a 20mhz and it was quite painful, for my ears and the motor !!

Anyway, thanks once again to you and Steve for all your help. To everyone else who's been reading this, sorry if it bored you at times