Patent Description:
<CIT> proposes a stroke sensor with a detection body housing part which is arranged at a part that overlaps in a radial direction with a movement region in an axial line direction of a detected body. The detection body housing part includes a detection body housing recess part that houses a detection body, and a substrate housing part that has a larger inner shape than the detection body housing recess part, opens outward in the radial direction, and is in communication with the detection body housing recess part.

The disclosure of <CIT> is also directed to a stroke sensor with a housing comprising a board housing part for a circuit board and a magnetic detection element mounted thereon, which faces a magnet housing part of a shaft in which a magnet is inserted.

<CIT> shows different installation options for a force transmitting device. Based on one of these options, the installation takes place by inserting a torque rod into a shift lever connection. Two angularly offset bores are respectively provided on a shifting end and on a transmission end of the torque rod. After the insertion, a transmission connection and therefore a shift lever are attached such that a transmission stop in the form of a pin can ultimately be inserted in order to complete this step.

Transmissions of two-wheeled vehicles or the likes are capable of performing a gear-shifting operation according to a shift operation of a shift pedal by a driver. In a recent year, it has been proposed that a shift device is attached in a middle of a transmission path for transmitting an operation force of a shift pedal to a transmission. As a shift device of the related art, for example, <CIT> discloses a device having a shaft member which can be displaced according to a shift operation of a shift pedal, a housing which accommodates the shaft member in a displaceable manner, a magnet attached to the shaft member, and a magnetic sensor attached to the housing.

Such a shift device of the related art is configured such that, when a driver of a two-wheeled vehicle or the like starts operating the shift pedal and the magnetic sensor detects that the shaft member is displaced with respect to the housing, an engine of the vehicle is controlled to adjust drive torque and a gear-shifting operation of the transmission is performed by causing the shaft member and the housing to move integrally in a state where the shaft member reaches a displacement end. As a result, the driver of a two-wheeled vehicle or the like can perform the gear-shifting operation without operating a clutch.

However, in the above-described technique of the related art, since the magnetic sensor is attached to the outside of the housing, a separation dimension between the magnetic sensor and the magnet of the shaft member becomes large.

As a result, in some cases, it is difficult to accurately detect a magnetic change of the magnet due to the displacement of the shaft member. Further, in the above-described technique of the related art, since the magnetic sensor is attached to the outside of the housing, there is a risk of malfunction due to influence of external magnetism.

The invention is made in view of such circumstances and an object of the invention is to provide a shift device capable of accurately detecting displacement of a shaft member and suppressing influence of external magnetism to prevent malfunction.

According to the invention defined in independent claim <NUM>, the above object is achieved by providing a shift device comprising: a shaft member configured to be displaced according to a shift operation of a shift pedal of a vehicle; a housing which has an accommodation space configured to accommodate the shaft member in a displaceable manner, the housing configured to move integrally with the shaft member in a state where the shaft member reaches a displacement end to perform a gear-shifting operation of the vehicle; a permanent magnet which is formed on the shaft member, is displaceable together with the shaft member, and generates magnetism; and a detecting unit which detects displacement of the shaft member with respect to the housing by detecting a magnetic change of the permanent magnet, where an opening portion is formed in the housing at a portion corresponding to an arrangement position of the permanent magnet, a case is attached to the opening portion, and the case has a cover portion which covers the opening portion and a protrusion portion which protrudes from the cover portion to the accommodation space of the housing and an accommodation portion capable of accommodating the detecting unit is formed in the protrusion portion.

According to a preferred first aspect of the invention, in the shift device according to the invention, the accommodation portion may include an accommodation recess portion opened at a predetermined position of the cover portion, and the detecting unit may be configured to be attached through an opening of the accommodation recess portion, and wiring of the detecting unit may be extended to the outside from the opening.

According to a preferred second aspect of the invention, in the shift device according to the first aspect, a lid member attached to the cover portion in the case and covering the opening of the accommodation recess portion may be provided.

According to a preferred third aspect of the invention, in the shift device according to the preferred third aspect, the lid member may cover a surface area of the cover portion including the opening of the accommodation recess portion, and a bulging portion bulging along the wiring extending from the opening may be formed.

