An apparatus for operating simultaneously as DC (direct current) motor and DC generator, comprising:
- four permanent magnets which are placed to be able to rotate with a shaft wherein a first permanent magnet (101), a second permanent magnet (102), a third permanent magnet (103), and a fourth permanent magnet (104) are placed in order by 90° of angular separation, and the permanent magnets are placed in alternating polarity;
- wherein
- two coils which are placed outside the circumference of the permanent magnets wherein one side of a first coil (201) faces the first permanent magnet, another side of the first coil faces the second permanent magnet, one side of a second coil (202) faces the third permanent magnet, another side of the second coil faces the fourth permanent magnet, the coils are wound in the same way and placed in the same way, a first terminal (1a) of the first coil is connected to a first terminal (2a) of the second coil and a second terminal (2b) of the second coil is connected to a second terminal (1b) of the first coil;
- one secondary cell battery (301) which is used to supply electric current to the coils;
- a rotating component (401) which is placed on the shaft and is configured to repeatedly pass and block light of photointerrupters (11, 21);
- a device (501) for making electric current flow in the coils, wherein the positive terminal of the secondary cell battery and the first terminal (1a) of the first coil are connected by a first P channel FET (12), the second terminal (1b) of the first coil and the negative terminal of the secondary cell battery are connected by a first N channel FET (13), the positive terminal of the secondary cell battery and the second terminal (2b) of the second coil are connected by a second P channel FET (22), the first terminal (2a) of the second coil and the negative terminal of the secondary cell battery are connected by a second N channel FET (23),
- wherein a FET is configured to be set to turn-on as the light of a photointerrupter is passed and the FET is configured to be set to turn-off as the light of the photointerrupter is blocked,
- wherein the first P channel FET and the first N channel FET are configured to be set to turn-on to make electric current flow in the first coil at a position where the first permanent magnet and the second permanent magnet start to face the sides of the first coil and also where the third permanent magnet and the fourth permanent magnet start to face the sides of the first coil,
- wherein the second P channel FET and the second N channel FET are configured to be set to turn-on to make electric current flow in the second coil at a position where the second permanent magnet and the third permanent magnet start to face the sides of the second coil and also where the fourth permanent magnet and the first permanent magnet start to face the sides of the second coil,
- wherein the following routines A and B are alternately performed as the rotating component rotates,
- routine A:
- 1) both the first P channel FET and the first N channel FET are turned on, so that the first coil (201) is activated by the secondary cell battery, the shaft rotates, the rotating permanent magnets generate electric power in the second coil (202), and 2) both the first P channel FET and the first N channel FET are turned off, so that electrons flow from the second terminal (2b) of the second coil to the second terminal (1b) of the first coil and circulate in the coils, and
- wherein the routine A is performed as the first permanent magnet and the second permanent magnet face the sides of the first coil and also as the third permanent magnet and the fourth permanent magnet face the sides of the first coil, and
- routine B:
- 1) both the second P channel FET and the second N channel FET are turned on, so that the second coil (202) is activated by the secondary cell battery, the shaft rotates, the rotating permanent magnets generate electric power in the first coil (201), and 2) both the second P channel FET and the second N channel FET are turned off, so that electrons flow from the first terminal (1a) of the first coil to the first terminal (2a) of the second coil and circulate in the coils, and
- wherein the routine B is performed as the second permanent magnet and the third permanent magnet face the sides of the second coil and also as the fourth permanent magnet and the first permanent magnet face the sides of the second coil.