NOT a coding issue - more of a config issue I'm gussing. I suspect I'm missing something in the setup of the Arduiono pins or a major ground/voltage setup This shouldn't be that hard to do!Īny clues as to where I've gone wrong would be of great help. When I re-connect the controller to pin 11 (Via connector blocks), it will go to 4.9v, but when Arduino goes LOW, the pin shows the 3.8 volts on the contoller! AFAIK all my grounds and voltages are common, and have checked for other wiring errors. With the controller wire disconnected, my button presses show pin 11 going from HIGH (4.9v), to LOW (0v) as coded. When DIR- (DIR+ is VCC - 5V) on the contoller is tied to the Arduino, I can't get it to pull ground/LOW. The right power rail in this image, Figure 2, is the 24V power rail and the left one is the 5V. To start, prepare two power rails, one 5V and the one 24V. Figure 2: Setup for an individual motor driver and Arduino Mega. The DIR pin is at around 3.8 volt and will cause the motor to reverse if I short it to ground. Figure 1: Fritzing Diagram for the DRV 8825 Pololu motor drivers, the power supply, a capacitor, and Arduino microcontroller. The diargram with the controller shows the control pins on it are going to an opto-isolator. I have pin 11 (PORTBP3) set as an input (default, no PinMode). TB6560-V2.fzpz (12.6 KB) DigiDet January 28, 2022, 12:10pm 2. Mostly working ok, stepping fine, but having a bit of a prob controlling the Direction pin on the driver box. I am controlling an ST-M5040 stepper motor driver with an Arduino Pro Mini.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |