Cov txheej txheem:

Arduino Raws Li Lightsaber Nrog Lub Teeb thiab Suab Zoo: 14 Kauj Ruam (nrog Duab)
Arduino Raws Li Lightsaber Nrog Lub Teeb thiab Suab Zoo: 14 Kauj Ruam (nrog Duab)

Video: Arduino Raws Li Lightsaber Nrog Lub Teeb thiab Suab Zoo: 14 Kauj Ruam (nrog Duab)

Video: Arduino Raws Li Lightsaber Nrog Lub Teeb thiab Suab Zoo: 14 Kauj Ruam (nrog Duab)
Video: World's first proto-lightsaber! 2024, Kaum ib hlis
Anonim
Image
Image
Cov Khoom thiab Cov Khoom
Cov Khoom thiab Cov Khoom

Nyob zoo jedi! Cov lus qhia no yog hais txog kev ua lub teeb ci, uas zoo li, suab thiab ua tau zoo ib yam hauv zaj yeeb yaj kiab! Qhov sib txawv nkaus xwb - nws tsis tuaj yeem txiav hlau:(Cov cuab yeej no yog ua raws ntawm Arduino platform, thiab kuv muab nws ntau yam thiab ua haujlwm, nws yog txoj haujlwm loj heev thiab kuv tau siv tag nrho kuv cov txuj ci txuj ci, tab sis nws tsim nyog nws!

Yog li, cia tham txog cov yam ntxwv! Tsis tas li koj tuaj yeem saib qhov kev tshuaj xyuas luv hauv kuv cov vis dis aus, uas kuv qhia txhua qhov cuam tshuam thiab kev ua haujlwm ntawm GyverSaber system thiab tseem muaj ob tus kws tshaj lij jedi sib ntaus nrog kuv lub teeb ci nyob rau qhov kawg ntawm video!

Nta:

  • Tig tig/tawm nrog lub suab zoo li lub suab zoo
  • Randomly pulsing xim (koj tuaj yeem tua nws)
  • Suab:
  • QAUV 1: tsim hum. Zaus nyob ntawm lub nrawm nrawm ntawm cov hniav
  • QAUV 2: suab nrov los ntawm SD daim npav
  • Qhib qeeb - lub suab nrov ntev (tsis zoo los ntawm 4 lub suab)
  • Viav vias nrawm - suab nrov luv (tsis zoo los ntawm 5 lub suab)
  • Ci ntsa iab dawb thaum ntaus
  • Ua si ntawm 16 lub suab nrov, thaum ntaus:
  • Tsis muaj zog ntaus - lub suab luv
  • Nyuaj ntaus - ntev "bzzzghghhdh" suab
  • Tom qab lub zog ntawm cov hniav qhia pom qib roj teeb tam sim no los ntawm 0 txog 100 feem pua

Roj teeb muaj kev nyab xeeb hom

  • Roj teeb tau ntws ua ntej tig mus: GyverSaber yuav tsis qhib, khawm LED yuav PULSE ob peb zaug
  • Roj teeb tau ntws tom qab TURNING ON: GyverSaber yuav raug muab txiav tawm

Tswj lub pob:

  • HOLD - qhib / tua GyverSaber
  • QHOV TSEEM CEEB - hloov xim (liab - ntsuab - xiav - daj - paj yeeb - dej xiav)
  • QUINARY CLICK - hloov suab hom (hum tiam - hum ua si)
  • Xaiv xim thiab suab hom khaws cia hauv EEPROM (tsis nco lub cim xeeb)

Kauj Ruam 1: Cov Khoom thiab Cov Khoom

Kuv ib txwm yuav cov neeg ua haujlwm hluav taws xob ntawm Aliexpress, tab sis koj tuaj yeem pom tib cov qauv ntawm Amazon, eBay, thiab lwm yam.

Cov khoom siv hluav taws xob:

  • Arduino NANO
  • Addressable LED sawb. WS2811, 12V. Siv PCB dawb, IP30, 60 LEDs rau ib lub meter https://ali.pub/23csyd
  • Khawm nrog LED. Siv 5V version
  • MPU6050
  • Pheej yig MicroSD
  • MicroSD module mini
  • Los yog qhov no
  • Cov roj teeb 18650 nrog kev tiv thaiv https://ali.pub/23moiu
  • DCDC nqis nqis https://ali.pub/23mpex
  • Amplifier https://ali.pub/23mp6d
  • Hais lus https://ali.pub/23mq8h
  • Resistors KIT
  • Fais fab khawm
  • Them chaw nres nkoj
  • CC CV charger rau 3 lub cell https://ali.pub/23mt8s
  • Pawg thawj coj tsab ntawv

Cov ntaub ntawv thiab cov twj paj nruag:

  • Polycarbonate raj (lub teeb diffusion, 32mm)
  • 2 lub lauj kaub rau lub cev no
  • Qee lub raj rau hilt (Kuv siv PVC cov kav dej phwj tuaj thiab tubings: 40mm rau hilt, 32mm rau PC tube mount)
  • Hlau hlau
  • Cov cuab yeej siv rau cov laug thiab txiav yas

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Kuv txiav txim siab ua qhov haujlwm no ntawm pawg thawj coj saib, 3x7cm, koj tuaj yeem pom txhua yam duab thiab qee qhov tsis zoo-nrhiav-thaiv =)

