网站颜色:

5V4相 5线步进电机 28YBJ48 全新步进电机 减速电机 可配树莓派


步进电机

直径:28mm

电压:5V

步进角度:5.625 x (咨询特价)

减速比:(咨询特价)

5线

4相八拍

5V 减速步进电机

直径:28mm

频率:100Hz

直流电阻:50欧(+7%)

转矩:300 (gf.cm)

 

带线、带插头、插头为2.54mm

使用方便,噪音极低,运转平稳

5线4相 可以用普通uln2003芯片驱动,也可以接成2相使用 可以配套开发板使用,直接插接,方便使用 步进电机在开发板上使用

 

材料:
1.树莓派
2.步进电机驱动板 
http://jiayuguan.witcp.com/shop/c29/tb66cd1bd56a.html
3.步进电机28BYJ-48-5V 
http://jiayuguan.witcp.com/shop/c29/t19cbd5ed16c.html

使用GPIO0-GPIO3口


比较简单,请看附件中的up.py down.py left.py right.py
注意修改里面的GPIO端口号

01.#-----------------------------------

02.# Name: Stepper Motor

03.#

04.# Author: matt.hawkins

05.#

06.# Created: 11/07/(咨询特价)

07.# Copyright: (c) matt.hawkins (咨询特价)

08.#-----------------------------------

09.#!/usr/bin/env python

10.

11.# Import required libraries

12.import time

13.import RPi.GPIO as GPIO

14.

15.# Use BCM GPIO references

16.# instead of physical pin numbers

17.GPIO.setmode(GPIO.BCM)

18.

19.# Define GPIO signals to use

20.# GPIO24,GPIO25,GPIO8,GPIO7

21.StepPins = [17,18,21,22]

22.

23.# Set all pins as output

24.for pin in StepPins:

25.  print "Setup pins"

26.  GPIO.setup(pin,GPIO.OUT)

27.  GPIO.output(pin, False)

28.

29.# Define some settings

30.StepCounter = 0

31.WaitTime = 0

32.

33.# Define simple sequence

34.StepCount1 = 4

35.Seq1 = []

36.Seq1 = range(0, StepCount1)

37.Seq1[0] = [1,0,0,0]

38.Seq1[1] = [0,1,0,0]

39.Seq1[2] = [0,0,1,0]

40.Seq1[3] = [0,0,0,1]

41.

42.# Define advanced sequence

43.# as shown in manufacturers datasheet

44.StepCount2 = 8

45.Seq2 = []

46.Seq2 = range(0, StepCount2)

47.Seq2[0] = [1,0,0,0]

48.Seq2[1] = [1,1,0,0]

49.Seq2[2] = [0,1,0,0]

50.Seq2[3] = [0,1,1,0]

51.Seq2[4] = [0,0,1,0]

52.Seq2[5] = [0,0,1,1]

53.Seq2[6] = [0,0,0,1]

54.Seq2[7] = [1,0,0,1]

55.

56.# Choose a sequence to use

57.Seq = Seq1

58.StepCount = StepCount1

59.

60.# Start main loop

61.while 1==1:

62.

63.  for pin in range(0, 4):

64.    xpin = StepPins[pin]

65.    if Seq[StepCounter][pin]!=0:

66.      print " Step %i Enable %i" %(StepCounter,xpin)

67.      GPIO.output(xpin, True)

68.    else:

69.      GPIO.output(xpin, False)

70.

71.  StepCounter += 1

72.

73.  # If we reach the end of the sequence

74.  # start again

75.  if (StepCounter==StepCount):

76.    StepCounter = 0

77.  if (StepCounter<0):

78.    StepCounter = StepCount

79.

80.  # Wait before moving on

81.  time.sleep(WaitTime)

 

【功能特点】
 采用ULN2003驱动,使用方便
 优质步进电机,带齿轮减速,噪音极低,运转平稳
 5V即可驱动,方便单片机开发者使用
 开放性接口,也可用通过本板驱动其他步进电机

 适用于51/AVR/AVR/ARM等各种平台,机器人设计开发必备

 

官方 树莓派 Raspberry Pi B型rev2.0 512MB 送亚克力外壳
http://jiayuguan.witcp.com/shop/c29/t1ec8aded8cd.html&

树莓派 Raspberry Pi B型 512M 绿版 RS原装未拆封
http://jiayuguan.witcp.com/shop/c29/t19a89ceeb51.html

