Python Forum
Arduino Code to Python Code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arduino Code to Python Code
#1
Hello,

I am working on integrating a GUI with some Arduino code. It looks like the easiest way to do this is by converting my Arduino code to python code to have everything in one language. I need the code attached written in Python please, including the AccelStepper library. I am not comfortable with Python code, so I am not sure how to go about this.

Any help with this is much appreciated.

Thanks!

Attached Files

.txt   testcode12-28-2021.txt (Size: 7.39 KB / Downloads: 209)
Reply
#2
We are glad to help with your effort, but won't do the work for you.
Please make an effort to convert your code, and ask questions about specific areas when problems are encountered.
Thank you.
Reply
#3
raspberry pi stepper
Here's an example with for linux, maybe it can get you started going through the source code.
Reply
#4
This may prove useful:

your c code uses the DRV8825 driver which is available from pololu.

links:
https://www.ti.com/lit/ds/symlink/drv8825.pdf and https://www.pololu.com/product/2133
https://www.pololu.com/file/0J603/drv882...iagram.pdf

software (no python though) https://github.com/pololu/high-power-ste...er-arduino
Adafruit has a driver that they make which uses either arduino C, or CircuitPython it is their own design which used PWM to control the stepper, however comparing the C code vs Python may be helpful. More here: https://www.mouser.com/new/adafruit/adaf...ing-addon/
The pin numbers will be different, but names should be the same
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Issue with GUI screen switching in Python QT5 code greenelephant 1 262 Apr-04-2024, 09:58 PM
Last Post: deanhystad
  Convert the typical MATLAB GUI creator code to Python Army 1 2,661 Jul-05-2021, 03:51 PM
Last Post: Larz60+
  [PyGUI] help code python QT Designer yan_mhb 0 1,929 Aug-12-2020, 09:32 AM
Last Post: yan_mhb
  [Tkinter] Python code issue tedarencn 2 1,967 Apr-15-2020, 07:19 PM
Last Post: tedarencn
  [PyQt] how to transform pyqt4 code to pyqt5 code atlass218 4 4,886 Jan-20-2020, 05:45 PM
Last Post: Axel_Erfurt
  Help with code Kivy/Python Couzer 1 2,958 Nov-13-2018, 02:24 AM
Last Post: joe_momma
  [Tkinter] how do I enter code into python matelot 17 10,465 Feb-13-2018, 11:14 PM
Last Post: matelot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020