2020-7-31 21:21:18 [显示全部楼层]
2140浏览
查看: 2140|回复: 5

[项目] 发光逗趣口罩

[复制链接]
本帖最后由 gada888 于 2020-8-24 16:53 编辑

引言:
Arduino做的各种应用广泛被开源硬件爱好者喜欢。今天给大家介绍一个互动性强的arduino点阵搞怪口罩,这个是我在看到国外的创客伙伴先做了一个麦克风+8x8LED的模仿人说话口型的口罩出来,然后灵机一动,用手边的点阵模块+震动模块的组合也模仿了一个模仿人说话口型的口罩出来,主要是给经常带口罩的人娱乐他人用的。
发光逗趣口罩图11

相关视频会在3日内奉上。

第一步:展示内容
通过嘴巴的运动触发震动模块,从中使得arduino控制的点阵led显示打开的嘴巴形状,好像人在说话的喜剧效果。
发光逗趣口罩图2
发光逗趣口罩图3
发光逗趣口罩图4
第二步:关键难点是arduino的选型,最后选了可穿戴的arduino lilypad模块做主控
发光逗趣口罩图5
发光逗趣口罩图6
第三步:硬件搭建
所需器材:Arduino lilypad控制器(2);震动传感器(3);8x8点阵模块(4);5v
锂电池;(5);FTDI烧录模块;

第四步:了解一下关键硬件的参数
根据测试,震动模块的旋钮调整到绿色led灯亮时候,效果最佳

第五步:
发一些硬件的图片。让人有个直观的认识
发光逗趣口罩图7
发光逗趣口罩图8
发光逗趣口罩图9
发光逗趣口罩图10
第六步:总体介绍
逗趣口罩设计系统是由点阵模块震动传感器和lilypad arduino来完成的。震动传感的灵敏度可以调整,
做好后放在两个口罩中间缝合好,工作原理是通过嘴的动作触发震动模块来实现点阵决定显示何种图案的。
第七部:连线图
发光逗趣口罩图1
第七部:代码部分的设计

[mw_shl_code=applescript,false]/*
* This project is for fun only.it simulates a speaking mouth through
* a 8x8 led matrix modual and a Vibration modual.
* It was made by gada888 from Luoyang.CN.28-06-2020
* contact email:gada888@hotmail.com
*/

#include <LedControl.h>
int VIB =6;
int DIN = 8;
int CS  = 9;
int CLK = 10;

LedControl lc = LedControl(DIN, CLK, CS, 0);

byte open[8]  = {0x0,0x0,0x3C,0xC3,0x42,0x3C,0x0,0x0};
byte close[8]    = {0x0,0x0,0x0,0xFF,0x0,0x0,0x0,0x0};

void setup() {
    lc.shutdown(0, false);    //The MAX72XX is in power-saving mode on startup
    lc.setIntensity(0, 4);   // Set the brightness to maximum value
    lc.clearDisplay(0);       // and clear the display
    pinMode(VIB, INPUT);
    Serial.begin(9600);
}

void loop() {
  long measurement =TP_init();
  delay(50);
  Serial.print("measurment = ");
  Serial.println(measurement);
  if (measurement > 1000){
        printByte(open);
        }
       else{
        printByte(close);
  }
}


void printByte(byte character []) {
    int i = 0;
    for(i = 0; i < 8; i++) {
        lc.setRow(0, i, character);
    }
}

long TP_init(){
  delay(10);
  long measurement=pulseIn (VIB, HIGH);  //wait for the pin to get HIGH and returns measurement
  return measurement;
}[/mw_shl_code]

DFS1w2cb8o8  中级技师

发表于 2020-7-31 21:51:23

厉害厉害
回复

使用道具 举报

rzyzzxw  版主

发表于 2020-8-1 09:40:03

这么帅啊
回复

使用道具 举报

20060606  高级技匠

发表于 2020-8-1 10:08:31

显示的是什么?
回复

使用道具 举报

MOKfcGBj  学徒

发表于 2020-8-1 18:47:11

有点东西的呀
回复

使用道具 举报

gray6666  初级技神

发表于 2020-8-1 20:58:37

楼主高产作品多,赞一个
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail