There are currently 8 posts.
Font size: Small - 100% (Default)▼  Content converter: No conversion▼
 
Clicks Replies
146 7
【截图】fc5sx风力计采集数据成功记录截图
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 8/31/26 11:30
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 3 Posted at: 8/31/26 11:34
开发板:蓝色的RockpiS LCPI RK3308B四核CPU开发板

串口引脚:
UART3_TX GPIO3_B5 P72-10 接MAX485的TXD引脚
UART3_RX GPIO3_B4 P72-17 接MAX485的RXD引脚
MAX485的VCC接的是3.3V,可以正常使用。

设备树:
/ {
    fc5sx {
        compatible = "testboard,fc5sx";
        uart = <&uart3>;
    };
};

&uart3 {
    status = "okay";
    pinctrl-0 = <&uart3_xfer>; // 选择UART3使用的引脚:GPIO3_B5和GPIO3_B4
};
 
巨大八爪鱼: MAX485的TXD和RXD与单片机的UART_TX和UART_RX引脚直连,不能交叉。
  8/31/26 11:34 Reply
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 4 Posted at: 8/31/26 11:49
【测试命令】
insmod gpio-pca953x.ko
insmod cht8315.ko
insmod fc5sx.ko
insmod ti-ads7924.ko
insmod stepmotor.ko
./wind_testbed_control device.yaml
cat data.csv
cat /dev/cht8315_event
cat /dev/fc5sx_event
cat /dev/stepmotor_event

【测试数据】
^Croot@rk3308b-buildroot:~# cat data.csv
Angle,Temperature,Humidity,Wind speed,Wind direction,Wind sensor
45,25.4,51.6,0,1125,362
90,25.4,51.6,0,1125,361
135,25.4,51.6,0,1125,362
45,25.5,51.6,6,1125,361
90,25.5,51.5,4,1125,362
45,25.5,51.4,12,450,361
90,25.5,51.4,16,2475,362
root@rk3308b-buildroot:~# cat /dev/cht8315_event
Temperature: 25468mC, Humidity: 51342m%
root@rk3308b-buildroot:~# cat /dev/fc5sx_event
Speed: 2, Direction: 2475
root@rk3308b-buildroot:~# cat /dev/stepmotor_event
stepmotor: enabled=0, period=1000000, duty_cycle=500000, polarity=0, oneshot_count=50
root@rk3308b-buildroot:~#
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 5 Posted at: 9/11/26 9:18
 
巨大八爪鱼: 这是rk3506
  9/14/26 10:34 Reply
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 6 Posted at: 9/11/26 9:20
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 7 Posted at: 9/14/26 10:28
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 146 Replies: 7
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 9/14/26 10:34
Bar Hot Posts
Announcements