MisterBill2
- Joined Jan 23, 2018
- 28,502
OK, Ron. That is what I get for not reading every post very carefully.Uh Bill, he solved it.
Ron
OK, Ron. That is what I get for not reading every post very carefully.Uh Bill, he solved it.
Ron
You trying to imitate me? I happen to be a proud major offender of doing that.OK, Ron. That is what I get for not reading every post very carefully.
OK, Ron. That is what I get for not reading every post very carefully.
Another option to consider is to mount it on the rear side of the flywheel on the motor frame, paint and tape the flywheel similar to the front, but this allows for simple mounting using the existing 'brush'? cover screws to mount it flat to the motor frame and ease of protective cover.What do you think of this? Is it correct? I will use this reflective sensor. Another info is that the motor will be enclosed, so ambient light should not disturb. I haven't tested it yet.
I'm actually having serious issues with the mounting. But your idea of placing the sensor on the motor frame is great. I'll test it.Another option to consider is to mount it on the rear side of the flywheel on the motor frame, paint and tape the flywheel similar to the front, but this allows for simple mounting using the existing 'brush'? cover screws to mount it flat to the motor frame and ease of protective cover.
Similar as done in commercial T.M. versions.
Max.
I don't quite follow that logic as a bracket would have to be made to place the sensor out radially?Instead of putting the reflectors on the back of the flywheel, why not put them on the edge, which simplifies mounting the sensor to the motor...
Maybe you unconsciously made that calculation mistake.The OBP704 requires it to be 3.81mm from the surface (see the datasheet). LED should not be run at more than 1.7VDC max, and should be run at between 30mA and 40mA. Max is 50mA, but you should never run an LED at max.
IR LED Transmitter Resistor Size (Ohms):
R = E/I
R = (3.3 - 1.6) / 0.40
R = 1.7 / 0.40
R = 4.25 Ohms.
IR LED Transmitter Resistor Wattage:
P = I*E
P = 0.40 * 1.7
P = 0.68W
P = 680mW
I would breadboard this and test it in different lighting conditions with lower currents on the trasmitting LED to see how well it responds.
Instead of putting the reflectors on the back of the flywheel, why not put them on the edge, which simplifies mounting the sensor to the motor...
I guess it's noise from the switching signal in the motor coming into my microcontroller input? I've tried different positions with no success.If you went with the rear mount on the motor frame, Is it inductive pickup from the motor?
Maybe move it away and see if the result is the same.
Max.
It makes more sense the noise is coming from motor radiation. I will try to upload the layout.Does the noise vary as the sensor is moved? Wiring with shielded cable may help, but as Max mentions above, what is your power supply like?
First, determine if it is induced from the motor radiation or power supply related.
I have experienced that same problem with a pressure transducer. My solution was total electrical isolation from the framework of the machine and completely separating the electrical wires as well. So the shield on the sensor wires was only grounded at the sensor input to the control system, and the sensor ground was only connected to ground at the sensor control system sensor input. In addition, the motor wires were also shielded, and that shield was grounded at the motor drive controller. In that situation it produced adequate isolation. The fix was tedious but not complicated or expensive. So it might possibly be that you will need to experiment with shielding the motor drive wires, and connecting it only to the motor drive package housing. That housing would then also be connected to the "green wire" safety ground.Update: The sensor is working well. But.. when I measure the signal, I'm getting a 5 kHz noise coming from the PWM signal.