981
General Mach Discussion / Re: testing a reflective object sensor??
« on: December 28, 2007, 05:24:45 AM »
According to my maths, you can change the resistor in the supply circuit to a 147K and this will do. However, I still think your easiest way is to wire a 5v regulator to your 0v - 12v pins. This will give a regulated 5 v supply for all your sensors. I don't know why Bob Campbell has gone for 12 volts - since the computer works at 5v - it may be so that it is compatible with CMOS chips as well. (Does Campbells board demand a 12v signal back ??)
The 5v regulators are cheap - a matter of pence (or cents). They have three leads - one to 0v, one to supply volts and the other is the output at 5v (usually slightly under) they are as simple as that. They do not consume any current in themselves. A 1 amp version, or 0.5amp version should be more than adequate.
They are completely transparent to the supply voltage, in that even if that varies, the output remains steady.
You can then use the circuit posted (but don't forget to remove the pull up resistor on the output, you don't need it.
You can test the sensor with a volt meter before connecting it to the computer or fitting it to the mill.
Jim
The 5v regulators are cheap - a matter of pence (or cents). They have three leads - one to 0v, one to supply volts and the other is the output at 5v (usually slightly under) they are as simple as that. They do not consume any current in themselves. A 1 amp version, or 0.5amp version should be more than adequate.
They are completely transparent to the supply voltage, in that even if that varies, the output remains steady.
You can then use the circuit posted (but don't forget to remove the pull up resistor on the output, you don't need it.
You can test the sensor with a volt meter before connecting it to the computer or fitting it to the mill.
Jim