最好的电子音响科技diy制作网站

haoDIY_音响电子电脑科技DIY小制作发明

如何创造的真理:真理的立方体

时间:2017-05-19 14:00来源:未知 作者:admin 点击:
thisreading numreadings;thisreading ++){ 读数[ thisreading ] = 0; } / * * / 如果初始化传感器! BMP。begin()) { /有个问题检测 请检查连接* / 串口打印(抱歉,没有BMP085检测 检查你的接线或I2C地址!)
如何创造的真理:真理的立方体

我发现所有的最大的真理标准的条件下发生的。这些标准的条件是25摄氏度和100 kPa(压力)。

在下面我将告诉你如何创建一个立方体,创造真理真理的时刻被复制的标准条件。有创造的真值条件的方法很多,比我更知道或可以描述。因此,下面我将显示你到达真理的立方体的方法。

请在我的其他教学描述到达真理的替代方法,一看。

步骤1:材料

材料

材料

  • 1标准的亚克力板材
  • 5注射器(我用的100ml但越大越好一般)
  • 丙烯酸溶剂胶
  • 电工胶带
  • 微控制器
  • BMP180气压传感器(或同等学历)
  • Arduino兼容的液晶屏
  • 小型直流加热元件(我用一个12V的50w PTC加热元件)
  • 电线钻钻头

可取的:

  • 激光切割机
  • 已经存在的立方体或立方体框架

步骤2:建筑物外的立方体

建筑的外体

这个道理立方体实际上是由内、外两个立方体立方体魔方,除非你有一个预先存在的外体,像我一样,最好是开始设计外立方体第一。设计时,你有2个重要的考量外立方体:

  1. 尺寸是材料内部
  2. 材料的成本

在决定你的立方体的边长必须体谅的长度2注射器和你的内盒,必须大到足以容纳你的压力传感器和加热元件

我们之所以从外立方体是它将制作最昂贵和困难。这个盒子太大,将是昂贵的,也许不可能削减使用激光切割机。如果您使用的是激光刀在制定你的计划他们耗时的改变当我意识到我的箱子太大首先检查切割床的尺寸就好了。

步骤3:创建你的盒子计划

创建你的盒子计划

在这个项目中,我探讨了2种不同的在线激光切割盒制造商
makercase使用这一个如果你要手动切断你的盒子(确保你选择的平边缝)

makeabox使用这一个如果你要激光切割,这里我们可以使用标签使我们的盒子更容易结合在一起

这些工具要求类似的信息,关于你的盒子的尺寸。你要确保你是否是内部或外部的尺寸测量和您所使用的相同的厚度的亚克力,你使用注意。

步骤4:编辑你的计划

编辑你的计划

这一步将需要编辑的设计,我们从网上下载盒制造商。这将需要使用一个矢量编辑软件如Illustrator或构成要素或CAD软件包。
因为我已经熟悉了免费的在线CAD软件Onshape我上传的图形文件并编辑它们。

修改

我们要切一圈5为我们的注射器对着中(我的注射器的直径30mm)。完整无缺的脸将我们的盒底。

步骤5:激光切割立方体内

激光切割的立方体内

对于立方体内重复使用相同的过程外立方体。过计算我们的立方体内的尺寸,为此我们需要做以下计算

外径内立方体=外径外立方- 2 *(距离注射器喷嘴数量喷嘴进入立方体内)

这是一部我有错,请确保你把它画在纸上所以你不犯同样的错误。

修改

如果喷嘴是不是围绕你的注射器,你将需要确保注射器的切入点是由适量的偏移。这样对所有的脸即使你只有5个注射器的底面全为切入点的线将你的压力传感器和加热元件

步骤6:胶块

你是否能够进行激光切割你的计划或是手工粘合的过程应该是一样的。激光切割的好处是,你的脸要严丝合缝,你有一个标签来帮助你的脸在一起而粘合。粘合,将丙烯酸溶剂到你脸上满足的内边缘,小心不要靠近脸的中间任何胶水你可能阻碍真理观看。离开一个面脱胶和离开一夜之间设置。记住重要的不是你的外表的立方体密闭但你的立方体内是很重要。

把你的立方体内用相同的方法确保你离开一边脱胶,再将底。

步骤7:创建传感器Mount

Mount创建传感器

我们需要在战略位置传感器在盒子里所以它准确地代表了温度。我创建了一个安装使用尼龙垫片延长了传感器在盒中。

步骤8:插入加热元件和传感器

插入加热元件和传感器

把你内心的盒子式的脸,把你的加热元件和传感器安装在底面,确保它是一个安全的距离,从塑料,钻新孔的要求。封孔用亚克力胶。

步骤9:连接硬件

连接硬件

在我们粘东西关我们需要检查电子设备工作正常
请参考以上接线图连接硬件。

如果你可以使用LCD的盾牌,这将使你的生活更方便!

步骤10:代码

此代码已经从Adafruit传感器库修改。

请在这里下载或复制并粘贴以下为黑色素描。
这需要一些知识和Arduino IDE,你可以阅读在这里

<p>#include <Wire.h><br>#include <Adafruit_Sensor.h></p><p>#include < Adafruit_BMP085_U.h></p><p>#include  <LiquidCrystal.h></p><p>LiquidCrystal lcd(8, 9, 4, 5, 6, 7);</p><p>/* This driver uses the Adafruit unified sensor library (Adafruit_Sensor),
   which provides a common 'type' for sensor data and some helper functions.
   
   To use this driver you will also need to download the Adafruit_Sensor
   library and include it in your libraries folder.</p><p>   You should also assign a unique ID to this sensor for use with
   the Adafruit Sensor API so that you can identify this particular
   sensor in any data logs, etc.  To assign a unique ID, simply
   provide an appropriate value in the constructor below (12345
   is used by default in this example).
   
   Connections
   ===========
   Connect SCL to analog 5
   Connect SDA to analog 4
   Connect VDD to 3.3V DC
   Connect GROUND to common ground
    
   History
   =======
   2013/JUN/17  - Updated altitude calculations (KTOWN)
   2013/FEB/13  - First version (KTOWN)
*/
   
Adafruit_BMP085_Unified bmp = Adafruit_BMP085_Unified(10085);</p><p>//Setting up variables for calculating a rolling average for pressure
const int numReadings = 50;</p><p>float readings[numReadings];      // the readings from the analog input
int readIndex = 0;              // the index of the current reading
float total = 0;                  // the running total
float average = 0;                // the average
/**************************************************************************/
/*
    Displays some basic information on this sensor from the unified
    sensor API sensor_t type (see Adafruit_Sensor for more information)
*</p><p>**************************************************************************/
/*
    Arduino setup function (automatically called at startup)
*/
/**************************************************************************/
void setup(void) 
{
  Serial.begin(9600);
  Serial.println("Pressure Sensor Test"); Serial.println("");</p><p>    for (int thisReading = 0; #p#分页标题#e#thisreading < numreadings;thisreading ++){ 
读数[ thisreading ] = 0;
 } 
 / * * / 
如果初始化传感器!BMP。begin())
 { 
 /有个问题检测…请检查连接* / 
串口打印(“抱歉,没有BMP085检测…检查你的接线或I2C地址!”);
    while(1);
  }</p><p>  //Displaying 
    lcd.begin(16, 2); //initalising size of display (16 collumns, 2 rows)
  lcd.setCursor(0,0); //set cursor to first row and first collumn
  lcd.print("Temp:");
  lcd.setCursor(0,1);
  lcd.print("Pres:");</p><p>}</p><p>/**************************************************************************/
