PIGPIO Library Installation

Just curious, is the wiring circuit using transistors (NPN or PNP?), or MOSFETS (pMOSFET or nMOSFET) for the H-Bridge?

I see that there is code for pins 10, 9, 8, and 7 - does this mean there is a second motor?

If I get your answer soon, then I will put something together tonight :slight_smile:

Edit: Added H-Bridge, and asked about second motor.

It uses PMOSFETS like your example. There are two hbridges so two motors!

Ok…working on a solution now… :slight_smile:

1 Like

Thank you Eugene! I have been able to learn a lot of Xojo thanks to you!

Hi Karla,

Here is a link to the Xojo program that I ran in the video: Download Modified 6-10 Example

Below is a video I created of the running program.

Example 6-10 - Live YouTube Demo

This only shows one motor, which should get you started on the right path.

I hope this helps :slight_smile:

2 Likes

I already had the exact same code :o But, I think the reason mine was not working how it was supposed to, was because I was still running a timer and “Check Direction”

I will try it and update you with my results.

Thank you for the helpful video demonstration. That was pretty good, and very appreciated.

1 Like

usually u set the pin input or output mode once.
make a init method and there you create the pi object (which is stored in a property then)
on your last screenshot i not see where you set pwm.
put your constants in a modul not in each button action.
you could visualize the motor pins output via LED first.