Running a Fischertechnik Encodermotor on Arduino

I'm really sorry to ask this, but I cannot find info anywhere else...

I'm a newbie and I'm trying to control a motor from a Fischertechnik kit using arduino but can't seem to go anywhere.

I have a motor shield, an L298N, and whatever needed.

I really would appreciate some help!

Thanks in advance.

Lots of help here. Please read it and follow the instructions if you really want us to have a shot at helping you.

Thanks a lot for the reference... It would be great if anyone is familiar with this particular motor, I can't identify those three pins even thou I have the datasheet, so I can't connect them to control speed and direction.

I'm attaching the datasheet and pics.

2018-05-24-23.15.jpg

153422-Encodermotor9V.pdf (410 KB)

2018-05-24-23.1we5.jpg

The .pdf has a clear picture of the connector, with colours and voltages.
Leo..

Yes, I noticed that. So I tried to connect the positive to Vin and the negative to ground. Signal went to either an analog pin or a PWM, but the motor doesn't respond at all.

Also tried connecting negative to ground and positive to analog/PWM, but that only gives 5V max so no response there either...

Please have in mind that I'm a newbie.

You have to use a motor driver module (H bridge), and a 9V some A power source.

I tried using an H-bridge, but I might be connecting something wrong, specially the signal pin. Any sugestions?

Did you follow any tutorial in setting up your circuit?

Which H-bridge? How is it connected exactly (please post circuit diagram)? What voltages do you measure on input/output sides and on the signal and other control pins?

The signal line (open collector) needs a 4.7K to 10K pullup resistor.

Hi,
Did you google fischertechnik motor arduino

Tom.. :slight_smile:

erfmedeiros:
I tried using an H-bridge, but I might be connecting something wrong, specially the signal pin. Any sugestions?

Hi,
Can you post a circuit diagram of what you have tried, include power supply connections and pin names.
Thanks.. Tom... :slight_smile:

wvmarle:
Which H-bridge? How is it connected exactly (please post circuit diagram)? What voltages do you measure on input/output sides and on the signal and other control pins?

L298N... I connect the positive and negative of the motor on out3 and 4... IN3 and 4 went to D7 and D8 of an arduino nano. ENB went to D6.

+12V and ground on the L298N connected to 4 AA batteries.

I left the signal port disconnected since theoretically it only counts the rotations... This way I think the motor should run like a regular DC. But I tried it anyway without any result.

TomGeorge:
Hi,
Did you google fischertechnik motor arduino

Hello, yes I did... Did you? :wink:

Tried connecting a 9V power supply, nothing... Same setup runs a regular DC motor perfectly ok...

Hi,

You are connecting the gnd of the Arduino to the gnd of the 298 gnd?

Have you got a 298 shield, or are you protoboarding the 298 IC?

Please post the code you are using and a circuit diagram.

A picture of your project would help us understand your component layout.

Thanks.. Tom.. :slight_smile:

You should use a stronger power source, like the one of the Fischertechnik kits.

The L298 drops more than 2V, so that from 4 AA cells remain only 2,8V to 4V, what's not enough for the motor. Is your 9V supply strong enough for the motor?

erfmedeiros:
+12V and ground on the L298N connected to 4 AA batteries.

4*AA = 6V, minus about 2.5V drop over the L298N leaves 3.5V for the motor. Or am I missing something?

A complete circuit diagram of your setup is also long overdue.