TSEEM CEEB! Ua ntej thaiv, txuas DCDC nqis nqis hloov mus rau 12V DC lub zog hluav taws xob thiab kho qhov hluav taws xob tawm mus rau 4.5V!

Kauj ruam 3: Qhib

Qhib
Qhib
Qhib
Qhib
Qhib
Qhib

Kuv siv cov kav dej phwj tuaj rau hilt, tab sis cov no yog cov kav dej hauv tebchaws Russia, yog li kuv xav tias koj yuav tsum tau tsim kho.

Kauj ruam 4: Roj teeb

Roj teeb
Roj teeb
Roj teeb
Roj teeb
Roj teeb
Roj teeb

Kuv siv 3 lub roj teeb lithium (zoo ib yam 18650 los ntawm lub roj teeb laptop). Thaum xub thawj peb yuav tsum muab lawv tso rau hauv 40mm raj (hilt), thiab peb yuav tsum tau muab lub raj cua sov rau nws. Tab sis thaum xub thawj peb xav tau kho cov roj teeb ua ke los ntawm kab xev thiab ua kom tuab nrog 2 txheej ntawv.

Yog li ua kom sov lub raj, tso roj teeb sab hauv thiab txias lub raj kom sai li sai tau! Lithium roj teeb heev tsis nyiam kub. Tom qab ntawd rub lawv tawm thiab koj yuav pom cov roj teeb zoo meej.

Kauj Ruam 5: Cov Roj Teeb Hluav Taws Xob

Cov Roj Teeb Hluav Taws Xob
Cov Roj Teeb Hluav Taws Xob
Cov Roj Teeb Hluav Taws Xob
Cov Roj Teeb Hluav Taws Xob

Raws li kuv tau hais, cov roj teeb lithium tsis nyiam kub. Yog li siv flux thiab muaj zog yaj cov hlau (100W) los txhuam cov roj teeb sai heev. Yog li, txuas lawv hauv xov tooj.

Kauj Ruam 6: Hniav thiab LED Sawb

Hniav thiab LED Sawb
Hniav thiab LED Sawb
Hniav thiab LED Sawb
Hniav thiab LED Sawb
Hniav thiab LED Sawb
Hniav thiab LED Sawb
Hniav thiab LED Sawb
Hniav thiab LED Sawb

Kuv muaj 75cm hniav, yog li kuv txiav 75+75 = 150cm daim kab xev. LED sawb yuav tau muab ob npaug ib ncig ntawm cov xaim, yog li siv daim kab xev ob sab los txhim kho txhua yam, thiab koj yuav tau txais ob sab LED sawb nrog xaim sab hauv.

Sawb xav tau qee qhov kev txhawb nqa raws lub raj raj, Kuv siv 3 qhov kev txhawb nqa ua los ntawm cov ntsia hlau hauv cov raj cua sov, thiab txuas lawv mus rau hlua nrog xov thiab super kua nplaum.

Laum ib lub qhov nyob rau hauv cov ntoo rau xaim, xaim yuav raug xauv ntawm ob lub qia thiab tsau los ntawm 3mm ntsia hlau, tab sis tsis yog tam sim no.

Kauj Ruam 7: MPU6050

PIB 6050
PIB 6050
PIB 6050
PIB 6050
PIB 6050
PIB 6050

Kuv txuas MPU6050 siv lub qub IDE flex hlau, vim nws yog lub tswv yim zoo tso MPU ze rau ntawm cov hniav li sai tau. Thiab kuv tsuas yog lo nws hauv qis qis ntawm PC raj:)

Kauj Ruam 8: Hilt Nyees khawm

Hilt Nyees khawm
Hilt Nyees khawm
Hilt Nyees khawm
Hilt Nyees khawm
Hilt Nyees khawm
Hilt Nyees khawm

Ua qee qhov rau khawm thiab them chaw nres nkoj, thiab ob peb qhov hauv qab rau tus hais lus. Tsis tas li kuv pleev xim rau xim dub.

