Freddy228 Posted June 9, 2024 Posted June 9, 2024 Hi Guys, i'm building a bf109 simpit and want to get the speed indicator working. For that i bought a x27.168 stepper motor. First of all my hardware setup: - Arduino uno 3 - X27.168 stpper motor - Easy driver How do i wire it? Do i need the easy driver or is it possible to connect the stepper directly to the Arduino? Found some information on the internet and saw also the topic from Johan but thats all beyond my knowledge. I'm a beginner at this stuff. What Arduino Code can I use? I found this one on DCS Bios void onAirspeedValueChange(unsigned int newValue) { /* your code here */}DcsBios::IntegerBuffer airspeedValueBuffer(0x4292, 0xffff, 0, onAirspeedValueChange); Doesn't it need to define the pins i'm connecting the stepper/easy driver with? Thanks in advance for you help Freddy
Zorg. Posted June 10, 2024 Posted June 10, 2024 (edited) You can test the 2 with the accelstepper library. Direct connection: AccelStepper stepper(AccelStepper::FULL4WIRE,4,5,6,7); stepper on pins 4, 5, 6 and 7 Or with easydrive which requires a power supply. Craig ou an other has provided a code that makes it possible to make it work. I don't have the link now. Edited June 10, 2024 by Zorg.
Recommended Posts