According to a preferred fourth aspect of the invention, in the shift device according to the preferred second or third aspect, the lid member may have a three-dimensional shape, cover a surface area of the cover portion, and be fastened and fixed together with the case.

According to a preferred fifth aspect of the invention, in the shift device according to the preferred first aspect, a shielding member, configured to be inserted into the case and shield the detecting unit accommodated in the accommodation recess portion from the outside, may be provided.

According to a preferred sixth aspect of the invention, in the shift device according to the invention, the accommodation portion may include an accommodation recess portion opened on a side surface of the protrusion portion and at a predetermined position of the cover portion, the detecting unit may be configured to be attached through an opening on the side surface of the protrusion portion, and the wiring of the detecting unit may be extended to the outside through an opening on the cover portion side.

According to a preferred seventh aspect of the invention, in the shift device according to the preferred sixth aspect, the opening on the side surface of the protrusion portion and the opening on the cover portion side in the accommodation recess portion may form a continuous opening.

According to a preferred eighth aspect of the invention, in the shift device according to the preferred sixth aspect, the opening on the side surface of the protrusion portion and the opening on the cover portion side in the accommodation recess portion may be separately formed, and a closing member for closing the opening on the side surface of the protrusion portion may be provided.

According to the invention defined in independent claim <NUM>, the opening portion is formed in the housing at the portion corresponding to the arrangement position of the permanent magnet, the case is attached to the opening portion, and the case has the cover portion which covers the opening portion and the protrusion portion which protrudes from the cover portion to the accommodation space of the housing, and the accommodation portion which can accommodate the detecting unit is formed in the protrusion portion. Therefore, the displacement of the shaft member can be detected with high accuracy and the influence of magnetism from the outside can be suppressed to prevent malfunction.

According to the preferred first aspect of the invention, the accommodation portion includes the accommodation recess portion opened at the predetermined position of the cover portion, the detecting unit can be attached through the opening of the accommodation recess portion, and the wiring of the detecting unit is extended to the outside from the opening. Therefore, the detecting unit can be arranged closer to the permanent magnet and the displacement of the shaft member can be detected more accurately.

According to the preferred second aspect of the invention, since the lid member attached to the cover portion in the case and covering the opening of the accommodation recess portion is provided, the detecting unit in the accommodation recess portion can be reliably protected by the lid member.

According to the preferred third aspect of the invention, the lid member covers the surface area of the cover portion including the opening of the accommodation recess portion and the bulging portion bulging along the wiring extending from the opening is formed. Therefore, the lid member can protect the detecting unit and cover the surface area of the case to improve the design and the bulging portion can prevent the lid member from interfering with the wiring and allow the wiring to be positioned.

According to the preferred fourth aspect of the invention, the lid member has a three-dimensional shape, covers the surface area of the cover portion, and is fastened and fixed together with the case. Therefore, the lid member having the three-dimensional shape can further improve the design and the lid member can cover the surface area of the case widely by being fastened together with the case.

According to the preferred fifth aspect of the invention, the shielding member which can be inserted into the case and can shield the detecting unit accommodated in the accommodation recess portion from the outside is provided. Therefore, the detecting unit in the accommodation recess portion can be covered with the shielding member to ensure protection.

According to the preferred sixth aspect of the invention, the accommodation portion includes the accommodation recess portion opened on the side surface of the protrusion portion and at the predetermined position of the cover portion, and the detecting unit can be attached through the opening on the side surface of the protrusion portion and the wiring of the detecting unit is extended to the outside through the opening on the cover portion side. Therefore, the work of accommodating the detecting unit in the accommodation portion can be easily performed and the wiring of the detecting unit can be easily extended.

According to the preferred seventh aspect of the invention, the opening on the side surface of the protrusion portion and the opening on the cover portion side in the accommodation recess portion form the continuous opening. Therefore, the wiring can be easily extended from the opening on the cover portion side while accommodating the detecting unit in the accommodation portion from the opening on the side surface of the protrusion portion, and thus the workability at the time of accommodating the detecting unit can be improved.

