Search found 10 matches

by johnbanes
Sun Aug 04, 2019 4:04 am
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 401

Re: L298N Motor Driver Board Pyboard 6V DC motors

Worked it out by PWMing the enable pin. Thanks!
by johnbanes
Sun Aug 04, 2019 3:26 am
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 401

Re: L298N Motor Driver Board Pyboard 6V DC motors

Having no luck after a few hours trying to move the left motor. I have a left and right motor; right_motor_en = machine.Pin('X1', machine.Pin.OUT) right_motor_a = machine.Pin('X2', machine.Pin.OUT) right_motor_b = machine.Pin('X3', machine.Pin.OUT) right_pwm_timer = pyb.Timer(2, freq=1000) right_pwm...
by johnbanes
Sun Aug 04, 2019 12:13 am
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 401

Re: L298N Motor Driver Board Pyboard 6V DC motors

I'm adding a second motor to the code, do I need to to also add another Timer.PWM for the second motor or can both motors use the same timer channel?
by johnbanes
Sat Jul 13, 2019 4:14 pm
Forum: General Discussion and Questions
Topic: IR encoder pyboard V1,1
Replies: 10
Views: 576

Re: IR encoder pyboard V1,1

Thank you for the help. I'm reading the output from the encoder. Had to switch to this because it's quadrature and the sensor is already 3.3v . It fits into the cheap plastic robot gear boxes with some shortening of the motor drive shaft. https://www.ebay.com/itm/130-Motor-DC6V-12V-7800RPM-Metal-Spe...
by johnbanes
Tue May 28, 2019 11:50 pm
Forum: General Discussion and Questions
Topic: IR encoder pyboard V1,1
Replies: 10
Views: 576

Re: IR encoder pyboard V1,1

Thanks for this info I appreciate this. Looks like it is a quadrature encoder. I looked at each side of the encoder and I only see one sensor on each side. Photoelectric Speed Sensor Encoder Coded Disc code wheel for Freescale Smart car https://www.ebay.com/i/191674247945?chn=ps On the tube Manufact...
by johnbanes
Tue May 28, 2019 1:15 am
Forum: General Discussion and Questions
Topic: IR encoder pyboard V1,1
Replies: 10
Views: 576

IR encoder pyboard V1,1

I have been googling most of the day attempting to understand the IR encoder and disk with pyboard https://images.app.goo.gl/aTNkSUFWzMHfjQeR8 The red wire + on the encoder is connected to a 5v power source and black wire - to ground. The disk is freely spinning between the encoder sensors. output1 ...
by johnbanes
Sat May 25, 2019 1:46 pm
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 401

Re: L298N Motor Driver Board Pyboard 6V DC motors

This is the motor controller board;
https://www.lelong.com.my/arduino-l298n ... Sale-P.htm

Thanks for the instructions Jimmo, the motor is turning!
by johnbanes
Sat May 25, 2019 12:58 am
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 401

Re: L298N Motor Driver Board Pyboard 6V DC motors

Thanks for the info. getting going in the right direction. Here is the board I'm using with the L298N. https://docs.micropython.org/en/latest/pyboard/quickref.html Being powered with a 9.9V 1500mAh battery, I guess is should be fine to turn the 6V motors. Good to know about the inefficient controlle...
by johnbanes
Fri May 24, 2019 2:51 am
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 401

L298N Motor Driver Board Pyboard 6V DC motors

Hello, I'm new to python and brand new to micro python. Working on a project with the L298N motor controller board, Pyboard V1.1 and a single 6v 71mA - 470mA 1.92Kgcm tourque DC motor. I have spent the last few hours trying to make the motor turn. This motor controller has three pins to control moto...