Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
B-Robot with PRO MICRO
09-29-2017, 09:48 AM
Post: #1
B-Robot with PRO MICRO
Hi all.
I try to make a BROBOT version with a PRO MICRO and change port 12 to port 6 but I have some trouble with the stepper motor 2 working and the controls.
Can any help what changes I must make in the coding. All things are tested individually by Arduino examples and seems working. Must be the code change to port 6 who are wrong. I also stuck with servo 2 on port 9. Any ideas. ?

- in file BROBOT_EVO2.ino

pinMode(4, OUTPUT); // ENABLE MOTORS
pinMode(7, OUTPUT); // STEP MOTOR 1 PORTE,6
pinMode(8, OUTPUT); // DIR MOTOR 1 PORTB,4
pinMode(6, OUTPUT); // STEP MOTOR 2 PORTD,7 ??????????
pinMode(5, OUTPUT); // DIR MOTOR 2 PORTC,6

pinMode(10, OUTPUT); // Servo1 (arm)
pinMode(9, OUTPUT); // Servo2 not works too. ?????

- in file BROBOT_EVO2.ino
pinMode(12, OUTPUT); -> pinMode(6, OUTPUT);

- in file Control.ino
SET(PORTD, 6); // STEP MOTOR 2 -> SET(PORTD, 7); ???????
CLR(PORTD, 6); -> CLR(PORTD, 7); ???????

Thanks in advance, Gorm
   
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
B-Robot with PRO MICRO - gamba - 09-29-2017 09:48 AM
RE: B-Robot with PRO MICRO - Carlo1951 - 09-29-2017, 01:37 PM
RE: B-Robot with PRO MICRO - gamba - 09-30-2017, 01:39 PM
RE: B-Robot with PRO MICRO - twinclouds - 04-09-2019, 12:15 AM
RE: B-Robot with PRO MICRO - packa - 01-16-2019, 10:16 AM
RE: B-Robot with PRO MICRO - anatoliaa - 03-26-2019, 01:50 AM
RE: B-Robot with PRO MICRO - Alex85 - 06-15-2019, 01:24 PM
RE: B-Robot with PRO MICRO - twinclouds - 06-27-2019, 05:23 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)