According to the preferred eighth aspect of the invention, the opening on the side surface of the protrusion portion and the opening on the cover portion side in the accommodation recess portion are separately formed and the closing member for closing the opening on the side surface of the protrusion portion is provided. Therefore, the sealing property between the opening portion of the housing and the case can be improved and the sealing property of the opening on the side surface of the protrusion portion can be ensured by the closing member.

Hereinafter, embodiments of the invention will be specifically described with reference to the drawings.

A shift device <NUM> according to a first embodiment is for transmitting a shift operation of a shift pedal of a vehicle such as a two-wheeled vehicle to a transmission to perform a gear-shifting operation. As illustrated in <FIG>, the shift device <NUM> includes a shaft member L, a housing <NUM>, a permanent magnet M, a case <NUM>, and a magnetic sensor <NUM> (detecting unit).

The shaft member L is connected to the shift pedal of the vehicle and can be displaced according to the shift operation of the shift pedal. As illustrated in <FIG>, the shaft member L is composed of a shaft-shaped member extending in a longitudinal direction of the housing <NUM>. As illustrated in <FIG>, a coil spring S is attached to the shaft member L and the permanent magnet M as a magnetic generating unit is attached to a tip portion thereof. When the shift pedal is operated by a driver of a two-wheeled vehicle or the like, the shaft member L can be displaced in the longitudinal direction against an urging force of the coil spring S.

Further, the permanent magnet M is composed of a cylindrical magnet which generates magnetism. By attaching the permanent magnet M to the tip portion of the shaft member L, the permanent magnet M can be displaced together with the shaft member L in response to the operation of the shift pedal. Further, instead of the permanent magnet M according to the embodiment, permanent magnets having other shapes, one obtained by magnetizing plastic or the like, one obtained by directly magnetizing the shaft member L, or the like may be used, as long as it is attached to the shaft member L to generate magnetism.

The housing <NUM> has an accommodation space D which accommodates the shaft member L in a displaceable manner and can move integrally with the shaft member L in a state where the shaft member L reaches a displacement end to perform the gear-shifting operation of the vehicle. As illustrated in <FIG> and <FIG>, in the housing <NUM>, an opening portion 2a is formed at a portion corresponding to an arrangement position of the permanent magnet M. In such a housing <NUM>, after the shaft member L reaches the displacement end, the shaft member L and the housing <NUM> can move integrally in the same direction as the shaft member L is further displaced.

Further, in the housing <NUM> according to the embodiment, a plurality of screw holes a are formed at an edge of the opening portion 2a and the case <NUM> can be attached by a screw n inserted into the screw hole a. Such a case <NUM> can be attached to the opening portion 2a of the housing <NUM>. Further, as illustrated in <FIG>, the case <NUM> is configured to include a cover portion 3b which covers the opening portion 2a in a state of being attached to the housing <NUM> and a protruding portion 3c which protrudes from the cover portion 3b to the accommodation space D of the housing <NUM>.

The protruding portion 3c of the case <NUM> is formed with an accommodation portion capable of accommodating the magnetic sensor <NUM> and a substrate <NUM>. The accommodation portion according to the embodiment is composed of an accommodation recess portion 3a opened at a predetermined position of the cover portion 3b. As illustrated in <FIG>, the magnetic sensor <NUM> can be attached through an opening K of the accommodation recess portion 3a and wiring h of the magnetic sensor <NUM> is extended from the opening K to the outside.

A screw hole b corresponding to the screw hole a of the housing <NUM> is formed on a peripheral edge of the cover portion 3b. As illustrated in <FIG> and <FIG>, the cover portion 3b can be attached to the housing <NUM> by inserting and screwing the attachment screw n as fastening unit into these screw holes a and b. Further, the accommodation recess portion 3a is filled and solidified with a resin sealing material in a state where the magnetic sensor <NUM> and the substrate <NUM> are accommodated.

The magnetic sensor <NUM> is composed of a sensor such as a Hall IC element formed on the substrate <NUM> and is configured to detect the displacement of the shaft member L with respect to the housing <NUM> by detecting a magnetic change of the permanent magnet M. The magnetic sensor <NUM> may be a sensor of various forms other than a Hall IC element or the like as long as it detects the displacement of the shaft member L with respect to the housing <NUM> by detecting the magnetic change of the permanent magnet M.

