Cov txheej txheem:

Arduino Baby Monitor With Java Viewer: 8 Kauj Ruam (nrog Duab)
Arduino Baby Monitor With Java Viewer: 8 Kauj Ruam (nrog Duab)

Video: Arduino Baby Monitor With Java Viewer: 8 Kauj Ruam (nrog Duab)

Video: Arduino Baby Monitor With Java Viewer: 8 Kauj Ruam (nrog Duab)
Video: When The Quiet Kid Does Your Homework 💀 #electronics #arduino #engineering 2024, Hlis ntuj nqeg
Anonim
Arduino Baby Monitor Nrog Java Viewer
Arduino Baby Monitor Nrog Java Viewer

Tsim kom muaj Arduino-based multi-sensor unit los soj ntsuam cov xwm txheej hauv chav. Chav tsev no tuaj yeem paub huab cua, qhov kub thiab txias, suab, thiab suab.

Txuas yog java raws tus saib uas tau txais cov ntaub ntawv xov xwm los ntawm arduino.

Kauj Ruam 1: Tus Cwj Pwm

Cwj pwm:

Lub kaw lus ntsuas txhua qhov ntsuas thiab ua qhov tsim nyog

- Kub: Peb lub teeb ci ci raws qhov ntsuas kub tam sim no siab dua, qis dua, lossis txog qhov ntsuas kub xav tau ua ntej.

- Vaum: tib yam li Kub.

- Tsab ntawv tsa suab: Thaum pom cov lus tsa suab tau ua rau ntawm 6 lub teeb ci thaum pom cov lus tsa suab.

- Suab: Xa qhov kev ceeb toom ceeb toom rau Java tus txais kev sib txuas lus nrog java program

- Arduino xa cov ntaub ntawv sensor ntawm kev sib txuas lus txuas mus rau Java program. Java txoj haujlwm suav nrog lub sijhawm dhau los thiab qhia cov ntaub ntawv ntawm JFrame-base GUI.

Kauj ruam 2: Cov ntaub ntawv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Cov ntaub ntawv:

- Arduino ib

- DHT11 Vaum/Kub sensor

- Suab Sensor Module

- HC-SR501 PIR Motion Sensor

- (6) 220Ohm resistors

- (6) leds (txhua xim)

- Tsawg kawg 25 xov hlau

- Khoos phis tawj nrog 64-ntsis Java JDK teeb tsa

- Arduino IDE nrog USB cable

Kauj ruam 3: Txuas Leds

Txuas Leds
Txuas Leds

Txuas 6 Leds rau cov chaw nres nkoj 5 txog 10 ntawm Arduino.

Kauj Ruam 4: Txuas Cov Vaum/Kub Sensor

Txuas Vaum/Kub Sensor
Txuas Vaum/Kub Sensor

Txuas cov av noo/ntsuas kub rau tus pin 2 ntawm arduino.

Kauj Ruam 5: Txuas Motion Sensor

Txuas Motion Sensor
Txuas Motion Sensor

Txuas lub suab txav mus rau tus pin 12 ntawm arduino. (Transistor (N) hloov pauv rau cov lus tsa suab sensor hauv daim duab, tib txoj hlua)

Kauj Ruam 6: Txuas Suab Sensor

Txuas Suab Sensor
Txuas Suab Sensor

Txuas lub suab sensor mus rau tus pin 4 ntawm arduino. (Transistor (P) hloov pauv rau lub suab sensor hauv daim duab, tib txoj hlua)

Kauj Ruam 7: Txuas Lub Hwj Huam thiab Hauv Paus

Txuas Lub Hwj Chim thiab Av
Txuas Lub Hwj Chim thiab Av

Txuas tus + 5V tus pin ntawm arduino mus rau + kev tsheb nqaj hlau ntawm lub khob cij.

Txuas GND tus pin ntawm arduino mus rau - kev tsheb nqaj hlau ntawm lub khob cij.

Kauj ruam 8: Coding

Kauj ruam 1:

Thauj khoom ArduinoHex.ino mus rau arduino

Kauj ruam 2:

- Siv Eclipse Programming Software, tsim txoj haujlwm nrog ob.dll cov ntaub ntawv hauv nws cov npe hauv paus.

- Rub cov ntawv RXTXcomm.jar

Mus rau Project> Properties> Java Build Path> Ntxiv JARs Sab Nraud

- Thauj ArduinoHex.java, ArduinoHexDriver.java, thiab ComPortTest.java rau src nplaub tshev hauv Project

Kauj Ruam 3: Siv Arduino IDE lossis ComPortTest txhawm rau nrhiav qhov chaw nres nkoj COM uas tau siv los ntawm arduino

Kauj Ruam 4: Nco ntsoov tias tag nrho lwm qhov txuas mus rau arduino raug kaw.

Kauj ruam 5: Khiav ArduinoHexDriver

Qhov chaw:

ComPortTest.java thiab java-end serial txais:

Kinath Ripasinghe

dummyscodes.blogspot.com/2014/08/using-java…

Pom zoo: