RC PWM Signal to Stepper Pulse Generator

  • Rajkumar Sharma
  • 9 Views
  • moderate
  • Tested
  • SKU: EL150101
  • Quote Now

This simple Arduino compatible project reads an RC PWM signal (1000μs to 2000μs) and provides 0 to 500Hz pulse output to drive a stepper motor. Step and Direction outputs are open collector types 5V signals. Both signals can directly drive LEDs of optocoupler of stepper drivers. The board consists of ATMEGA328 chip and 2 x BC847 transistors. The transistor helps drive the optocouplers.

Arduino Code

A sample Arduino code is available to test the project.

Burn the bootloader and Arduino code into the new ATMEGA328 microcontroller using an onboard programming connector. Refer to the bootloader and Arduino programming diagram for Connections.

Credits: This is modified code, original code written by: Brandon Tsuge (theboredrobot.com)

Bootloader information: https://docs.arduino.cc/retired/hacking/software/Bootloader/

Arduino Bootloader and Arduino Programming: https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoToBreadboard/

Features

  • Power Supply 5V DC @ 30mA
  • Outputs are Capable to Drive 5V TTL Load (Step/Dir)
  • Outputs are Open Collector Type
  • RC PWM Signal Range 1000μs To 2000μs
  • Output Frequency 0 to 500Hz
  • On Board Header Connector for Bootloader and Arduino Programming
  • Very Small Board
  • PCB Dimensions 30.32 x 25.72mm

Connections

  • CN1: Pin 1 5V, Pin 2 = Step Pules Output, Pin 3 = 5V, Pin 4 = Dir
  • CN2: Do Note Install (Can be configured as Limit Switch)
  • J1: RC Signal Input, Pin 1 = RC Signal Input, Pin 2 = VCC, Pin 3 = GND
  • J2: Do Note Install (Can be configured as Limit Switch)
  • CN3: Programming Connector Pin 1 = TX, Pin 2 RX, Pin 3 Reset, Pin 4 = GND, Pin 5 = VCC/5V, Pin 6 = D11, Pin 7 = D12, Pin 8 = D13
  • D1: Power LED

Schematic

Parts List

NO.QNTY.REF,DESC.MANUFACTURERSUPPLIERSUPPLIER PART NO
11CN14 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5317-ND
26U2,J2,CN2,U3,R4,C4DNPDO NOT INSTALL
31CN38 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5321-ND
42C1,C810uF/10V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
53C2,C3,C50.1uF/50V CERAMD SIZE 0805MIC YAGEO/MURATADIGIKEY
62C6,C722PF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
71D1LED SMD SIZE 0805OSRAMDIGIKEY475-1278-1-ND
81J13 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5316-ND
91J3SOLDER JUMPER-PCBNO USE
102Q1,Q2BC847NEXPERIADIGIKEY1727-2924-2-ND
111R11K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
121R210K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
132R3,R62.2K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
141R51M 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
151U1ATMEGA328TQPF-32MICROCHIPDIGIKEYATMEGA328PB-AURCT-ND
161X116MhzECS INCDIGIKEYX1103-ND

Connections

Gerber View

Photos

ATMEGA328 Datasheet

Please follow and like us:
Pin Share

PCB

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

RELATED PROJECTS

TOP PCB Companies