However, by attaching the case <NUM> to which the magnetic sensor <NUM> is attached to an opening portion 2c of the housing <NUM>, as illustrated in <FIG>, the cover portion 3b covers the opening portion 2c and the protruding portion 3c protrudes in the accommodation space D of the housing <NUM>. Therefore, the magnetic sensor <NUM> accommodated in the accommodation recess portion 3a of the protruding portion 3c is located in a vicinity of the permanent magnet M, and thus it is possible to detect the magnetic change of the permanent magnet M due to the displacement of the shaft member L.

Then, when the magnetic sensor <NUM> detects a magnetic change, it is determined whether the shaft member L (that is, the shift pedal) starts to be displaced and in which direction it is operated. Therefore, a discrimination signal can be transmitted to, for example, an ECU of the vehicle via the wiring h. As a result, when a driver starts operating the shift pedal and the magnetic sensor <NUM> detects that the shaft member L is displaced with respect to the housing <NUM>, an engine of the vehicle is controlled to adjust a drive torque and the gear-shifting operation of the transmission can be performed by the shaft member L and the housing <NUM> moving integrally in a state where the shaft member L reaches the displacement end.

Next, a second embodiment according to the invention will be described.

The shift device <NUM> according to the embodiment is for transmitting the shift operation of the shift pedal of a vehicle such as a two-wheeled vehicle to the transmission to perform the gear-shifting operation. As illustrated in <FIG> and <FIG>, the shift device <NUM> is configured to include the shaft member L, the housing <NUM>, the permanent magnet, the case <NUM>, and the magnetic sensor <NUM> (detecting unit) (refer to the first embodiment for details of each component), and also include a lid member <NUM>. The same components as those in the first embodiment are designated by the same reference numerals and letters.

The lid member <NUM> is attached to the cover portion 3b in the case <NUM> and covers the opening K of the accommodation recess portion 3a. In the embodiment, as illustrated in <FIG> and <FIG>, the lid member <NUM> is configured to cover a surface area (partial region) of the cover portion 3b including the opening K of the accommodation recess portion 3a. As described above, since the lid member <NUM> attached to the cover portion 3b in the case <NUM> and covering the opening K of the accommodation recess portion 3a is provided, the magnetic sensor <NUM> in the accommodation recess portion 3a can be reliably protected by the lid member <NUM>.

Further, as illustrated in <FIG>, in the lid member <NUM> according to the embodiment, a bulging portion 6a which bulges along the wiring h extending from the opening K is formed in a state where the lid member <NUM> is attached so as to cover the cover portion 3b of the case <NUM>. Thereby, in the embodiment, the design can be improved by covering a surface area of the case <NUM> while protecting the magnetic sensor <NUM> by the lid member <NUM> and the bulging portion 6a can position the wiring h while preventing interference between the lid member <NUM> and the wiring h.

According to the first embodiment and the second embodiment, in the housing <NUM>, the opening portion 2a is formed at a portion corresponding to the arrangement position of the permanent magnet M and the case <NUM> is attached to the opening portion 2a. Further, the case <NUM> has the cover portion 3b which covers the opening portion 2a and the protruding portion 3c which protrudes from the cover portion 3b to the accommodation space D of the housing <NUM> and the accommodation recess portion 3a capable of accommodating the magnetic sensor <NUM> is formed in the protruding portion 3c. As a result, in the first embodiment and the second embodiment, the displacement of the shaft member L can be detected with high accuracy and the influence of magnetism from the outside can be suppressed to prevent malfunction.

Further, the accommodation portion according to the first embodiment and the second embodiment is composed of the accommodation recess portion 3a opened at a predetermined position of the cover portion 3b. The magnetic sensor <NUM> can be attached via the opening K of the accommodation recess portion 3a and the wiring h of the magnetic sensor <NUM> is extended from the opening K to the outside. Therefore, the magnetic sensor <NUM> can be arranged closer to the permanent magnet M, and thus the displacement of the shaft member L can be detected more accurately.

Next, a third embodiment according to the invention will be described.