MICRO usb线   (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t191ead6ccb5.html&

5V2A电源 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbb99abb856e.html&

5V2A 开关电源 足2A输出 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t185a6c985ce.html

8G SD卡 闪迪 sandisk SDHC 卡 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbb99a8ebdb9.html&

class10 SanDisk闪迪 SDHC 8G SD卡 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tb1ce1cbcad5.html

pcduino Beaglebone bb-black 树莓派可用 TF卡 8G Class10送SD卡座
http://jiayuguan.witcp.com/shop/c29/tb1ce1dbe1d9.html

Ultra 16G SANDISK 闪迪 CLASS10 SDHC卡 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t181db1a685c.html

全铜 散热片  (咨询特价)(一个主板需要 2个 (咨询特价))
http://jiayuguan.witcp.com/shop/c29/t1edb58b9a56.html&

3个 纯铝散热片 散热片 散热器 套装  2.(咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbdd99188651.html

GPIO 扩展线 台湾进口插件 26P排线 
http://jiayuguan.witcp.com/shop/c29/t19a891cc19d.html

树莓派Raspberry PI GPIO转接板 用于面包板 纯金插件版
http://jiayuguan.witcp.com/shop/c29/tb1ce86ac6b8.html

Raspberry Pi 外国最高精度 时钟模块 DS3231 Arduino适用 带资料
http://jiayuguan.witcp.com/shop/c29/tb6c8d6ad6de.html

树莓派 Raspberry Pi TF转SD卡 转接板 美国原装Molex卡座 纯金
http://jiayuguan.witcp.com/shop/c29/tb1ce86bc9ca.html

亚克力 透明外壳   (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t1ec9bcd95e6.html&

hdmi转dvi dvi转hdmi 带屏蔽 1.5米 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t191ea6bc88d.html&

hdmi 高清线 延长线 双网双环镀金 1.5米  (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbd5aa1ad15c.html

SD+TF卡 品胜 多功能读卡器 支持 Beaglebone BB-Black
http://jiayuguan.witcp.com/shop/c29/t1bdaddc6d89.html

usb转TTL线 可送额线  (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbcaaa86dd91.html

额线  (咨询特价)/10根
http://jiayuguan.witcp.com/shop/c29/tbb99a6cbc8c.html

迷你USB无线网卡 150M 无线网卡
http://jiayuguan.witcp.com/shop/c29/t191e66dccaa.html&

USB HUB 2.0 高速集线器 免驱动 即插即用 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tba1ddd15c96.html


Pcduino 1GHz ARM A8处理器 1GB DRAM 2GB Flash 性能超树莓派 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t1eb68b985ea.html

pcDuino USB线 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbc1c1dd85dc.html

pcDuino 5V2A电源  (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t1ed8dc5a89d.html

pcDuino:Kit 三套件 HDMI线 电源头 USBmicro线 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbc1c1da85d5.html

pcDuino HDMI线 连接线  (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t19b61e99969.html

Linksprite原厂pcDuino TFT LCD 触摸屏模块 Touch LCD Shield  (咨询特价)
http://jiayuguan.witcp.com/shop/c29/t19b61811619.html

A/V Kit for pcDuino 配件包 电源头 HDMI hub usb线 网线  (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbb8a51b8ee5.html

WiFi Dongle for pcDuino usb wifi模块  (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbb8aad1bc8a.html
 
pcDuino 主机+USB wifi+电源+USB线 套件 (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbc1c1dc6e59.html

USB摄像头 300w像素 支持OK6410 树莓派 PCduino
http://jiayuguan.witcp.com/shop/c29/tbd9188cbcdc.html

包邮 最新 BeagleBone TI AM3359开发板 Cortex-A8 中国BB-Black
http://jiayuguan.witcp.com/shop/c29/tb1151edc9c1.html


1.5米 HDMI转D型 Micro HDMI 数据线 BeagleBone 中国版BB-Black
http://jiayuguan.witcp.com/shop/c29/tb6b8aad8cd6.html

pcduino Beaglebone bb-black 树莓派可用 TF卡 8G Class10送SD卡座
http://jiayuguan.witcp.com/shop/c29/tb1ce1dbe1d9.html

5V1A 电源
http://jiayuguan.witcp.com/shop/c29/td5bdb6acc9.html

5V2A 电源 2000ma  适用于 Beaglebone 中国版 bb-black 等开发板
http://jiayuguan.witcp.com/shop/c29/t81eee5c9de.html

usb转TTL线 可送额线 用于串口调试  (咨询特价)
http://jiayuguan.witcp.com/shop/c29/tbcaaa86dd91.html

超声波测距模块:
http://jiayuguan.witcp.com/shop/c29/t1851acda91a.html

红外发射模块+遥控器:1套
http://jiayuguan.witcp.com/shop/c29/t19cbdeca1eb.html

ULN2003步进电机驱动模块:
http://jiayuguan.witcp.com/shop/c29/tb66cd1bd56a.html

步进电机;
http://jiayuguan.witcp.com/shop/c29/t19cbd5ed16c.html

面包板专用电源模块 兼容5V、3.3V 树莓派
http://jiayuguan.witcp.com/shop/c29/t19cbdeca68d.html

优质面包实验板 可用于树莓派 Arduino 万能板 165×55×10mm
http://jiayuguan.witcp.com/shop/c29/tb66cdeb8bd8.html

 

 

热门设计服务