Octopus Pro v1.0.1 board with Arduino
Posted: Thu May 05, 2022 6:31 pm
Hi,
so I have this board, the Bigtreetech Octopus Pro v1.0.1., and I want to use it for a little different purpose than what it was made for.
I've already went through a little journey to get any code running on the board... I currently use Arduino IDE with the STM32duino library, board Generic STM32F4 Series, board part number Generic F429GTx.
With this setup, I've had success getting the Serial over USB working and also some accessory over I2C, but now I wanted to get the, or so I thought, the easiest part going, which are the steppers. Of course, as with everything else, it didn't go as planned. I've eventually discovered that I can't control many of the pins running to the stepper headers. Meaning that, does not work. For example, in the DRIVER1 header, I can only toggle the CS pin, which is (probably) PD11, all other pins on this header do nothing when accessed by digitalWrite().
I've also noticed that I can access the pins only by the defined name, like PA13 for the led, if I use the pin number, 105, nothing happens.
This leads me to the board variant.h definition, which I absolutely have no clue how works, with the pin name definitions having completely different pin numbers than what is in the MCU documentation and also the schematics from the board manufacturer.
Could someone explain to me what am I doing wrong or why do the board variants look like they do? I've run out of ideas on what to try next.
For anyone willing to help, here are some resources I've been using so far:
Board schematic https://github.com/bigtreetech/BIGTREET ... ctopus.pdf
It's not really for this board, but it's the only one that exists
Board layout https://raw.githubusercontent.com/bigtr ... pinout.png
MCU datasheet https://cz.mouser.com/datasheet/2/389/d ... 797623.pdf
so I have this board, the Bigtreetech Octopus Pro v1.0.1., and I want to use it for a little different purpose than what it was made for.
I've already went through a little journey to get any code running on the board... I currently use Arduino IDE with the STM32duino library, board Generic STM32F4 Series, board part number Generic F429GTx.
With this setup, I've had success getting the Serial over USB working and also some accessory over I2C, but now I wanted to get the, or so I thought, the easiest part going, which are the steppers. Of course, as with everything else, it didn't go as planned. I've eventually discovered that I can't control many of the pins running to the stepper headers. Meaning that,
Code: Select all
digitalWrite(pin, HIGH/LOW)
I've also noticed that I can access the pins only by the defined name, like PA13 for the led, if I use the pin number, 105, nothing happens.
This leads me to the board variant.h definition, which I absolutely have no clue how works, with the pin name definitions having completely different pin numbers than what is in the MCU documentation and also the schematics from the board manufacturer.
Could someone explain to me what am I doing wrong or why do the board variants look like they do? I've run out of ideas on what to try next.
For anyone willing to help, here are some resources I've been using so far:
Board schematic https://github.com/bigtreetech/BIGTREET ... ctopus.pdf
It's not really for this board, but it's the only one that exists
Board layout https://raw.githubusercontent.com/bigtr ... pinout.png
MCU datasheet https://cz.mouser.com/datasheet/2/389/d ... 797623.pdf