The shift device <NUM> according to the embodiment is for transmitting the shift operation of the shift pedal of a vehicle such as a two-wheeled vehicle to the transmission to perform the gear-shifting operation. As illustrated in <FIG> and <FIG>, the shift device <NUM> is configured to include the shaft member L, the housing <NUM>, the permanent magnet, the case <NUM>, and the magnetic sensor <NUM> (detecting unit) (refer to the first embodiment for details of each component other than the case <NUM>). The same components as those in the first embodiment are designated by the same reference numerals and letters.

As illustrated in <FIG> and <FIG>, the case <NUM> can be attached to the opening portion 2a of the housing <NUM>. As illustrated in <FIG>, the case <NUM> includes the cover portion 3b which covers the opening portion 2a in a state of being attached to the housing <NUM> and the protruding portion 3c which protrudes from the cover portion 3b to the accommodation space D of the housing <NUM>. An accommodation portion (accommodation recess portion 3a) capable of accommodating the magnetic sensor <NUM> and the substrate <NUM> is formed in the protruding portion 3c of the case <NUM>.

Here, the accommodation portion according to the embodiment is configured of the accommodation recess portion 3a opened on a side surface of the protruding portion 3c and at a predetermined position of the cover portion 3b. As illustrated in <FIG>, the accommodation portion is configured so that the magnetic sensor <NUM> can be attached via an opening K1 on the side surface of the protruding portion 3c and the wiring h of the magnetic sensor <NUM> is extended to the outside via an opening K2 on the cover portion 3b side. Thereby, in the embodiment, the work of accommodating the magnetic sensor <NUM> in the accommodation recess portion 3a can be easily performed and the wiring h of the magnetic sensor <NUM> can be easily extended.

Further, in the embodiment, as illustrated in the drawings mentioned above, the opening K1 on the side surface of the protruding portion 3c and the opening K2 on the cover portion 3b side in the accommodation recess portion 3a form a continuous opening. Therefore, the wiring h can be easily extended from the opening K2 on the cover portion 3b side while accommodating the magnetic sensor <NUM> from the opening K1 on the side surface of the protruding portion 3c in the accommodation recess portion 3a. As a result, it is possible to improve workability of accommodating the magnetic sensor <NUM>.

Next, a fourth embodiment according to the invention will be described.

The shift device <NUM> according to the embodiment is for transmitting the shift operation of the shift pedal of a vehicle such as a two-wheeled vehicle to the transmission to perform the gear-shifting operation. As illustrated in <FIG> and <FIG>, the shift device <NUM> is configured to include the shaft member L, the housing <NUM>, the permanent magnet M, the case <NUM>, and the magnetic sensor <NUM> (detecting unit) (refer to the first embodiment for details of each component other than the case <NUM>). The same components as those in the first embodiment are designated by the same reference numerals and letters.

As illustrated in <FIG> and <FIG>, the case <NUM> can be attached to the opening portion 2a of the housing <NUM>. As illustrated in <FIG>, the case <NUM> is configured to include the cover portion 3b which covers the opening portion 2a in a state of being attached to the housing <NUM> and the protruding portion 3c which protrudes from the cover portion 3b to the accommodation space D of the housing <NUM>. An accommodation portion (accommodation recess portion 3a) capable of accommodating the magnetic sensor <NUM> and the substrate <NUM> is formed in the protruding portion 3c of the case <NUM>.

Here, the accommodation portion according to the embodiment is composed of the accommodation recess portion 3a opened on a side surface of the protruding portion 3c and at a predetermined position of the cover portion 3b. As illustrated in <FIG>, the accommodation portion is configured so that the magnetic sensor <NUM> can be attached via an opening K3 on the side surface of the protruding portion 3c and the wiring h of the magnetic sensor <NUM> is extended to the outside via an opening K4 on the cover portion 3b side. Thereby, in the embodiment, the work of accommodating the magnetic sensor <NUM> in the accommodation recess portion 3a can be easily performed and the wiring h of the magnetic sensor <NUM> can be easily extended.

