Need help adding a on off IR LED/Phototransistor as switch

  • Thread starter Thread starter mac37m
  • Start date Start date
  • Tags Tags
    Ir Switch
Click For Summary
SUMMARY

This discussion focuses on integrating an IR LED and phototransistor as a switch to control a 5 RPM 12V DC motor powered by a Class 2 plug-in transformer (12VDC 60Hz 23W, output 12VDC 1000mA). The proposed solution involves using an Arduino to simplify the control logic, along with an NPN transistor and a flyback diode to protect against current surges. The user is advised to watch a specific YouTube tutorial for practical implementation and to explore discrete components for a more hands-on approach.

PREREQUISITES
  • Basic understanding of Arduino programming
  • Knowledge of NPN transistors and their applications
  • Familiarity with flyback diodes and their protective functions
  • Concepts of phototransistors and their operational principles
NEXT STEPS
  • Watch the YouTube tutorial on controlling motors with Arduino: Arduino Motor Control Tutorial
  • Research the use of NPN transistors in switching applications
  • Learn about flyback diodes and their role in motor control circuits
  • Explore the principles of phototransistors and how they can be used in light detection
USEFUL FOR

This discussion is beneficial for hobbyists, electronics enthusiasts, and developers looking to implement simple motor control solutions using Arduino and phototransistor technology.

mac37m
Messages
1
Reaction score
0
I'm building a small project and would like some assistance from you folks.
I have this motor 5rpm -12vdc and I'm using a Class 2 plug in transformer (input 12VDC 60Hz 23W - output 12VDC 1000mA) to power it up.

I would like to add a IR LED/Phototransistor between the two to act as a on off switch.
when a solid item goes between the LED and phototransistor it will stop or turn the motor off
and when it's clear it will turn on.
the distance of the IR LED/Phototransistor will be about two inches.



project_1.JPG


thanks in advance.
 
Engineering news on Phys.org
for a small application like this motor, you should invest in an arduinio. By doing this all you really have to worry about is a handful of line of code, and the usage of a NPN transistor, a flyback diode (to prevent current surge damaging electronic components when the motor stops)

if you go this way, this youtube video should help out:
http://www.youtube.com/watch?v=js4TK0U848I&feature=relmfu
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
Replies
4
Views
2K
  • · Replies 42 ·
2
Replies
42
Views
20K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
19K
Replies
37
Views
7K
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K