Skip to content
Discussion options

You must be logged in to vote

Hey @ecburns33

It looks like your while loop doesn't sleep any amount after you set it low, meaning PA22 is set low for such a short period of time that your multimeter wont catch it (an oscilloscope or logic analyzer would be what you'd use to see fast pulses like this).

Try this:

while(i<10) :
    Tx.value=1 # set it high
    print(Tx.value)
    time.sleep(1)
    Tx.value=0 # set it low
    print(Tx.value)
    i=i+1
    print('end')
    time.sleep(1) # sleep here so you can measure the voltage

Now just like how your micromag example was "bit banging" the SPI bus, you likely don't want to manually implement your stepper motor protocol. I googled "circuitpython stepper motor" and see that…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ecburns33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants