Wiring and coding help for a beginner

Hey, being a beginner I would need help to know how to wire all these components with a breadboard

  • Arduino UNO
  • TMC2209 motor driver
  • Joy-it NEMA-FLAT 01 stepper motor
  • ENCODER STEC11B01( to change motor speed)
  • Toggle Switch, 6A 125Vac 6 Pin Dpdt On-On (to change the direction of the motor)
  • Jack input (to receive CV info that will change motor speed)

I would also need help with coding, how to code from start to finish or where can I find these informations?
Like is there special change in the code concerning the jack input that will recieve CV info from a CV sequencer, the toggleswitch changing the direction of the motor? ect...

I already have this code for the motor driver
digitalWrite(Dbl, LOW);
while(!digitalRead(Sync))
{
digitalWrite(Mot, HIGH);
delayMicroseconds(Mspeed);
digitalWrite(Mot, LOW);
delayMicroseconds(Mspeed);
}
digitalWrite(Dbl, HIGH);

Also some extra questions:
Could I eventually wire the components directly to the arduino without a breadboard?
Do I need another power source than from arduino?

No. As a beginner to Arduino, you should start with Arduino basics. Your IDE has examples in IDE >> EXAMPLES >> BUILT-IN EXAMPLES >> (various levels and examples).

As a beginner to Forum.Arduino.CC, you should start with Forum basics. Your sketch needs to be formatted properly... 1. edit your post 2. select and cut your sketch out 3. format your sketch in your IDE (use paste, CTRL-T, select, cut) 4. in the forum click < CODE > 5. paste your sketch where you see type or paste your sketch here

You have been a "beginner" since 2021... take time to learn. You will benefit.

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Here is a library that help you: GitHub - janelia-arduino/TMC2209: The TMC2209 is an ultra-silent motor driver IC for two phase stepper motors with both UART serial and step and direction interfaces.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.