Cov txheej txheem:

Qhov Muag Thib Peb (Arduino Project): 3 Kauj Ruam
Qhov Muag Thib Peb (Arduino Project): 3 Kauj Ruam

Video: Qhov Muag Thib Peb (Arduino Project): 3 Kauj Ruam

Video: Qhov Muag Thib Peb (Arduino Project): 3 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Qhov Muag Thib Peb (Arduino Project)
Qhov Muag Thib Peb (Arduino Project)

Xav txog qhov koj xav mus yos hav zoov dab, tab sis koj tsis muaj cov khoom siv tshwj tsis yog ouija board, uas muaj ntau tus neeg yos hav zoov uas paub txog thiab kev puas siab puas ntsws xav kom koj tsis txhob siv, thiab koj lub xov tooj yog tus kaw EVP.

Koj puas tau sim qhib koj lub qhov muag thib peb? Yuav ua li cas txog kev ua cov khoom no los pab coj koj mus rau txoj kev ntawd. Qhov Muag Thib Peb yuav pab pab koj nrhiav tus ntsuj plig uas siv duab ntsuas cua sov. Cov neeg yos hav zoov feem ntau yuav siv cov duab cua sov los nrhiav qhov chaw txias - thaj chaw ntawm qhov kub uas tsis txaus ntseeg uas qhia tias muaj tus dab nyob.

Yog tias koj tsis yog neeg yos hav zoov, lossis tsis ntseeg dab, cov khoom no tseem tuaj yeem pab hauv cov xwm txheej xws li:

  • Huab cua zoo - saib xyuas cov pa luam yeeb lossis cov pa hauv tsev uas siv.
  • Kev ntsuas roj - Tshwj xeeb ntsuas lub koob yees duab cua sov tuaj yeem siv los tshuaj xyuas qhov muaj cov pa tshwj xeeb ntawm cov chaw tsim khoom lossis ib puag ncig cov kav dej.
  • Kev tswj kab mob - tshuaj xyuas tag nrho cov neeg caij tsheb tuaj ntawm tshav dav hlau thiab lwm qhov chaw kom sov.
  • Counter -keb soj ntsuam - zais cov cuab yeej soj qab xyuas xws li cov cuab yeej mloog lossis lub koob yees duab zais tau siv tag nrho qee lub zog uas muab pov tseg cov cua sov uas pom tau meej ntawm lub koob yees duab cua sov (txawm tias zais lossis tom qab ib yam khoom).
  • Kev txheeb xyuas cov yoov tshaj cum - txheeb xyuas thaj chaw uas muaj peev xwm ua rau muaj kab tsuag nyob hauv cov tsev.

Cov no tsuas yog qee txoj hauv kev los siv cov duab thermal. Koj tuaj yeem pom qhov twg kuv tau txais cov kev siv ntawm no nrog rau 55 kev siv ntau ntxiv!

KHOOM:

Adafruit 1.44 Xim TFT LCD Zaub nrog MicroSD Card breakout - ST7735R

IR Thermal Lub Koob Yees Duab Breakout

3D tshuab luam ntawv

Cov Khoom Siv Soldering

Resistors

Ntsia Hlau

Ntsia Hlau

PROGRAMS siv:

Fritzing

Arduino

Fusion 360: koj puas xav tau ntau tus thwjtim?

Kauj Ruam 1: Kauj Ruam 1: Muab Cov Khoom Siv Hluav Taws Xob rau ntawm Breadboard

Kauj Ruam 1: Muab Cov Khoom Siv Hluav Taws Xob rau ntawm Breadboard!
Kauj Ruam 1: Muab Cov Khoom Siv Hluav Taws Xob rau ntawm Breadboard!

Ua ntej, koj xav ua yog tuaj yeem tso koj cov khoom siv hluav taws xob rau ntawm lub rooj mov mov ib tus zuj zus, thiab siv koj li Arduino txhawm rau rub tus lej ntsuas kom pom tias koj lub ntsuas cua thiab koj lub module ua haujlwm zoo li nws yuav tsum tau ua. Hauv kuv qhov xwm txheej, lawv ua haujlwm raws li lawv xav tau!

Tam sim no, koj tuaj yeem tso koj lub ntsuas thiab ntsuas ua ke rau ntawm lub khob cij, raws li kuv tau muab cov duab los ntawm Adafruit, yuav ua li cas tso cov no ua ke ntawm Fritzing.

Kauj Ruam 2: Kauj Ruam 2: Muab tso rau hauv Txoj Cai

Adafruit tau ua siab zoo heev muab txoj cai rau peb rau txoj haujlwm no! Lawv muab lub tsev qiv ntawv ntawm lub koob yees duab cua sov lub xaib, uas kuv tau suav nrog qhov txuas rau IR sensor hauv cov npe ntawm yam uas xav tau rau txoj haujlwm no, koj tuaj yeem pom nws los ntawm qhov ntawd!

Hauv qab no yog cov lej siv rau koj Arduino.

/********************************************************** ************************** Nov yog lub tsev qiv ntawv rau AMG88xx GridEYE 8x8 IR lub koob yees duab

Cov duab no ua rau 64 pixel lub koob yees duab cua sov nrog GridEYE sensor

thiab 128x128 tft screen

Tsim tshwj xeeb los ua haujlwm nrog Adafruit AMG88 kev tawm tsam

-

Cov ntsuas no siv I2C los sib txuas lus. Cov cuab yeej I2C chaw nyob yog 0x69

Adafruit nqis peev sijhawm thiab peev txheej muab qhov qhib qhov chaws no, thov txhawb nqa Adafruit andopen-source kho vajtse los ntawm kev yuav khoom ntawm Adafruit!

Sau los ntawm Dean Miller rau Adafruit Industries. Daim ntawv tso cai BSD, txhua cov ntawv sau saum toj no yuav tsum suav nrog hauv kev faib tawm dua tshiab ************************************** *************************************/

#suav nrog // Lub tsev qiv ntawv duab nraaj

#include // Tsev qiv ntawv kho vajtse tshwj xeeb #suav nrog

#suav nrog

#suav nrog

#define TFT_CS 10 // nti xaiv tus pin rau TFT npo

#define TFT_RST 9 // koj tseem tuaj yeem txuas qhov no mus rau Arduino rov pib dua // nyob rau hauv rooj plaub twg, teeb tsa #define tus pin rau 0! #define TFT_DC 8

// qis ntau ntawm lub ntsuas (qhov no yuav xiav ntawm qhov screen)

#define MINTEMP 22

// ntau ntau ntawm lub ntsuas (qhov no yuav liab ntawm qhov screen)

#define MAXTEMP 34

// cov xim peb yuav siv

const uint16_t camColors = {0x480F, 0x400F, 0x400F, 0x400F, 0x4010, 0x3810, 0x3810, 0x3810, 0x3810, 0x3810, 0x3810, 0x3010, 0x3010, 0x2810, 0x2810, 0x2810, 0x2810, 0x2010, 0x2010, 0x2010, 0x2010, 0x1810, 0x1810, 0x1810, 0x1810, 0x1810, 0x2010, 0x4010, 0x40010,, 0x1811, 0x1011, 0x1011, 0x1011, 0x0811, 0x0811, 0x0811, 0x0011, 0x0011, 0x0011, 0x0011, 0x0011, 0x0011, 0x0011, 0x0011, 0x0031, 0x0031, 0x0072, 0x0072, 0x0072, 0x0092, 0x00B2, 0x00B2, 0x00D2, 0x002, 0x001, 0x001, 0x001, 0x001, 0x001, 0x0152, 0x0152, 0x0172, 0x0192, 0x0192, 0x01B2, 0x01D2, 0x01F3, 0x01F3, 0x01F3, 0x0213, 0x0233, 0x0253, 0x0253, 0x0273, 0x0293, 0x02B3, 0x02D3, 0x02, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x33, 0x0,, 0x03B4, 0x03D4, 0x03D4, 0x03F4, 0x0414, 0x0434, 0x0454, 0x0474, 0x0474, 0x0474, 0x0494, 0x04D4, 0x04F4, 0x0514, 0x0534, 0x0534, 0x0 0x07, 0x0 0x07, 0x0 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,, 0x0572, 0x0571, 0x0591, 0x0591, 0x0590, 0x0590, 0x058F, 0x058F, 0x058F, 0x058E, 0x05AE, 0x05AE, 0x05AD, 0x05AD, 0x05AD, 0x05AC, 0x0 0x, 0xC0, 0xC0, 0xC0, 05C9, 0x05C8, 0x05E8, 0x05E8, 0x05E7, 0x05E7, 0x05E6, 0x05E6, 0x05E6, 0x05E5, 0x05E5, 0x0604, 0x0604, 0x0604, 0x0603, 0x0 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 0x0E20, 0x0E20, 0x0E40, 0x1640, 0x1640, 0x1E40, 0x1E40, 0x2640, 0x2640, 0x2640, 0x2E40, 0x2E60, 0x3660, 0x3660, 0x3E60, 0x3E60, 0xx360, 0x4660, 0x4660, 0x4E60, 0x4E80, 0x580, 0x5, 0x6680, 0x6E80, 0x6EA0, 0x76A0, 0x76A0, 0x7EA0, 0x7EA0, 0x86A0, 0x86A0, 0x86A0, 0x8EA0, 0x8EC0, 0x96C0, 0x96C0, 0x9EC0, 0x9EC0, 0xA6C0, 0xAEC0, 0xAEC0, 0xB0E0, 0xB0E0, 0xB0E0, 0xB0E0, 0xB0E0, 0xB0E0, 0xB0E0, 0xB0E0, 0xB0E0, 0xB0E0, 0xE0, 0xB0E, 0xCEE0, 0xD6E0, 0xD700, 0xDF00, 0xDEE0, 0xDEC0, 0xDEA0, 0xDE80, 0xDE80, 0xEE80, 0xE660, 0xE640, 0xE620, 0xE600, 0xE5E0, 0xE5C0, 0xE5A0, 0xE580, 0xE0E0, 0xE0E0, 0xE460, 0xEC40, 0xEC20, 0xEC00, 0xEBE0, 0xEBC0, 0xEBA0, 0xEB80, 0xEB60, 0xEB40, 0xEB40, 0xEB20, 0xEB00, 0xEAE0, 0xEAC0, 0xEAA0, 0xEA80, 0xEA60, 0xEA40, 0xF220, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0x ib F140, 0xF100, 0xF0E0, 0xF0C0, 0xF0A0, 0xF080, 0xF060, 0xF040, 0xF020, 0xF800,};

Adafruit_ST7735 tft = Adafruit_ST7735 (TFT_CS, TFT_DC, TFT_RST);

Adafruit_AMG88xx amg;

tsis kos npe ncua sijhawm ntev; ntab pixels [AMG88xx_PIXEL_ARRAY_SIZE]; uint16_t displayPixelWidth, displayPixelHeight;

void teeb tsa () {

Serial.begin (9600); Serial.println (F ("AMG88xx lub koob yees duab cua sov!"));

tft.initR (INITR_144GREENTAB); // pib ua ST7735S nti, tab dub

tft.fillScreen (ST7735_BLACK);

displayPixelWidth = tft.width () / 8;

displayPixelHeight = tft.height () / 8;

//tft.setRotation (3);

bool xwm txheej; // default teeb tsa xwm txheej = amg.begin (); yog tias (! xwm txheej) {Serial.println ("Tsis tuaj yeem nrhiav pom AMG88xx sensor siv tau, kos thaiv!"); thaum (1); } Serial.println ("-Thermal Camera Test-"); ncua (100); // cia sensor khau raj

}

void voj () {

// nyeem tag nrho cov pixels amg.readPixels (pixels);

rau (int i = 0; i

// kos cov pixels!

tft.fillRect (displayPixelHeight * pem teb (i / 8), displayPixelWidth * (i % 8), displayPixelHeight, displayPixelWidth, camColors [colorIndex]); }}

Kauj Ruam 3: Kauj Ruam 3: Ua Koj Li 3D Headband

Nov yog kuv qhov kev daws teeb meem ua lub taub hau, koj tuaj yeem ua tau zoo dua li qhov tsim los ntawm kuv. Nws nyiam ib sab thiab hnyav dua ntawm qhov hmoov tsis zoo. Rau lub sijhawm tom ntej kuv tuaj yeem rov qab los rau qhov no thiab ua kom nws muaj kev sib luag, thiab tseem ua rau nws tsim tau ruaj khov dua ib yam. Kuv ua qhov chaw rau kuv Arduino, lub koob yees duab, saib, thiab tom qab ntawd 9v roj teeb.

Ib yam dab tsi uas kuv tau ua tiav nrog lub taub hau tau tshem tawm tom qab kawg nrog pom, yog li kuv tuaj yeem ua kom haum rau lwm tus neeg lub taub hau yog li lawv tuaj yeem sim nws tsis yog kuv li.

Qhov no tau ua hauv Fusion 360 siv cov cuab yeej yooj yim los ua qee yam ua tau rau txoj haujlwm no.

Pom zoo: