Files
wire_controlsystem/readme.md

48 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 开发板上找串口号
## 找串口号
sudo ls /dev/tty{S*,ACM*,USB*,rfcomm*}
看看是哪儿个串口号,比如我的是/dev/ttyACM0
使用sudo dmesg | grep -i acm查看如果出现
ttyACM0: USB ACM device
说明是这个串口
## 给串口赋权限
sudo chmod 666 /dev/ttyACM0
# python版本
3.9
# 各设备IP地址
工控机192.168.5.50 用户名teamhd 密码teamhd
笔记本192.168.5.105
网络继电器192.168.5.18
RK1106192.168.5.100
相机1192.168.5.10(黑色)
相机2192.168.5.11(黑色)
相机3192.168.5.164(白色) 账号admin 密码XJ123456
# 网络继电器传感器:
1、传感器1DI5 (右边那个)
2、传感器2DI4
3、光纤传感器DI1 拉低延时125ms(当有信号时物体离开信号会持续125ms)
4、双按压传感器DI2、3
5、吸取装置电磁阀DO4、5、6、7、8
# 传送带伺服电机使用:
## 使能P04.00将01值改成83失能就是把83值改成01
## 该型号伺服电机每旋转一圈指令单位为10000编码器单位为2^17=131072该电机为17位电机
指令单位:编码器单位 = 10000 / 131072 = 0.78125
## 参数:刚性--15惯量比--1250
电机:小轴 = 8 15 = 1.875 10000个脉冲走25.8cm
6007个脉冲走15.5cm
## PR模式将P00.01设为6PR模式
### PR模式下的绝对位置模式设置原点
![绝对位置设置原点.png](img.png)