Cov txheej txheem:

Resistor Storage System System "Resys": 7 Cov Kauj Ruam (nrog Duab)
Resistor Storage System System "Resys": 7 Cov Kauj Ruam (nrog Duab)

Video: Resistor Storage System System "Resys": 7 Cov Kauj Ruam (nrog Duab)

Video: Resistor Storage System System
Video: Resistor Organizer and Storage System 2024, Kaum ib hlis
Anonim
Resistor Cia Qhov System
Resistor Cia Qhov System

Nov yog kab ke uas ua rau nws yooj yim mus nrhiav koj cov resistors.

Tshawb nrhiav ntawm tus nqi xav tau, thiab lub tub rau khoom sab xis teeb.

Cov kab ke no tuaj yeem txuas mus rau cov lej xav tau ntawm cov tub rau khoom.

Khoom siv

Adressable LED's WS2812B

Arduino Nano Cov

4 x 4 Matrix Array 16 Keys

Resistor cov

USB them nyiaj, lossis lwm 5v lub zog txhawb nqa

PLA ntsiab lus

Connector Headers

Prototyping PCB

10k kub

Kauj Ruam 1: Ua Circuit Court

Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit

Ua lub Circuit Court ntawm ob tog ob tog protype PCB

Keypad:

Cov keypad pheej yig muaj qee qhov sab hauv sab hauv uas hloov pauv mus rau kab, qhov kub thiab txias, thiab nyuaj npaum li cas koj nias lub pob. yog li koj yuav tau ntsuas cov nyees khawm hauv txoj cai.

Kuv tsis muaj lub vijtsam i2c lcd raws li npaj rau txoj haujlwm no, yog li kuv yuav tsum ua lub keyboard nrog adc (analog input) vim gpio avaliable ntawm arduino nano.

Resistors ntawm cov keypad txuas.

Pin 2-3 = 10k ohm

Pin 3-4 = 22k ohm

Pin 4-5 = 33k ohm

Pin 6-7 = 2.2k ohm

Pin 7-8 = 4.8k ohm

Pin 8-9 = 10k ohm

1 thiab 10 tsis siv.

Pin 2 mus rau 5V ntawm arduino bouard.

Tus pin 9 mus rau A0 thiab 15k ohm rau hauv av.

Yuav tsum tsis muaj kev sib txuas ntawm tus pin 5 thiab 6.

Coj:

D7 ntawm arduino mus txog 330ohm thiab mus rau (cov ntaub ntawv Hauv) ntawm thawj coj (tus pin thib ob) ntawm WS2812B

Av rau hauv av.

Leds 5v rau Vin ntawm arduino

Koj yuav tsum txiav cov leds induvidually thiab xaim lawv mus rau sab nraub qaum, lossis yuav ua li cas koj xav tso cov leds.

Nco ntsoov xaim cov leds hauv txoj kev yog, lawv muaj cov tswv yim thiab tso tawm.

Lcd zaub:

Ua raws daim duab.

Lub potmeter tsuas yog xav tau los kho qhov sib piv ntawm cov zaub.

Koj yuav tsuas yog yuav tsum tau kho nws thaum input voltage kuv hloov.

www.arduino.cc/en/Tutorial/HelloWorld

Pib dua:

D10 rov pib dua tus pin

Fais fab mov:

USB charger.

Txiav ib usb cable thiab txuas hauv av (dub) rau hauv av ntawm arduino, thiab 5v (liab) rau Vin

Kauj ruam 2: Cov ntaub ntawv

Nov yog txoj haujlwm nyiam ua, tsis yog tus kws tshaj lij coder.

Cov lus qhia thiab cov tswv yim raug txais tos:)

Kauj Ruam 3: Program Arduino Nano

Qhov program Arduino Nano
Qhov program Arduino Nano
Qhov program Arduino Nano
Qhov program Arduino Nano

Rub cov tsev qiv ntawv:

Hauv Arduino IDE, nyem rau ntawm lub tab npe kos duab thiab nyem suav nrog tsev qiv ntawv/Tswj cov tsev qiv ntawv.

Nrhiav rau

-FASLED.h

-LiquidCrystal.h

Nruab lawv.

Qhib "ohmsys1.44.ino"

Txuas lub arduino nrog USB

Xaiv qhov chaw nres nkoj com kom raug, thiab xa cov duab kos.

Kauj Ruam 4: Yuav Siv Li Cas

Sau koj tus lej nrog tus lej

* yog comma

# yog rov pib dua qhov system

A yog ohm

B yog K-ohm

C yog M-ohm

D yog rov pib tus lej

Kauj Ruam 5: Yuav Ua Li Cas Calibrate Cov Khawm

Tsis pom zoo "Serial.println (sensorValue);" (kab thib ob hauv lub voj)

Khiav koj serialmonitor.

Cov nyees khawm muaj qhov sib txawv tsis txaus ntseeg vim qhov nyuaj/maj mam koj thawb lub pob.

Ua daim ntawv ceeb toom ntawm sab saum toj/qis tus nqi rau earch khawm hauv cov ntawv xov xwm.

Nrhiav cov nyees khawm hauv txoj cai.

Thawj tus lej yog "qis" thiab tus lej kawg yog "siab".

// **************************** Khawm 1 ****************** ********

yog ((sensorValue> 387) && (sensorValue <394) && delayrunning == cuav)

Hloov cov lej raws koj cov txiaj ntsig.

Koj yuav tau txais tus lej sib txawv tom qab ntawd hauv cov cai, tsis txhob cia qhov ntawd ua rau koj ntxhov siab:)

Kauj Ruam 6: Txuas Qhov System rau Cov Duab Ntxiv

Txog tam sim no, lub kaw lus tau tsim rau 16 tus tub rau khoom.

Koj tuaj yeem txuas nws rau ntau qhov koj xav tau.

Tsuas yog nco ntsoov tias lub zog siv hluav taws xob tuaj yeem tswj tau nws.

Txhawm rau txuas ntxiv nws koj yuav tsum hloov pauv "#define NUM_LEDS 15" rau tus naj npawb ntawm tub rau khoom/coj.

Nws pib ntawm 0, yog li rho tawm 1 los ntawm koj xav tau cov tub rau khoom/coj

Luam

"yog ((Sumtall> 6) && (Sumtall <16))

{LEDreset ();

leds [1] = CRGB (255, 0, 255);

FastLED.show (); ncua (300); }"

thiab npaj koj thaj tsam ib tus tub rau khoom.

Ntxiv ib tus lej rau txhua tus tub rau khoom tshiab hauv "leds [1]"

Koj tseem tuaj yeem hloov xim ntawm cov coj yog xav tau (255, 0, 255)

Kauj Ruam 7: Rho Tawm Teeb rau Cov Khaub Ncaws

Rho Tawm Teeb rau Cov Khaub Ncaws
Rho Tawm Teeb rau Cov Khaub Ncaws
Rho Tawm Teeb rau Cov Khaub Ncaws
Rho Tawm Teeb rau Cov Khaub Ncaws

Muaj qee lub teeb pom kev uas ua rau muaj teeb meem.

Kuv kho qhov no los ntawm kev ntxiv qee daim iav daim kab xev ntawm txhua tus tub rau khoom.

Daim kab xev uas ntxiv rau ntawm ob sab thiab hauv qab.

Tsis tas yuav tsum muaj mirrortape yog tias koj muaj daim kab xev uas tsis pub lub teeb pom kev los.

Qhov no kho qhov teeb meem:)

Pom zoo: