Go to advanced search

by muqtar2
Sat May 19, 2018 6:18 pm
Forum: Troubleshooting
Topic: RPM Speed Measurement code:
Replies: 6
Views: 531

Re: RPM Speed Measurement code:

Can you show me an example of how it can be done a boolean variable, stop counting, and interval 5 seconds, average.?
by muqtar2
Sat May 19, 2018 3:55 pm
Forum: Troubleshooting
Topic: RPM Speed Measurement code:
Replies: 6
Views: 531

Re: RPM Speed Measurement code:

[import RPi.GPIO as GPIO import time, sys GPIO.setmode(GPIO.BOARD) input = 2 #any input GPIO GPIO_last = 0 while True: #loop forever time1 = time.time() if gpio_cur == 1 and gpio_last == 0: time2 = time.time() delta = time2-time1 speed = 60*(1/12)/(delta*1000) print(‘RPS ’, int(round(speed/(time2-ti...
by muqtar2
Sat May 19, 2018 12:53 am
Forum: Troubleshooting
Topic: RPM Speed Measurement code:
Replies: 6
Views: 531

RPM Speed Measurement code:

Hi, I am using OSOYOO IR Infrared Obstacle Avoidance Sensor and I want to measure RPM the different between two rising edges. I have a wheel that has 12 holes. Can someone troubleshoot this code I wrote? This code measure between two pulses: import RPi.GPIO as GPIO import time, sys GPIO.setmode(GPIO...
by muqtar2
Sun Apr 22, 2018 1:40 am
Forum: Troubleshooting
Topic: M542T (Microstep Driver) to Raspberry Pi 3 GPIO Pins Connection
Replies: 1
Views: 141

M542T (Microstep Driver) to Raspberry Pi 3 GPIO Pins Connection

My driver has Pul+,Pul-,Dir+,Dir-,Ena+,Ena-. Which GPIO pins should I connect to my Raspberry Pi 3. and how can I connect my M542T to Raspberry Pi. I couldn't find any example has done for this drive how to connect the raspberry pi. Is there any guild how the GPIO pins work on this drive, please. I ...
by muqtar2
Sun Apr 22, 2018 1:37 am
Forum: Python
Topic: M542T (Microstep Driver) to Raspberry Pi 3 GPIO Pins Connection
Replies: 2
Views: 863

M542T (Microstep Driver) to Raspberry Pi 3 GPIO Pins Connection

My driver has Pul+,Pul-,Dir+,Dir-,Ena+,Ena-. Which GPIO pins should I connect to my Raspberry Pi 3. and how can I connect my M542T to Raspberry Pi. I couldn't find any example has done for this drive how to connect the raspberry pi. Is there any guild how the GPIO pins work on this drive, please. I ...
by muqtar2
Sat Apr 07, 2018 6:30 pm
Forum: Python
Topic: NEMA 24 stepper motor & DRV-8825 stepper motor drive
Replies: 2
Views: 967

NEMA 24 stepper motor & DRV-8825 stepper motor drive

HI, I am using NEMA 24 stepper motor with 24 volts and 3.5 amps, and I am using a DRV-8825 stepper motor drive. I just set-up exact as NEMA 23. My DRV-8825 stepper motor drive is getting warm, and my NEMA 24 stepper motor is making noising and not rotating any direction. It seems like I am following...

Go to advanced search