Opto Slot Sensor
. A slotted opto switch, where the sensors are mounted to face each other and indicate when there is an obstruction in the slot. New modulation encoding techniques for indirect rotor position sensing in switched reluctance motors.
Started 21st Feb 2020
After finding how sensitive the ITR9606 opto interrupter is to changes in position when operated in a linear mode instead of the usual on/off switching mode I made a practical device out of it, in the form of a 3D printer Z axis probe.
My idea is to block the slot in the opto interrupter with a piece of material (I'll call it a shutter) attached to the core of a push pull solenoid. A push pull solenoid has a spring, when there is no current flowing the spring pushes the core out of the coil, when current flows magnetism pulls the core in and compresses the spring. By varying the current in the solenoid I can position the shutter so that it partially blocks the opto interrupter at the point which is most sensitive to changes in position. The output from the opto interrupter indicates the position. The arrangement is such that when the core is fully drawn into the solenoid the shutter clears the slot and when the spring is expanded the slot is blocked.
Banner Engineering has a wide variety of sensors to solve challenging problems all over the world. New and innovative technology in photoelectrics, laser distance measurement, ultrasonics, and fiber optics work to solve almost any industrial automation application. EE-SX671A OPTO SENSOR 5MM L-SLOT TYPE Omron Automation and Safety 12628 pcs Stock RFQ; GP1A58HRJ00F PHOTOINTER OPIC SLOT 5.0MM PCB GP1A58HRJ00F.pdf Socle Technology Corporation Ask For Stock Quantity. RFQ; EE-SX401 OPTO SENSOR SLOT TYPE 3.4MM PCB 447648-3.pdf Omron Electronics Inc-EMC Div 2551 pcs Stock RFQ.
When the slot is blocked, the opto interrupter output is high and when the slot is clear the output is low. So if the output is high the current through the solenoid needs to be increased and when the output is low the current needs to be decreased. Somewhere between these two extremes there is a current which gives a middle value for the opto interrupter output.
I obtained the solenoid from ebay[1]. It was designed to snap into the core drawn in position by having a piece of iron riveted to the bottom inside the solenoid - I drilled this rivet out (photo 5 shows the piece of iron). This both gave me more linear operation and allowed a probe to emerge through the resulting hole (photo 3).
If the opto interrupter is being powered from 0 to V volts then the desired output is V/2 or if the supply is denoted -V to V then the desired output is 0 - either way the deviation from the desired value can be called the error. My first idea was to take the error apply a lot of gain and apply it to the solenoid - at some point the error multiplied by the gain will be enough to make the solenoid maintain the error value. When I tried this I got oscillations - about 30 Hz - and I had visions of there being a lot of mechanical Physics involved in a solution - mass on a spring and all that.
I searched for magnetic levitation circuits to see how they worked - [2] provided me with all I needed. The previous idea is known as proportional control, some derivative information has to be added. This is easy only needing a resistor and capacitor and it stopped the oscillation.
I set out to sense the print bed of my 3D printer, contact will apply an outside force to the solenoid core via a probe, this force will alter the core position and changing solenoid current will not be able to restore the correct position. To detect this I could add a comparator and look for the change in output from the opto interrupter, but that requires calibrating the system aka 'pot twiddling'.
A better idea to is to give the system some memory so that it knows when the position is being changed. To do this the error is fed to an integrator the output of which feeds the solenoid. The result of feedback is that the error is reduced to zero - at least whilst there is no external force. If something pushes the solenoid core then the error is non zero and the output of the integrator becomes maximal - both conditions easy to recognise with a comparator.
The proportional and derivative drives are still needed, the combination is known as a proportional–integral–derivative or PID controller (wikipedia).
Schematic diagrams:
The second schematic is of the 'power supply' the 12 V printer power is noisy, I fixed this by using a capacitance multiplier [3] and combined this with hardware for switching the power on and off. Typically a micro-controller pin with a range of 0..5 V is going to deploy and stow the probe.
The first schematic is of the main circuit, it uses 4 op-amps. The output is designed to connect to a micro-controller pin with a built in pull-up resistor, it can only sink current. When the probe touches something the output will sink current and the micro-controller pin will go low. A potentiometer R14 sets the comparator trigger point - effectively this is the sensitivity of the probe. It can be made very sensitive, such that stamping on the floor nearby will trigger it. There is a lot of vibration in a 3D printer which means the sensitivity needs reducing.
3D print files:
The slotted plate is designed to bolt on to my E3D v6 Bowden Mount.
Photos:
G-code M48 makes the printer perform a test of the repeatability of Z axis probing. Executing M48 P10 v4, typical results are:
Mean: 0.019875 Min: 0.016 Max: 0.022 Range: 0.007Standard Deviation: 0.002050
These should be compared with the results on the Z Probing page, they're respectable but not quite as good as the best inductive probe.
Operating force is a few gm. The solenoid has a maximum force of 6 gm in the position the electronics maintain. When the bed begins to push the probe, the electronics attempt to increase the force being exerted by the solenoid, this 'taking up the strain' process means probe movement without any triggering is possible.
The solenoid can be characterised by the size of the throw - how far it moves - that distance is the difference between where the probe is when deployed and when stowed. Because some range is required to adjust the opto interrupter not all the throw is available. Another parameter is the 'slop' how close a fit the core is - the one I used was quite sloppy and I ended up designing a 3D printed 'bearing' to reduce movement.
When the probe is deployed and the opto interrupter position is being maintained forces are in balance and only a tiny additional force would cause movement. I assume that the more of the core is drawn into the solenoid the greater the force needed to move it.
The solenoid is doing two jobs, firstly it is seeking out the small sensitive position in the opto interrupter, secondly it is deploying the probe - moving it below and above the printer nozzle.
(1 Newton is equal to 101.97 grams weight)
Marlin firmware:
I set up these lines in configuration.h
Mark 2
In the above circuit the comparator is not looking at the output of the opto interrupter, rather it is monitoring an integrated version of the error. Changing this gives results as good as those of inductive probes:
Mean: -0.047625 Min: -0.049 Max: -0.046 Range: 0.003 Standard Deviation: 0.000919
This time Marlin needs:
Schematic diagram:
Links:
- 'DC 6V-12V Micro Mini Solenoid Electromagnet Actuator Open Frame Suction Type Rod'
Comments
(5PCS) GP1S093HCZ0F SENSOR OPTO SLOT 2MM TRANS THRU 1S093 GP1S093
Buy it now, you will enjoy
✓Ship Out Your Order Same Day!
✓Shipping Worldwide!
✓Limited Time Sale
✓Easy Return.
Product Overview | |
Product Name | (5PCS) GP1S093HCZ0F SENSOR OPTO SLOT 2MM TRANS THRU 1S093 GP1S093 |
Quantity Available | Can ship immediately |
Description | (5PCS) GP1S093HCZ0F SENSOR OPTO SLOT 2MM TRANS THRU 1S093 GP1S093 |
Minimum Quantity | Starting from one lot |
Product Attributes | |
Categories | |
product id | 71138 |
sku | 2923fb20-12d9-11ea-91a0-001c4299 |
gtin14 | |
mpn | 34e3de0d |
Part Status | Active |
Why choosing us?
What's the Price?
What's the Payment Method?
What's the Refund & Replacement?
What is the minimum order quantity for your products?
When will you send the parts to me?
How do I place an order?
How do you make our business long-term and good relationship?
For any other questions, please feel free to contact us. We are always at your service!
- Product Code: (5PCS) GP1S093HCZ0F SENSOR OPTO SLOT 2MM TRANS THRU 1S093 GP1S093
- Availability: In Stock
$6.00
3 reviews / Write a review
Tags: (5PCS), GP1S093HCZ0F, SENSOR, OPTO, SLOT, 2MM, TRANS, THRU, 1S093, GP1S093
Top 20 Integrated Circuits & Transistors Products for January
Rank | Image | Price | Product Name |
---|---|---|---|
1 | $3.17 | 10PCS 78L08AC Package:TO92, | |
2 | $16.50 | 10PCS 40T120FDHA TO-247 | |
3 | $18.00 | 1pcs CS8404A-CS SOP-24 DAC IC | |
4 | $149.00 | NEW SURPLUS 1PCS 042005 BURKERT 0142 A 20,0 FPM PV D25 PN0.5-6bar 230V 50-60Hz | |
5 | $20.30 | 3PCS LTC3407EDD-2 IC REG BUCK SYNC ADJ 1A DL 10DFN LTC3407 3407 LTC3407E 3407E L | |
6 | $3.99 | 10x ORIGINAL HK4100F-DC6V-SHG 3A 250VAC 30VDC 6Pins JRC-21F Relay | |
7 | $54.78 | TOSHIBA TIM5964-8A RF MICROWAVE POWER GaAs FET | |
8 | $12.84 | 40-PCS HARDWARE AMP INC 747580-8 7475808 | |
9 | $70.92 | 1PCS LTC2155IUP-12#TRPBF IC ADC DUAL 12BIT 170M 64-QFN LTC2155 2155 LTC2155I 215 | |
10 | $29.72 | 1PCS GN2013ACNE3 10G CDR WITH MSLA GN2013 2013 GN2013A 2013A GN2013AC 2013AC | |
11 | $5.10 | (5PCS) 2SB1302S-TD-E TRANS PNP BIPO 5A 20V SOT89-3 B1302 2SB1302 | |
12 | $4.70 | 2PCS NEW RT1408B7P CTS D/C:0315+ SMD | |
13 | $12.99 | QTY (25) 74F11PC FAIRCHILD 14 PIN DIP TRIPLE 3-INPUT AND GATE NOS 1 TUBE | |
14 | $16.18 | 85-PCS CAPACITOR 10PF GENERAL PURPOSE 105°C 5000HRS 6.1MM H EEVHA2A100P 2A100 | |
15 | $11.73 | 10PCS TPA311DR IC AMP AUDIO PWR .7W MONO 8SOIC TPA311 TPA311D 311D 311DR | |
16 | $13.98 | 10PCS ON Semiconductor LF353N LF353 Dual Wide Bandwidth JFET Input Op-Amp IC New | |
17 | $3.00 | 10 x JCS4N60CC N-CHANNEL MOSFET TO-220 600V 4A | |
18 | $15.60 | 30-PCS RESISTOR 47K 5% GENERAL PURPOSE RM12J473CT 12J473 | |
19 | $17.42 | 3PCS AT49BV002AT-70TI IC FLASH 2MBIT 70NS 32TSOP AT49BV002 49BV002 AT49BV002A 49 | |
20 | $11.67 | 1PCS 183NQ100R Package:MODULE,SCHOTTKY RECTIFIER |
Thankyou
2020-12-21 19:06:54Thank you for very fast shipping!!!!!!!!!!!!!!!
2020-12-21 17:40:32Bardzo dobry sprzedawca
2020-12-12 19:12:41Very Nice
2020-12-08 23:55:515stars!
2020-12-02 17:55:58Item as described, fast shipping. Thank You.
Opto Sensor Ltd
2020-11-30 11:32:11Item as described, thanks
2020-11-23 21:02:33Exactly as described, works perfectly, thank you!
2020-11-16 16:53:31good packaging & Shipment Time
2020-11-11 20:51:14Opto Slot Sensor Switch
Exactly what I was expecting. Super fast shipping. Would buy from again!