(2) 确定弯曲中心的位置 以圆心为矩心,由合力矩定理得 2π 2π S 0 S S 0 (1 cosd d d 2) π A R F e R A R tR F F Rτ τ θθ θ⋅ = = ⋅ = =−∫ ∫ ∫ 解得 2e R= 弯曲中心一定在对称轴上, SF 与对称轴的交点,即由圆心沿 z轴向左量取 2e R= ,就 是弯曲中心。 8.10 习 题 1. 中段开槽的直杆如图 8.44 所示,受轴向力 F 作用;已知: 20mmF = , 25mmh = , 0 10mm,h = 20mmb = ,试求杆内的最大正应力。 图 8.44 2. 如图 8.45 所示,油缸盖与缸体采用 6 个螺栓连接。已知油缸内径 350 mmD = ,油 压 1 MPap = 。若螺栓材料的许用应力[ ] 40 MPaσ = ,试求螺栓的内径。 3. 某拉杆受力如图 8.46所示,已知: 2h b= , 40kNF = ,[ ] 100MPaσ = 。试设计拉杆 截面尺寸 h、b。
2022-11-09 22:14:53 14.93MB 工程力学
1
基于STC15单片机的EC11旋转编码器驱动程序。支持一定位对一脉冲或两定位对一脉冲的两种规格EC11。并实现旋转编码器按键单击双击长按功能
1
STM32外接旋转编码器(EC11),外部中断方式识别出正反转,响应速度优良,无丢步现象,无需延时滤波。在强干扰环境下测试正常。注意是仪器仪表面板常见的那种编码器,不是电机测速的那种。
1
在 gpio-keyc的基础上改写的旋转按钮 ec11的驱动,已经经过了测试。可自定义左旋和右旋的键值。如果按键值输入是第三个引脚,也支持按键操作 补存的头文件: gpio_ec11.h #ifndef _GPIO_EC11_H #define _GPIO_EC11_H struct device; struct gpio_desc; /** * struct gpio_ec11_button - configuration parameters * @leftcode: ec11 left direction input event code (KEY_*, SW_*) * @rightcode: ec11 right direction input event code (KEY_*, SW_*) * @gpio: %-1 if this key does not support gpio * @gpio: %-1 if this key does not support gpio * @active_low: %true indicates that button is considered * depressed when gpio is low * @desc: label that will be attached to button's gpio * @type: input event type (%EV_KEY, %EV_SW, %EV_ABS) * @wakeup: configure the button as a wake-up source * @debounce_interval: debounce ticks interval in msecs * @can_disable: %true indicates that userspace is allowed to * disable button via sysfs * @value: axis value for %EV_ABS * @irq: Irq number in case of interrupt keys * @gpiod: GPIO descriptor */ struct gpio_ec11_button { unsigned int code; unsigned int leftcode; /*记录左旋键值*/ unsigned int rightcode; /*记录右旋键值*/ int gpio; /*旋转编码器A引脚的gpio号*/ int subgpio; /*旋转编码器B引脚的gpio号*/ int active_low; const char *desc; unsigned int type; int wakeup; int debounce_interval; bool can_disable; int value; unsigned int irq; unsigned int irq_flags; struct gpio_desc *gpiod; }; /** * struct gpio_ec11_platform_data - platform data for gpio_ec11 driver * @buttons: pointer to array of &gpio;_keys_button structures * describing buttons attached to the device * @nbuttons: number of elements in @buttons array * @poll_interval: polling interval in msecs - for polling driver only * @rep: enable input subsystem auto repeat * @enable: platform hook for enabling the device * @disable: platform hook for disabling the device * @name: input device name */ struct gpio_ec11_platform_data { struct gpio_ec11_button *buttons; int nbuttons; unsigned int poll_interval; unsigned int rep:1; int (*enable)(struct device *dev); void (*disable)(struct device *dev); const char *name; }; #endif
2022-07-05 22:52:12 27KB linux驱 ec11
1
用的单色OLED屏显示,不得不说,使用单色屏幕的话,有些控件不能正常显示,需要自己额外设定一下,而且对于有动态变化的控件来说更是如此,比如按钮,在彩色屏幕下正常添加一个按钮按下时会有按下的动态效果,而在单色屏幕下就需要额外设置。还有开关等,可能都需要额外设置。对于只是起显示作用的控件来说影响不大,标签,图表,线条等。写了一个界面,其中包含两个按钮,使用编码器进行选择。
2022-06-27 13:20:13 17.3MB lvgl 旋转编码器 单色OLED
1
STM32F103之EC11驱动LL库源码/**/
2022-04-25 15:24:01 16.49MB STM32F103 EC11 LL库
1
六个EC11旋转程序加普通按键,对于有飞梭旋转仪器有很好的帮助
2022-04-04 18:14:56 4KB EC11,按键
1
两脚那侧是一个开关,按一下则导通, 三脚那侧:中间的那个脚是接地,旁边两个脚接10K的上拉电阻。
2021-12-18 14:12:32 686KB EC11 STM32 编码器
1
基于STM32F407 EC11旋转编码器驱动函数-多版本
2021-07-13 09:03:41 3KB EC11 旋转编码器 STM32F407
1
STM32F407 EC11旋转编码器驱动函数,里面写了好多个版本,可以根据需要使用,这个只是实现功能,实际要用,一般都在中断中,按照思路改到中断就可以了。
2021-06-16 00:52:18 3KB EC11 旋转编码器
1