Giter Club home page Giter Club logo

dirtyhobber's Introduction

Bare Bones ESP32 Gear Hobbing Controller

This quick and dirty controller is designed for an esp32 devkit v4 board (az_delivery) using an optical encoder and an external stepper or servo controller.

This requires minium of 4 pins for step, dir, encoder_a, encoder_b signals. This is the simplest and most basic controller and it may have bugs. Use at your own risk. PR's and questions (via issues) welcome.

16_TPI_tap_makes_aluminum_gears

Configuration:

The main.cpp file contains most of the configuration The items below need to be updated in the file.

int motor_steps = 200;
int microstepping = 8;
int reduction = 40;  // This is the indexer gear reduction 
int hob_encoder_resolution = 2400;
bool dir = 1; // this controls the motor direction
int led = 25; // the LED pin 

#define dirPinStepper 12
#define enablePinStepper 26
#define stepPinStepper 13
int stepper_speed = 150000;

Encoder.cpp requires the A and B encoder pins as well as the pulses per revolution. PPR is the 3rd argument of the initializer for the Encoder class.

int EA = 17;
int EB = 16;

Encoder encoder = Encoder(EA, EB, 600);

Running:

To configure the tooth count connect to serial and paste teeth=N where N is the number of teeth for the gear.

Board

Schematic image

PCB

image

dirtyhobber's People

Contributors

jschoch avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

myflash911

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.