Further, in the embodiment, as illustrated in the drawings mentioned above, the opening K3 on the side surface of the protruding portion 3c and the opening K4 on the cover portion 3b side in the accommodation recess portion 3a are formed separately (independent openings which are not continuous, unlike in the third embodiment) and a closing member <NUM> for closing the opening K3 on the side surface of the protruding portion 3c is provided. As illustrated in <FIG>, the closing member <NUM> is composed of a part having a shape corresponding to the opening K3 on the side surface of the protruding portion 3c. Also, as illustrated in <FIG>, the closing member <NUM> is configured to close the opening K3 in a state where the magnetic sensor <NUM> and the substrate <NUM> are accommodated in the accommodation recess portion 3a.

According to the embodiment, the opening K3 on the side surface of the protruding portion 3c and the opening K4 on the cover portion 3b side in the accommodation recess portion 3a are formed separately and the closing member <NUM> for closing the opening K3 on the side surface of the protruding portion 3c is provided. Thereby, the sealing property between the opening portion 2a of the housing <NUM> and the case <NUM> can be improved as compared with the one having the continuous opening of the third embodiment and the closing member <NUM> can ensure the sealing property of the opening K3 on the side surface of the protruding portion 3c.

Next, a fifth embodiment according to the invention will be described.

Here, in the case <NUM> according to the embodiment, as illustrated in <FIG>, an insertion port 3ca is formed on the side surface of the protruding portion 3c at a position directly below the cover portion 3b and a shielding member <NUM> as illustrated in <FIG> can be inserted into the insertion port 3ca. As illustrated in <FIG>, the shielding member <NUM> is configured to be fixed at a position above the magnetic sensor <NUM> accommodated in the accommodation recess portion 3a by being inserted into the insertion port 3ca of the protruding portion 3c. As a result, the shielding member <NUM> can shield the magnetic sensor <NUM> from the outside.

According to the embodiment, since it is provided with the shielding member <NUM> which can be inserted into the case <NUM> and can shield the magnetic sensor <NUM> accommodated in the accommodation recess portion 3a from the outside, the magnetic sensor <NUM> in the accommodation recess portion 3a can be covered with the shielding member <NUM> to ensure protection. Further, in the embodiment, since the shielding member <NUM> covers an upper side of the magnetic sensor <NUM> and does not reach an upper position of the wiring h extending from the magnetic sensor <NUM>, the wiring h can be satisfactorily extended to the outside.

Next, a sixth embodiment according to the invention will be described.

The shift device <NUM> according to the embodiment is for transmitting the shift operation of the shift pedal of a vehicle such as a two-wheeled vehicle to the transmission to perform the gear-shifting operation. As illustrated in <FIG>, the shift device <NUM> is configured to include the shaft member L, the housing <NUM>, the permanent magnet M, the case <NUM>, and the magnetic sensor <NUM> (detecting unit) (refer to the first embodiment for details of each component other than the case <NUM>). The same components as those in the first embodiment are designated by the same reference numerals and letters.

As illustrated in <FIG>, the case <NUM> can be attached to the opening portion 2a of the housing <NUM>. As illustrated in <FIG>, the case <NUM> is configured to include the cover portion 3b which covers the opening portion 2a in a state of being attached to the housing <NUM>, and the protruding portion 3c which protrudes from the cover portion 3b to the accommodation space D of the housing <NUM>. An accommodation portion (accommodation recess portion 3a) capable of accommodating the magnetic sensor <NUM> and the substrate <NUM> is formed in the protruding portion 3c of the case <NUM>.

As illustrated in <FIG>, the accommodation portion according to the embodiment is composed of the accommodation recess portion 3a opened at a predetermined position of the cover portion 3b. Further, as illustrated in <FIG>, in the accommodation portion according to the embodiment, the magnetic sensor <NUM> can be attached via the opening K of the accommodation recess portion 3a and the wiring h of the magnetic sensor <NUM> is extended from the opening K to the outside. Further, the case <NUM> according to the embodiment has a groove shape R extending from the opening K to an edge portion and the wiring h is extended along the groove shape R. A screw hole g corresponding to the screw hole a of the housing <NUM> is formed on a peripheral edge of the cover portion 3b. Further, in the accommodation recess portion 3a, a resin sealing material is filled and solidified in a state where the magnetic sensor <NUM> and the substrate <NUM> are accommodated.

