-
1046.-Plane-Spotting
大多数自行车速度表工作通过使用霍尔效应传感器固定在自行车前叉。磁铁是附加到前轮上的辐条之一,它将与霍尔效应开关一次革命的车轮。速度计监测传感器计数轮革命。如果知道车轮的直径,距离可以很容易地计算如果你知道有多少革命的车轮。此外,如果时间完成革命,平均速度也可以计算出来。
对于这个问题,您将编写一个程序来确定总距离(英里)和平均速度(英里每小时)考虑到车轮直径,革命的数量和总时间的旅行。你可以假定前轮从未离开地面,并没有下滑或打滑。(Most bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the spokes on the front wheel so that it will line up with the Hall Effect switch once per revolution of the wheel. The speedometer monitors the sensor to count wheel revolutions. If the diameter of the wheel is known, the distance traveled can be easily be calculated if you know how many revolutions the wheel has made. In addition, if the time it takes to complete the revolutions is known, the average speed can also be calculated.
For this problem, you will write a program to determine the total distance traveled (in miles) and the average speed (in Miles Per Hour) given the wheel diameter, the number of revolutions and the total time of the trip. You can assume that the front wheel never leaves the ground, and there is no slipping or skidding.)
- 2013-12-21 14:06:26下载
- 积分:1
-
Calculate-the-position-of-the-sun
计算太阳位置,通过公式!用单片机编译程序!(Calculate the position of the sun through the formula! Microcontroller compiler!)
- 2012-12-18 22:09:24下载
- 积分:1
-
avr_book
avr单片机的pdf和一本入门书籍,大家可先看上个三四天,再动手前有个基础。(pdf avr microcontroller and a Getting Started book, you can look at the last three or four days, before you start a foundation before.)
- 2010-06-21 15:59:01下载
- 积分:1
-
System.Drawing.PSD-master
vedio and prossing that image
- 2014-04-21 00:56:11下载
- 积分:1
-
mmm
说明: 通过使用tm4c123单片机调制出一个spwm波进行输出,(Through the use of tm4c123 MCU modulation of a SPWM wave output,)
- 2020-05-24 19:03:30下载
- 积分:1
-
first
MMA8452Q与STC89C52连接程序
GY-45 MMA8452Q IIC程序
使用单片机STC89C52RC
晶振:12M
显示:电脑串口 波特率 9600
编译环境 Keil uVision2
(The MMA8452Q and STC89C52 linker)
- 2012-10-30 09:39:47下载
- 积分:1
-
CC2530-zstack-PWM
CC2530,通过PWM调光,实现LED灯由亮变暗,由暗变亮,不断变化,基于IAR编译。(CC2530, by PWM dimming, LED lights achieve the light dimmed by the dark to light, constantly changing, based on the IAR compiler.)
- 2016-06-24 10:50:57下载
- 积分:1
-
Modbus
对modbus的讲解比较详细,简单易懂,适合初学者(
Modbus to explain in more detail, easy to understand for beginners)
- 2016-03-21 17:42:22下载
- 积分:1
-
RG2051
用于接收红外摇控器和异步串行的8051单片机程序(for receiving infrared remote control and asynchronous serial 8051 of the procedures )
- 2006-11-02 16:50:25下载
- 积分:1
-
PWM
这是avr单片机pwm输出程序,是电机控制不可缺少的,也是控制类里面比较重要的程序,好好学习一下吧(This is the avr microcontroller pwm output process, motor control is indispensable, and it is more important to control the class inside the program, learn about it)
- 2011-10-03 17:03:05下载
- 积分:1