/*
    Arduino loop function, called once 'setup' is complete (your own code
    should go here)
*/
/**************************************************************************/
void loop(void) {
  /* Get a new sensor event */ 
  sensors_event_t event;
  bmp.getEvent(&event);
 
  /* Display the results (barometric pressure is measure in hPa) */
  if (event.pressure)
  {
    /* Display atmospheric pressue in hPa */
    Serial.print("Pressure:    ");
    Serial.print(event.pressure);
    Serial.println(" hPa");
    
    /* Calculating altitude with reasonable accuracy requires pressure    *
     * sea level pressure for your position at the moment the data is     *
     * conver泰德,以及环境温度在摄氏度
 * *。如果你没有这些价值观,一个“通用”的价值
 * * 1013.25 hPa可用(定义为sensors_pressure_sealevelhpa * 
 *传感器。H),但这并不是理想的,从一天到另一天给
变* *结果。* * * * 
 
通常可以通过看天气
 *网站或从环境信息中心附近的任何大* 
机场找到当前气压值。*
     *                                                                    *
     * For example, for Paris, France you can check the current mean      *
     * pressure and sea level at: <a href="http://bit.ly/16Au8ol" rel="nofollow"> http://bit.ly/16Au8ol </a>                   */
     
    /* First we get the current temperature from the BMP085 */
    float temperature;
    bmp.getTemperature(&temperature);
    Serial.print("Temperature: ");
    Serial.print(temperature);
    Serial.println(" C");</p><p>    /* Then convert the atmospheric pressure, and SLP to altitude         */
    /* Update this next line with the current SLP for better results      */
    float seaLevelPressure = SENSORS_PRESSURE_SEALEVELHPA;
    Serial.print("Altitude:    "); 
    Serial.print(bmp.pressureToAltitude(seaLevelPressure,
                                        event.pressure)); 
    Serial.println(" m");
    Serial.println("");</p><p>  lcd.setCursor(5,0);
  lcd.print(temperature);
  lcd.print((char)223);
  lcd.print("C ");
 
 </p><p>  // subtract the last reading:
  total = total - readings[readIndex];
  // read from the sensor:
  readings[readIndex] = event.pressure;
  // add the reading to the total:
  total = total + readings[readIndex];
  // advance to the next position in the array:
  readIndex = readIndex + 1;</p><p>  // if we're at the end of the array...
  if (readIndex >= numReadings) {
    // ...wrap around to the beginning:
    readIndex = 0;
  }</p><p>  // calculate the average:
  average = total / numReadings;</p><p>  delay(1); 
  
  lcd.setCursor(5,1);
  lcd.print(average); // print average pressure 
  lcd.print("hPa");
  }
  else
  {
    Serial.println("Sensor error");
  }
  delay(0);
}</p>
 
  • portabletruthsensor.inoportabletruthsensor.ino
    下载

步骤11:制作立方体气密

粘在底面你的小立方体的传感器和加热元件的连接。除非你是了不起的你的盒子其实不会密闭。为了绕过这个我用电工胶带的外边缘。我还申请了更多的立方体在导线进入立方体,你可以通过爆破空气的立方体,感觉它是测试你的箱子的气密性。


注:重要的是看这个盒子里面你不想错过任何时刻,尽量不妨碍观看。

步骤12:真理的时刻

真理的时刻

现在是时候把它放在一起,

把立方体内外立方体和插入注射器内,胶注射器嘴唇外面的立方体,安全带和离开干燥24小时。当设置删除磁带和你做。恭喜你,你已经把你的创造真理的第一步!

 
(责任编辑:admin)
织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片