Here, the shift device <NUM> according to the embodiment includes a lid member <NUM> attached to the cover portion 3b in the case <NUM> and covering the opening K of the accommodation recess portion 3a. As illustrated in <FIG>, the lid member <NUM> has a three-dimensional shape and a screw hole j corresponding to the screw hole g of the case <NUM> is formed on a peripheral edge portion thereof. Further, when the lid member <NUM> is attached to the case <NUM>, as illustrated in <FIG>, the lid member <NUM> is configured to cover a surface area of the cover portion 3b. In addition, the lid member <NUM> is partially formed with a notch portion 9a, and thus interference with the wiring h arranged at that position is avoided.

Further, as illustrated in <FIG>, the lid member <NUM> according to the embodiment is positioned while matching the screw hole j with the screw hole g of the case <NUM>, and the lid member <NUM> is configured to be fastened and fixed together with the case <NUM> by inserting the screw n into the screw holes g and j and the screw hole a of the housing <NUM>. Therefore, the design of the three-dimension-shaped lid member <NUM> can be further improved and the surface area of the case <NUM> can be widely covered by the lid member <NUM> being fastened together with the case <NUM>.

However, the lid member <NUM> according to the embodiment is configured to cover the surface area of the case <NUM> while avoiding an extension portion of the wiring h with the notch portion 9a. However, as similar to the lid member <NUM> of the second embodiment, the lid member <NUM> may form a shape such as a bulging portion 6a (see <FIG>) which bulges along the wiring h extending from the opening K. In the embodiment, the cover portion 3b of the case <NUM> has the opening K to which the magnetic sensor <NUM> can be attached. However, as in the case <NUM> of the third and fourth embodiments, the openings (K1, K2) may be respectively formed on the cover portion 3b of the case <NUM> and the side surface of the protruding portion 3c. Alternatively, as in the fifth embodiment, the shielding member <NUM> may be inserted into the case <NUM>.

In the first to sixth embodiments described above, the opening portion 2a is formed in the housing <NUM> at a portion corresponding to the arrangement position of the magnetic sensor <NUM> and the case <NUM> is attached to the opening portion 2a, and further the case <NUM> has the cover portion 3b which covers the opening portion 2a and the protruding portion 2c which protrudes from the cover portion 3b to the accommodation space D of the housing <NUM>, and still further, an accommodation portion (accommodation recess portion 3a) capable of accommodating the magnetic sensor <NUM> is formed in the protruding portion 2c. Therefore, the displacement of the shaft member L can be detected with high accuracy and the influence of magnetism from the outside can be suppressed to prevent malfunction.

Although the first to sixth embodiments are described above, the invention is not limited thereto. For example, the case <NUM> may be fixed to the housing <NUM> with the attachment screw n, or may be fixed by other means. Also, a protective member having a form different from that of the lid members <NUM> and <NUM> may be attached to the case <NUM>. Further, in the invention, the magnetic sensors <NUM> may be attached to front and back surfaces of the substrate <NUM> to detect magnetic changes respectively. Alternatively, in the invention, an element having another function different from that of the magnetic sensor <NUM> may be formed on the substrate <NUM>.

Claim 1:
A shift device (<NUM>) comprising:
a shaft member (L) configured to be displaced according to a shift operation of a shift pedal of a vehicle;
a housing (<NUM>) which has an accommodation space (D) configured to accommodate the shaft member (L) in a displaceable manner, the housing (<NUM>) configured to move integrally with the shaft member (L) in a state where the shaft member (L) reaches a displacement end to perform a gear-shifting operation of the vehicle;
a permanent magnet (M) which is formed on the shaft member (L), is displaceable together with the shaft member (L), and generates magnetism; and
a detecting unit (<NUM>) which detects displacement of the shaft member (L) with respect to the housing (<NUM>) by detecting a magnetic change of the permanent magnet (M), wherein
an opening portion (2a) is formed in the housing (<NUM>) at a portion corresponding to an arrangement position of the permanent magnet (M), a case (<NUM>) is attached to the opening portion (2a), and the case (<NUM>) has a cover portion (3b) which covers the opening portion (2a) and a protrusion portion (3c) which protrudes from the cover portion (3b) to the accommodation space (D) of the housing (<NUM>) and an accommodation portion capable of accommodating the detecting unit (<NUM>) is formed in the protrusion portion (3c).