Kauj Ruam 9: Kev Xeem Kawg

Kawg Kawg
Kawg Kawg
Kawg Kawg
Kawg Kawg
Kawg Kawg
Kawg Kawg

Yog li, txuas cov roj teeb, rub cov xov hlau rau kev hloov pauv thiab them nyiaj, muab nws txhuam thiab kho hauv lawv lub qhov. Tsis tas li, cov hais lus txuas xov tooj ib yam nkaus.

Kauj Ruam 10: Kho Tus Hais Lus

Hais Lus Kho
Hais Lus Kho
Hais Lus Kho
Hais Lus Kho
Hais Lus Kho
Hais Lus Kho
Hais Lus Kho
Hais Lus Kho

Kuv kho tus hais lus siv lub nplhaib ntawm 40mm raj thiab qee tus ntsia hlau =) Nws yog kev phem thiab muaj zog heev.

Kauj ruam 11: Programming

Koj tuaj yeem pom Arduino kos duab, tsev qiv ntawv, SD cov ntaub ntawv suab thiab ntau cov lus qhia hauv cov phiaj xwm nplooj ntawv ntawm GitHub, tab sis kuv tau kos duab kos thiab khaws nrog txhua cov ntaub ntawv ua haujlwm ntawm no, hauv Cov Lus Qhia.

Phau ntawv qhia yooj yim:

  • Qhib GyverSaber.ino thiab qhib:
  • Tus naj npawb ntawm microcircuits WS2811 ntawm LED sawb (ceeb toom: ib WS2811 tswj 3 LEDs!)
  • Qhib lossis tua cov hniav pulsation
  • Tsis pom zoo ntsuas qhov kev tiv thaiv tiag tiag ntawm cov hluav taws xob faib hluav taws xob
  • Lub kaw lus tuaj yeem ua haujlwm yam tsis muaj kev tshuaj xyuas roj teeb, tsuas yog ua haujlwm BATTERY_SAFE. TAB SIS Nws tsis tau txais kev pom zoo
  • Flash tsum tsum
  • Upload cov ntaub ntawv audio rau SD card
  • Txaus siab rau!

MicroSD cov ntaub ntawv:

  • Loj <4G
  • Format mus FAT
  • Luam audiofiles hauv paus

Yog tias koj xav tau ntxiv koj lub suab, hloov lawv mus rau. WAV:

  • 8 bit ib
  • 16-32 kHz
  • Mono
  • Siv cov hloov pauv online lossis Total Audio Converter

CEEB TOOM! Yog tias koj tab tom teeb tsa cov phiaj xwm sib dhos, koj yuav tsum txhawb nws! Arduino yuav tsis ua haujlwm raug nrog txuas nrog DCDC hloov pauv!

Kauj ruam 12: Kho

Kho
Kho

Kuv tau ua GyverSaber tag nrho tuaj yeem tsim kho tau yog li koj tuaj yeem tsim koj tus kheej saber nrog cov hniav sib txawv thiab lwm yam tsis, tsuas yog ua tib zoo saib cov duab teeb tsa.

Kauj Ruam 13: Ntsia Hlau Kawg

Ntsia Hlau Kawg
Ntsia Hlau Kawg
Ntsia Hlau Kawg
Ntsia Hlau Kawg

Yog li, lightsaber yuav luag tiav! Tsuas yog ib qho ntsia hlau kawg, uas kho hniav rau raj. Kuv tau ua qee daim duab nrog txhua saber tsim lub cev.

Kauj Ruam 14: Cov txiaj ntsig

Image
Image
Cov txiaj ntsig
Cov txiaj ntsig
Cov txiaj ntsig
Cov txiaj ntsig
Cov txiaj ntsig
Cov txiaj ntsig

Yog li, DIY lightsaber tau npaj los tawm tsam! Koj tuaj yeem saib qee qhov kev ntsuas nrog kiv, viav vias, tsoo cov khoom, chandelier sib tsoo (oops!) Thiab tseem muaj ob qhov Jedi tiag tiag, sib ntaus nrog GyverSabers (yog, Kuv tau ua 2 ntawm lawv !!!) hauv kuv qhov kev tshuaj xyuas video ntawm DIY teeb pom kev zoo no thiab muaj nuj nqi thiab nta.

Ua tsaug, MadGyver.

Arduino Kev Sib Tw 2017
Arduino Kev Sib Tw 2017
Arduino Kev Sib Tw 2017
Arduino Kev Sib Tw 2017

Khiav Tawm Hauv Arduino Contest 2017

Pom zoo: