0% found this document useful (0 votes)
2 views43 pages

Hardware

The document outlines a series of experiments related to interfacing various sensors and components with the Intel Galileo board. It includes details on programming tasks, such as controlling LEDs, reading temperature values, and using touch sensors. The document also contains code snippets and instructions for setting up the hardware and executing the programs.

Uploaded by

aadityaborkar919
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
2 views43 pages

Hardware

The document outlines a series of experiments related to interfacing various sensors and components with the Intel Galileo board. It includes details on programming tasks, such as controlling LEDs, reading temperature values, and using touch sensors. The document also contains code snippets and instructions for setting up the hardware and executing the programs.

Uploaded by

aadityaborkar919
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 43
Corrs vere —Abbishek -s. Badukale Class Rolo: 28 a som —CSE Yaw Sone 5° eae | €™ sem Name of Subject: _Mondiwiore fob a S.No, Name of Experiment | PageNo. | Date Remarks : hoa a Ay Study —of_n10T_s800 deep B24 rp ad] Hite Galilee board ond perfaumg __|_|__ a SoPbacne ‘iinstallertion, Ss | Dit intefabe Ven with del | hel aque GP) Galiteo boo and tite & le | als iPregram to tum on LED ee LQery one sec interval. So [3 To interface push button with | Ir Galileo booud and write al | do buzz on a off | dela of one gecond- © tempereche sensor [224 A leo boarrol and. ae INDEX |) : name: Abhishek. BaduKale Branch Year / Semester ee Class Roll No.: ad ‘SNo. Nae of Experiment Page No. | Date 6. {76 interface - touch Senroy with 13/2 lintel bore Land Prgqem to Senge! [bp fi when it placed . | | A LTe interface Jkt censor vith 53 ___ lintel board ond a prin to] [ Weteat Surouncing Jah intensity. To interface, ound sensor with | N2)3, intel boord ond | program | Jo ie ete Surounding 3 sound. intensity SLT interface IED display with | \3)s fintel board and hirite a eat : de dlisplay some _ text. oS sofory onal sensor _ aa mHometer Wilh the Cratideo sd Gnd Write a program, Sie? ee 2 a 4 3 b _—.. . = = (Sita. sleelgment Kid ond axization with intel a dea ecitication Qty “Tan Galen ak 4GBRAM 178 HDD _ ec 32 GB 4. — : ( alilen Rear - Wername ot JOT. ee at aa Qu x mputer Q QR Y pendrive! in 18 position ae Bios Setting! ha Conchoun PRGENOS DATE Fo ase te aitach Galileo to. Compact — UR. et Ce eds ace eon Gallien ond tthe Comenapd on 8 terrinal : ome) do screen [der] [dy\USBO_ 15200 oe ne -bill_tosd Galles terminal. on 08. = fetal Now mali “enter = nights lea dl seque -passtscnd ex -B ype —eonnmanes |” command _ in galidea foro, nt Te ae aes PtP y ea td Interrupt:51 Base address: 0x4000 Pee ee ota rhe rrr ee Weert pada preety eC meds ce errr kas a PPT TT, iter b hry Seer tLe ae ids Suter es rcs Preis Tir t ic ere wo aiid bytes:55172 (53-8 cst) Pet es se reat td Cray peeeereteiere erin er stt aC Marans Peer ead RO ee eee ri rests ie Prt hed Perr es peg eerie Em tte iether ss einer ep rene Ter LE Muni auarnain len Lied epi tatt-y appear Titer TCT a ar ci Batrerpher enc parst tc) RX bytes: 7631454 (7.2 MiB) TX atte Conte Kis) rootegaltteo:~# Ml PAGE NO. DATE: | / 20 eS epee! ram bottom with nae galiteo atl hecessaa Wuoure, ee VED with Intl Galilea Ioosd Pou oe ep 4 One See interWal . —- Tor —Bperiiationg ae : tem __ 4AGB+ RAM _ Onhee-tioy > Code: - clude “mraa.h” clude nclude int main() { mraa_gpio_context d_pin = NULL; d_pin = mraa_gpio _init(13); +f(d_pin == NULL){ //error check fprintf(stderr, “MRAA couldn’t initialized.”); return MRAA_ERROR_UNSPECIFIED; } // configure the GPIO if(mraa_gpio_dir(, fprint# (“can?t return MRAA 3 //loop to toggle on-board every second for 10 times for(int i=10;i>0;4--){ printf(“LED OFF\n”); mraa_gpio_write(d_pin,@); //turn off LED sleep(1); //wait 1 second printf (“LED ON\n”); else mraa_gpio_write(d pin, 1); //turn on LED sleep(1); //wait 1 second } return MRAA_ SUCCESS; as output 1, MRAA_GPIO_OUT != MRA SUCCESS){ *t digital pin as output, existing”); UNSPECIFIED; Output: - [terminated Blinky [c/ces Leo on Leo OFF LED on race Tart / saa : Practical ne fo “fim? "Ta Trckerface push bullion ii ike galit heaxcl i (eS ten “nek Coe ie eee | i Jools 3— _eeeinee “Feats Specification Ory _ ae JOT development Kit loT 3500 ) = Computes _Syster AGB +RAM|LTOHDD | - 3 ig LDIS : Theory * Step: te 1 ki Dus - ‘Vitel “Gialileo _boarel 2) Ruth Bedfon __| ays ie 4) Resistor 5) Connee tig Wrreg Horlwore _Qeh p Steps ice | Connect one 'torminkl at putt autho fo Tat i pin (4 P2) on Paliled) —boaud” Ran galite 2\ Ceonna timed is a gpl bated’ este atk “og Cohneet LED a Qplideo board salina another. _connee-Hne wires. Pow i Uo IS Teachers Signature —_ bein” tunes dir(button, MRAA_GPIO_IN); mraa_gpio_context led = mraa_gpio_init(LED | PIN); mraa_gpio_dir(led, MRAA_GPIO_OUT); F problems 2 tasks © console 1 7 Properties 25 x% £2@@ -e-c- Button [C/C++ Remote Application] /home/iot/Downloads/ex root@galileo:-# chmod 755 /tmp/Button;/tmp/Button ;exit Program will exit after 5 button presses Botton value is: 2 Program will exit after 4 button presses Button value is: © Program will exit after 4 button presses ‘Button value is: © Program will exit after 4 button presses Button value is: © Program will exit after 4 button presses Button value is: @ Program will exit after 4 button presses Button value is: 1 Program will exit after 3 button presses eutton value is: 1 Program will exit after 2 button presses putton value is: 1 Program will exit after 1 button presses Button value is: 1 Exiting, bye! logout PAGE NO.:_ DATE.: / / 20 [Giepal ta deta Oe intel gala ee Se = Hardwire, seh ) Connect Bu: aie to sratiteo bocurd using Cemnes-ting wire to ~eligital input pin | Eclipse VOR f | winelode cUNLSRALN> /7 for sLeep(). Ant maing) ‘ Ame chord] = { 00, RE, FA, ME, SOL, LA, St, 00, SI)5 Af eveate Buzzer instance me ‘wpms:Buzzer* sound » new upm: sBuzzer(5) 5, Printf("Volume = XF\n", sound->getVolume());_ Sound->setVolume(@.1); Printf( "Volume = SEX", sound->getvolume()); : ‘stdout 5 Output: - | % Ocomole tt Et NO. __Practicnh 90 5 [Aims "To —infexac mer eae ae alitelo_ ce_Sepapenahiee wie Oe — — Pro: Je ee ~lools * Ss he. “BolSh a Of Ze \oT 3500 Development i ee ae : 2 Compurtee “Systen Ht | 3 Terperature Sensen Dee pr re . Theory . wall “Gattis — a gel Wea _frocrxcl = Horrenarre [: Softnare Satie ee ot hn : TH Teachers Signature sinclude "nraa/aio.n” //for mraa_. #include // for math functions include // for print#() include //for sleep() int main() { mraa_aio_context adc_a@; uinti6_t ade_value const int B=4275; // B value of const int R@ = 1 7 // R@ = 100k //create object of analog input class using mraa lib adc_a@ = mraa_aio_init(@); 4 if (adc_a® == NULL) { return 1; t for (int de: ade_value = mraa_aio_read(ade_: printf("ADC AB read value : %d Output: - = problems @ Tasks © console #% [) Propert is Se BUM -~c- . Temperature [C/C++ Remote Application] /home/iot/Downloads/exercise: Temperature value : 29.01 Degree Celsius ADC A@ read value : Temperature value : ac Ae read value : Temperature value : ADC AG read value : Temperature value : 28.50 Degree Celsius ADC A@ read value : 556 Temperature value : 28.67 Degree Celsius ADC AB read value : 559 Temperature value : 28.92 Degree Celsius ADC AG read value : 616 Temperature value : 33.34 Degree Celsius ADC AG read value : 612 Temperature value : 33.52 Degree Celsius Exiting .. Bbye!logout Celsius Celsius 5) Uplsad the cade Jo salen faoaned - —_— GHNiek aL RUN- bl | eet | Ls ‘@ ae : \3\ 02-125 | on JOT S500 Development Kid= 02 Computer system aie chi cure Maen - ‘i y* UPM library includes */ ‘include "ttp223.h" // for button-svalue() /+ Standard 10 includes */ include // for print#() sinclude //for sleep() void touchISR (void); int count = 55 void touchISR(void*) { count: printf("\nHello World from ISR, will exit after fflush(stdout); , int main() { /1 Create the button object using GPIO pin upm: :TP223* touch = new upm::17P223(4)3 // Read the input and print, waiting one second #flush(stdout); while(count>®) ; printf("\txiting -. Bbye!”); ae delete touch; _// Delete the button object

You might also like